set_menu_item_str()
set_menu_item_value()
set_menu_item_visibility()
12.11. get_menu_item_visibility()
get_menu_item_visibility(
,)
Returns
1
if the menu entry is visible, otherwise
0
The ID of the menu that you want to modify
The index of the menu entry
The
is defined by the order in which the menu items are added within the init callback; it
can’t be changed afterwards.
Examples
on init
declare ui_menu $menu
add_menu_item ($menu, "First Entry",0)
add_menu_item ($menu, "Second Entry",5)
add_menu_item ($menu, "Third Entry",10)
declare ui_button $button
end on
on ui_control ($button)
message (get_menu_item_visibility (get_ui_id($menu),1))
end on
Displays the value 1
See Also
$CONTROL_PAR_SELECTED_ITEM_IDX
$CONTROL_PAR_NUM_ITEMS
add_menu_item()
get_menu_item_str()
get_menu_item_value()
set_menu_item_str()
set_menu_item_value()
set_menu_item_visibility()
Do'stlaringiz bilan baham: