Runtime API 04 Gumps and Menus - LIHACHTETAN/ClassicUO-BadNewbie-BasicIDE GitHub Wiki

Runtime API — Гампы и меню

Символов: 43

Новые тематические разделы · Алфавитный указатель · Правила и сценарии

Для каждой команды доступна отдельная карточка: актуальные перегрузки, параметры, ограничения и несколько примеров.

UO.AutoMenu

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.CancelAllMenuHooks

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.CancelGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.CancelMenu

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.CloseClientGump

Gumps

Закрывает гамп с указанным ID на подключённом клиенте.

UO.CloseMenu

Menus & Context Menus

Отменяет все активные MenuGump клиента через CancelForYoko. Это старые серверные меню, а не любые окна интерфейса.

UO.CloseSimpleGump

Client UI

Разрешает селектор серверного окна через ResolveGumpUnsafe и закрывает его локально, только если разрешено закрытие правой кнопкой (CanCloseWithRightClick). Не отправляет произвольный ButtonID; для ответа на серверную кнопку используйте SendGumpSelect.

UO.GetGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpButtonsDescription

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpCount

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpFullLines

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpID

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpInfo

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpsCount

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpSerial

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetGumpShortLines

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GetLastMenuItems

Menus & Context Menus

Reads or mutates the current ClassicUO item/equipment state through the registered runtime route and client action queue.

UO.GetMenuItems

Menus & Context Menus

Reads or mutates the current ClassicUO item/equipment state through the registered runtime route and client action queue.

UO.GetMenuItemsEx

Menus & Context Menus

Reads or mutates the current ClassicUO item/equipment state through the registered runtime route and client action queue.

UO.GumpAutoCheckBox

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GumpAutoRadiobutton

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GumpExists

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.GumpObject

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.InfoGump

Diagnostics & Introspection

Открывает подробный инспектор серверного окна: GumpID, Serial, положение, размеры, страницы, кнопки и ButtonID, текст, поля ввода и переключатели. Без аргумента выбирается ранее выбранный или последний активный серверный gump. Аргумент разрешается по GumpID/serial, затем по индексу списка. Только -1 означает выбранное/последнее окно; другие отрицательные Integer сохраняют 32-битный ID, например 0x87654321. Инспектируемое окно становится выбранным для SendGumpSelect(buttonId). При отсутствии подходящего окна клиент сообщает об этом; команда ничего не возвращает.

UO.InfoGumps

Diagnostics & Introspection

Без аргумента открывает список активных серверных окон, их индексов, GumpID, serial и размеров. Внутренние окна клиента в этот список не входят. Форма InfoGumps(gump) открывает подробный инспектор указанного окна, как InfoGump(gump). Список отражает состояние на момент открытия.

UO.IsGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.IsGumpCanBeClosed

Gumps

Возвращает True , если гамп с указанным индексом может быть закрыт пользователем, False — если он помечен как незакрываемый.

UO.LastGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.MenuHookPresent

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.MenuPresent

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.NumGumpButton

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.NumGumpCheckBox

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.NumGumpRadiobutton

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.ReqVirtuesGump

Quests & Virtues

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.SelectGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.SendGumpSelect

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.SetGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.WaitGump

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.WaitGumpCheck

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.WaitGumpEntry

Gumps

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.WaitingForMenu

Menus & Context Menus

Waits for a server menu and returns 1 only when the requested occurrence/name is satisfied. menuCount selects the ordinal distinct menu appearance; menuName is matched case-sensitively. blockMenu=TRUE sends the menu cancel/right-click response and closes the matched menu. skillOrSerial optionally uses a skill or object before the wait starts.

UO.WaitingMenu

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.

UO.WaitMenu

Menus & Context Menus

Reads or updates the current client UI/Gump state through the registered Basic/ClassicUO UI route.