yesno
Окно для выбора Да/Нет
Including Code
include ":gumps:yesno";
YesNo( mobile, prompt, yes_text, no_text );
Отображает окно для квестов с выбором заранее заданных ответов.
Parameters
Description
mobile
Mobile to send the gump to.
promt
(string) Сообщение.
yes_text
(string) Вариант для выбора (да).
no_text
(string) Вариант для выбора (нет).
Return value
Returns '1' if the
yes_text
Returns '0' - if the
no_text
Example
use uo;
use os;
include ":gumps:yesno";
program txtcmd_gumpstest( mobile )
var prompt := "Make you choice, Neo";
var yes_text := "Red";
var no_text := "Blue";
var input:= YesNo( mobile, prompt, yes_text, no_text );
SendSysMessage( mobile, "Choice: " + input );
endprogram

Last updated
Was this helpful?