Skip to content

Latest commit

 

History

History
77 lines (39 loc) · 2.16 KB

File metadata and controls

77 lines (39 loc) · 2.16 KB

💻 menu

Functions:

is_visible

menu.is_visible(): bool

Detects whether the menu is open (returns true if open)

get_menu_pos

menu.get_menu_pos(): c_vector2d

Detect menu position

get_menu_size

menu.get_menu_size(): c_vector2d

return menu size

get_uid

menu.get_uid(): int

get_username

menu.get_username(): string

get

menu.get(int index): c_lua_menu_item

add_separator

menu.add_separator(std::string text): int

add_text

menu.add_text(std::string text): int

add_slider

menu.add_slider(std::string name, float default_value, float min, float max): int

add_combo

menu.add_combo(std::string name, int default_value, std::string items) int

add_keybind

menu.add_keybind(std::string name, int default_button, int mode, int keybind_options): int

add_flex_checkbox

menu.add_flex_checkbox(std::string name, int default_button, int mode): int

add_colorpicker

menu.add_colorpicker(std::string name, float default_r, float default_g, float default_b, float default_a, bool alpha_slider): int

add_second_colorpicker

menu.add_second_colorpicker(std::string name, float default_r, float default_g, float default_b, float default_a, bool alpha_slider): int

add_multiselection

menu.add_multiselection(std::string name, std::string items): int

add_text_input_box

menu.add_text_input_box(std::string name, std::string default_text): int

add_button_callback

menu.add_button_callback(std::string name, protected_function function): int