Skip to main content

ui.get_blocking

Overview

  • Returns a snapshot of everything currently blocking gameplay input: loading screens, modal popups, the cat-talk tutorial overlay, coach marks, cutscenes and the ESC (pop) stack. This is the polling command for automation: keep calling it until 'blocked' is false. When 'primary_kind' is 'loading' you must WAIT (it is not dismissable); for anything else call ui.dismiss. Popups and coach marks are reported only for the current world (empty when there is no world). This command never creates a widget, so it is safe to poll tightly. Popup body text is truncated to 200 characters to keep the response small.

Metadata

FieldValue
DisplayGet Blocking UI State
Categoryui
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

  • This command takes no parameters.

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
blockedboolyesWhether anything is currently demanding or blocking user input
primary_kindstringyesTop blocker: loading | coach_mark | cat_talk | popup | modal_ui | level_sequence | '' (nothing)
primary_detailstringyesIdentifier of the top blocker (popup id, coach mark key, UI type name). Empty when not applicable
loadingboolyesWhether a loading screen is up
cat_talkboolyesWhether the cat-talk overlay is visible
coach_markboolyesWhether an interactive coach mark is active
level_sequenceboolyesWhether a cutscene (level sequence) is playing
popup_countintyesNumber of opened popup widgets
input_block_ui_typestringyesEB1UIType name of the modal UI blocking input, empty if none
esc_stack_remainsboolyesWhether the ESC (pop) stack still has a closable widget
pause_reasonsarray<string>yesEB1PauseReason names currently pausing the simulation
popupsarray<object>yesCurrently opened popups
popups[].indexintyesPosition in this list (informational; enumeration order, NOT z-order). To act on a specific popup, pass its popup_id to ui.click_popup_button - that command's 'index' is a BUTTON index, not a popup index
popups[].popup_idstringyesPopup table row id
popups[].descstringyesPopup body text, truncated to 200 characters
popups[].can_escboolyesWhether ESC can close this popup. If false, ui.dismiss must click a button instead
popups[].auto_dismissableboolyesWhether ui.dismiss will touch this popup. False when popup_id is empty (a popup opened directly by a handler rather than through the popup table cannot be verified as safe), when it is on the destructive deny-list (quit / leave / delete / overwrite / discard / reset matched as whole words), when no single non-dimmed cancel (Secondary) button can be identified, when every button is dimmed, or when buttons[] is empty while the popup's widget tree still contains real buttons. Handle these with ui.click_popup_button - except that last case, where the buttons are not registered with the popup base and ui.click_popup_button cannot reach them either
popups[].buttonsarray<object>yesPopup buttons
popups[].buttons[].indexintyesButton index
popups[].buttons[].list_keystringyesButtonDetail.ListKey - prefer this over index when clicking
popups[].buttons[].textstringyesLocalized button label
popups[].buttons[].dimmedboolyesWhether the button is dimmed (clicking it does nothing)

Usage

await inzoi.cli.execute('ui.get_blocking');