SaveFileButton ​
Inherits: MarginContainer
One saved game in the list of the load menu: its name and details, with colors for the unselected, the hovered and the selected state. save_button_selected is emitted when it is clicked.
Properties ​
Color | unselected_background_colour | |
Color | mouse_over_background_colour | |
Color | selected_background_colour |
Variables ​
String | save_file_path |
Methods ​
void | set_save( save_name: String, file_path: String ) |
void | save_file_selected() |
void | unselect_save_file() |
Signals ​
save_button_selected( save_file: SaveFileButton ) ​
Emitted when the button is clicked.
Property descriptions ​
Color unselected_background_colour ​
The color of the background when it is not picked.
Color mouse_over_background_colour ​
The color of the background under the mouse.
Color selected_background_colour ​
The color of the background when it is picked.
Variable descriptions ​
String save_file_path ​
The path of the save file.
Method descriptions ​
void set_save( save_name: String, file_path: String ) ​
Fills the button with a save: its name and the time it was written.
void save_file_selected() ​
Marks the button as the one picked.
void unselect_save_file() ​
Marks the button as not picked.