:github_url: hide
Inherits: RevisedButton < BaseButton
Button with additional content shown while hovered.
Expands when hovered by mouse revealing additional content on left side.
Was not intended to work with transparent StyleBoxes, but it still can.
Note: Its minimum_size changes depending of it state and frame of expanding animation.
Note: It is planed to add more directions.
| Vector2 | base_minimum_size | Vector2(0, 0) |
| int | expansion_indentation | 0 |
| EXPANSION_INFO | expansion_information | 0 |
| int | expansion_information_margin | 0 |
| int | expansion_minimum_size | 0 |
| int | expansion_size | 70 |
| float | expansion_speed | 25.0 |
| StringName | theme_type_variation | &"_ExpandableButton_hidden" (overrides Control.theme_type_variation) |
| void | expand( ) |
| void | reduce( ) |
EXPANSION_INFO IMAGE = 0
There is currently no description for this enum. Please help us by contributing one !
EXPANSION_INFO TEXT = 1
There is currently no description for this enum. Please help us by contributing one !
Vector2 base_minimum_size = Vector2(0, 0)
Minimum size of the main body.
int expansion_indentation = 0
Defines additional lenght of expanded StyleBox.
Added lenght will always appear underneath main StyleBox unless expansion_indentation is negative.
EXPANSION_INFO expansion_information = 0
- void set_expansion_info( value: EXPANSION_INFO )
- EXPANSION_INFO get_expansion_info( )
Defines which part of content is additional.
Note: It is planed to add posibility for two texts and/or buttons.
int expansion_information_margin = 0
If set to positive value then additional content is moved aside main body otherwise part of it renders underneath it.
int expansion_minimum_size = 0
Shows to user the minimum size of additional content.
Note: set_minimum_expansion_size does nothing.
int expansion_size = 70
Defines size of additional content unless expansion_size is less than expansion_minimum_size.
float expansion_speed = 25.0
Defines how fast additional content will appear.
Shows additional content.
Hides additional content.
<style> Violet { color: Violet } </style>