selectiongump

Окно со списком выбора.

Including Code

include ":gumps:selectiongump";

SelectionGump( mobile, title, options, btn_type );

Отображает окно cо списком выбора и выдает результат для дальнейшей работы с ним.

Parameters

Description

mobile

Mobile to send the gump to.

title

(string) Заголовок окна.

options

(array) Список для выбора.

btn_type

Типы кнопок:

  • CONST BTN_TYPE_RADIO

  • CONST BTN_TYPE_CHECKBOX

  • CONST BTN_TYPE_NORMAL

  • CONST BTN_NOTYPE

Return value

Returns {array} or {struct} of value.

Example

use uo;
use os;

include ":gumps:selectiongump";

program txtcmd_gumpstest( mobile )

	var title := "Make you choice";
	var options := {"Putin", "Putin?", "Yes, Putin", "Only Putin", "Medvedev"};

	var input:= SelectionGump( mobile, title, options, BTN_TYPE_CHECKBOX );

	SendSysMessage( mobile, "Choice: " + input );

endprogram
selectiongump example

Last updated

Was this helpful?