PopupMenu

Inherits: Popup < Window < Viewport < Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

bool

allow_search

true

bool

hide_on_checkable_item_selection

true

bool

hide_on_item_selection

true

bool

hide_on_state_item_selection

false

int

item_count

0

bool

prefer_native_menu

false

float

submenu_popup_delay

0.3

SystemMenus

system_menu_id

0

Methods

bool

activate_item_by_event ( InputEvent event, bool for_global_only=false )

void

add_check_item ( String label, int id=-1, Key accel=0 )

void

add_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )

void

add_icon_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

void

add_icon_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )

void

add_icon_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

void

add_icon_radio_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

void

add_icon_radio_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )

void

add_icon_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )

void

add_item ( String label, int id=-1, Key accel=0 )

void

add_multistate_item ( String label, int max_states, int default_state=0, int id=-1, Key accel=0 )

void

add_radio_check_item ( String label, int id=-1, Key accel=0 )

void

add_radio_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )

void

add_separator ( String label=””, int id=-1 )

void

add_shortcut ( Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )

void

add_submenu_item ( String label, String submenu, int id=-1 )

void

add_submenu_node_item ( String label, PopupMenu submenu, int id=-1 )

void

clear ( bool free_submenus=false )

int

get_focused_item ( ) const

Key

get_item_accelerator ( int index ) const

Texture2D

get_item_icon ( int index ) const

int

get_item_icon_max_width ( int index ) const

Color

get_item_icon_modulate ( int index ) const

int

get_item_id ( int index ) const

int

get_item_indent ( int index ) const

int

get_item_index ( int id ) const

String

get_item_language ( int index ) const

Variant

get_item_metadata ( int index ) const

int

get_item_multistate ( int index ) const

int

get_item_multistate_max ( int index ) const

Shortcut

get_item_shortcut ( int index ) const

String

get_item_submenu ( int index ) const

PopupMenu

get_item_submenu_node ( int index ) const

String

get_item_text ( int index ) const

TextDirection

get_item_text_direction ( int index ) const

String

get_item_tooltip ( int index ) const

bool

is_item_checkable ( int index ) const

bool

is_item_checked ( int index ) const

bool

is_item_disabled ( int index ) const

bool

is_item_radio_checkable ( int index ) const

bool

is_item_separator ( int index ) const

bool

is_item_shortcut_disabled ( int index ) const

bool

is_native_menu ( ) const

bool

is_system_menu ( ) const

void

remove_item ( int index )

void

scroll_to_item ( int index )

void

set_focused_item ( int index )

void

set_item_accelerator ( int index, Key accel )

void

set_item_as_checkable ( int index, bool enable )

void

set_item_as_radio_checkable ( int index, bool enable )

void

set_item_as_separator ( int index, bool enable )

void

set_item_checked ( int index, bool checked )

void

set_item_disabled ( int index, bool disabled )

void

set_item_icon ( int index, Texture2D icon )

void

set_item_icon_max_width ( int index, int width )

void

set_item_icon_modulate ( int index, Color modulate )

void

set_item_id ( int index, int id )

void

set_item_indent ( int index, int indent )

void

set_item_language ( int index, String language )

void

set_item_metadata ( int index, Variant metadata )

void

set_item_multistate ( int index, int state )

void

set_item_multistate_max ( int index, int max_states )

void

set_item_shortcut ( int index, Shortcut shortcut, bool global=false )

void

set_item_shortcut_disabled ( int index, bool disabled )

void

set_item_submenu ( int index, String submenu )

void

set_item_submenu_node ( int index, PopupMenu submenu )

void

set_item_text ( int index, String text )

void

set_item_text_direction ( int index, TextDirection direction )

void

set_item_tooltip ( int index, String tooltip )

void

toggle_item_checked ( int index )

void

toggle_item_multistate ( int index )

Theme Properties

Color

font_accelerator_color

Color(0.7, 0.7, 0.7, 0.8)

Color

font_color

Color(0.875, 0.875, 0.875, 1)

Color

font_disabled_color

Color(0.4, 0.4, 0.4, 0.8)

Color

font_hover_color

Color(0.875, 0.875, 0.875, 1)

Color

font_outline_color

Color(0, 0, 0, 1)

Color

font_separator_color

Color(0.875, 0.875, 0.875, 1)

Color

font_separator_outline_color

Color(0, 0, 0, 1)

int

h_separation

4

int

icon_max_width

0

int

indent

10

int

item_end_padding

2

int

item_start_padding

2

int

outline_size

0

int

separator_outline_size

0

int

v_separation

4

Font

font

Font

font_separator

int

font_separator_size

int

font_size

Texture2D

checked

Texture2D

checked_disabled

Texture2D

radio_checked

Texture2D

radio_checked_disabled

Texture2D

radio_unchecked

Texture2D

radio_unchecked_disabled

Texture2D

submenu

Texture2D

submenu_mirrored

Texture2D

unchecked

Texture2D

unchecked_disabled

StyleBox

hover

StyleBox

labeled_separator_left

StyleBox

labeled_separator_right

StyleBox

panel

StyleBox

separator


Signals

id_focused ( int id )

There is currently no description for this signal. Please help us by contributing one!


id_pressed ( int id )

There is currently no description for this signal. Please help us by contributing one!


index_pressed ( int index )

There is currently no description for this signal. Please help us by contributing one!


menu_changed ( )

There is currently no description for this signal. Please help us by contributing one!


Property Descriptions

  • void set_allow_search ( bool value )

  • bool get_allow_search ( )

There is currently no description for this property. Please help us by contributing one!


bool hide_on_checkable_item_selection = true

  • void set_hide_on_checkable_item_selection ( bool value )

  • bool is_hide_on_checkable_item_selection ( )

There is currently no description for this property. Please help us by contributing one!


bool hide_on_item_selection = true

  • void set_hide_on_item_selection ( bool value )

  • bool is_hide_on_item_selection ( )

There is currently no description for this property. Please help us by contributing one!


bool hide_on_state_item_selection = false

  • void set_hide_on_state_item_selection ( bool value )

  • bool is_hide_on_state_item_selection ( )

There is currently no description for this property. Please help us by contributing one!


int item_count = 0

  • void set_item_count ( int value )

  • int get_item_count ( )

There is currently no description for this property. Please help us by contributing one!


bool prefer_native_menu = false

  • void set_prefer_native_menu ( bool value )

  • bool is_prefer_native_menu ( )

There is currently no description for this property. Please help us by contributing one!


float submenu_popup_delay = 0.3

  • void set_submenu_popup_delay ( float value )

  • float get_submenu_popup_delay ( )

There is currently no description for this property. Please help us by contributing one!


SystemMenus system_menu_id = 0

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

bool activate_item_by_event ( InputEvent event, bool for_global_only=false )

There is currently no description for this method. Please help us by contributing one!


void add_check_item ( String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )

There is currently no description for this method. Please help us by contributing one!


void add_icon_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_icon_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )

There is currently no description for this method. Please help us by contributing one!


void add_icon_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_icon_radio_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_icon_radio_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )

There is currently no description for this method. Please help us by contributing one!


void add_icon_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )

There is currently no description for this method. Please help us by contributing one!


void add_item ( String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_multistate_item ( String label, int max_states, int default_state=0, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_radio_check_item ( String label, int id=-1, Key accel=0 )

There is currently no description for this method. Please help us by contributing one!


void add_radio_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )

There is currently no description for this method. Please help us by contributing one!


void add_separator ( String label=””, int id=-1 )

There is currently no description for this method. Please help us by contributing one!


void add_shortcut ( Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )

There is currently no description for this method. Please help us by contributing one!


void add_submenu_item ( String label, String submenu, int id=-1 )

There is currently no description for this method. Please help us by contributing one!


void add_submenu_node_item ( String label, PopupMenu submenu, int id=-1 )

There is currently no description for this method. Please help us by contributing one!


void clear ( bool free_submenus=false )

There is currently no description for this method. Please help us by contributing one!


int get_focused_item ( ) const

There is currently no description for this method. Please help us by contributing one!


Key get_item_accelerator ( int index ) const

There is currently no description for this method. Please help us by contributing one!


Texture2D get_item_icon ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_icon_max_width ( int index ) const

There is currently no description for this method. Please help us by contributing one!


Color get_item_icon_modulate ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_id ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_indent ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_index ( int id ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_language ( int index ) const

There is currently no description for this method. Please help us by contributing one!


Variant get_item_metadata ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_multistate ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_multistate_max ( int index ) const

There is currently no description for this method. Please help us by contributing one!


Shortcut get_item_shortcut ( int index ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_submenu ( int index ) const

There is currently no description for this method. Please help us by contributing one!


PopupMenu get_item_submenu_node ( int index ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_text ( int index ) const

There is currently no description for this method. Please help us by contributing one!


TextDirection get_item_text_direction ( int index ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_tooltip ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_checkable ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_checked ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_disabled ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_radio_checkable ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_separator ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_shortcut_disabled ( int index ) const

There is currently no description for this method. Please help us by contributing one!


bool is_native_menu ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_system_menu ( ) const

There is currently no description for this method. Please help us by contributing one!


void remove_item ( int index )

There is currently no description for this method. Please help us by contributing one!


void scroll_to_item ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_focused_item ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_item_accelerator ( int index, Key accel )

There is currently no description for this method. Please help us by contributing one!


void set_item_as_checkable ( int index, bool enable )

There is currently no description for this method. Please help us by contributing one!


void set_item_as_radio_checkable ( int index, bool enable )

There is currently no description for this method. Please help us by contributing one!


void set_item_as_separator ( int index, bool enable )

There is currently no description for this method. Please help us by contributing one!


void set_item_checked ( int index, bool checked )

There is currently no description for this method. Please help us by contributing one!


void set_item_disabled ( int index, bool disabled )

There is currently no description for this method. Please help us by contributing one!


void set_item_icon ( int index, Texture2D icon )

There is currently no description for this method. Please help us by contributing one!


void set_item_icon_max_width ( int index, int width )

There is currently no description for this method. Please help us by contributing one!


void set_item_icon_modulate ( int index, Color modulate )

There is currently no description for this method. Please help us by contributing one!


void set_item_id ( int index, int id )

There is currently no description for this method. Please help us by contributing one!


void set_item_indent ( int index, int indent )

There is currently no description for this method. Please help us by contributing one!


void set_item_language ( int index, String language )

There is currently no description for this method. Please help us by contributing one!


void set_item_metadata ( int index, Variant metadata )

There is currently no description for this method. Please help us by contributing one!


void set_item_multistate ( int index, int state )

There is currently no description for this method. Please help us by contributing one!


void set_item_multistate_max ( int index, int max_states )

There is currently no description for this method. Please help us by contributing one!


void set_item_shortcut ( int index, Shortcut shortcut, bool global=false )

There is currently no description for this method. Please help us by contributing one!


void set_item_shortcut_disabled ( int index, bool disabled )

There is currently no description for this method. Please help us by contributing one!


void set_item_submenu ( int index, String submenu )

There is currently no description for this method. Please help us by contributing one!


void set_item_submenu_node ( int index, PopupMenu submenu )

There is currently no description for this method. Please help us by contributing one!


void set_item_text ( int index, String text )

There is currently no description for this method. Please help us by contributing one!


void set_item_text_direction ( int index, TextDirection direction )

There is currently no description for this method. Please help us by contributing one!


void set_item_tooltip ( int index, String tooltip )

There is currently no description for this method. Please help us by contributing one!


void toggle_item_checked ( int index )

There is currently no description for this method. Please help us by contributing one!


void toggle_item_multistate ( int index )

There is currently no description for this method. Please help us by contributing one!


Theme Property Descriptions

Color font_accelerator_color = Color(0.7, 0.7, 0.7, 0.8)

There is currently no description for this theme property. Please help us by contributing one!


Color font_color = Color(0.875, 0.875, 0.875, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_disabled_color = Color(0.4, 0.4, 0.4, 0.8)

There is currently no description for this theme property. Please help us by contributing one!


Color font_hover_color = Color(0.875, 0.875, 0.875, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_outline_color = Color(0, 0, 0, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_separator_color = Color(0.875, 0.875, 0.875, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_separator_outline_color = Color(0, 0, 0, 1)

There is currently no description for this theme property. Please help us by contributing one!


int h_separation = 4

There is currently no description for this theme property. Please help us by contributing one!


int icon_max_width = 0

There is currently no description for this theme property. Please help us by contributing one!


int indent = 10

There is currently no description for this theme property. Please help us by contributing one!


int item_end_padding = 2

There is currently no description for this theme property. Please help us by contributing one!


int item_start_padding = 2

There is currently no description for this theme property. Please help us by contributing one!


int outline_size = 0

There is currently no description for this theme property. Please help us by contributing one!


int separator_outline_size = 0

There is currently no description for this theme property. Please help us by contributing one!


int v_separation = 4

There is currently no description for this theme property. Please help us by contributing one!


Font font

There is currently no description for this theme property. Please help us by contributing one!


Font font_separator

There is currently no description for this theme property. Please help us by contributing one!


int font_separator_size

There is currently no description for this theme property. Please help us by contributing one!


int font_size

There is currently no description for this theme property. Please help us by contributing one!


Texture2D checked

There is currently no description for this theme property. Please help us by contributing one!


Texture2D checked_disabled

There is currently no description for this theme property. Please help us by contributing one!


Texture2D radio_checked

There is currently no description for this theme property. Please help us by contributing one!


Texture2D radio_checked_disabled

There is currently no description for this theme property. Please help us by contributing one!


Texture2D radio_unchecked

There is currently no description for this theme property. Please help us by contributing one!


Texture2D radio_unchecked_disabled

There is currently no description for this theme property. Please help us by contributing one!


Texture2D submenu

There is currently no description for this theme property. Please help us by contributing one!


Texture2D submenu_mirrored

There is currently no description for this theme property. Please help us by contributing one!


Texture2D unchecked

There is currently no description for this theme property. Please help us by contributing one!


Texture2D unchecked_disabled

There is currently no description for this theme property. Please help us by contributing one!


StyleBox hover

There is currently no description for this theme property. Please help us by contributing one!


StyleBox labeled_separator_left

There is currently no description for this theme property. Please help us by contributing one!


StyleBox labeled_separator_right

There is currently no description for this theme property. Please help us by contributing one!


StyleBox panel

There is currently no description for this theme property. Please help us by contributing one!


StyleBox separator

There is currently no description for this theme property. Please help us by contributing one!