MiniMenuButton ​
Inherits: Control
Individual button in the MiniMenu for toggling a UI panel. It belongs to a panel key number (1 to 20), shows an icon, handles hover/press states, shows a tooltip and the key that opens the panel.
Variables ​
int | panel_number | 0 |
String | panel_name | |
String | description | |
Texture2D | slot_texture |
Methods ​
void | setup_button( p_panel_number: int, p_panel_name: String, p_description: String = "", p_texture: Texture2D = null ) |
String | get_key_text() |
Signals ​
panel_number_requested( panel_number: int ) ​
Signal emitted when the button is clicked to toggle the panel of its number
description_tooltip_requested( object_name: String, description_text: String ) ​
Signal emitted when mouse enters for tooltip
hide_tooltip( force_hide: bool ) ​
Signal emitted when mouse exits to hide tooltip
Variable descriptions ​
int panel_number = 0 ​
The panel key number (1 to 20) this button toggles
String panel_name ​
The name of the panel (the title of the tooltip)
String description ​
Description text for the tooltip
Texture2D slot_texture ​
Icon texture for the button
Method descriptions ​
void setup_button( p_panel_number: int, p_panel_name: String, p_description: String = "", p_texture: Texture2D = null ) ​
Configure the button with panel data
String get_key_text() ​
The key of the action of this number ("" when there is none)