2023-01-25 00:26:17 +01:00
|
|
|
class_name MapEditorMenu extends VBoxContainer
|
|
|
|
|
|
|
|
##
|
2023-01-27 20:36:54 +01:00
|
|
|
## [code]edit_action[/code] has been activated for use when the player interacts with the map
|
|
|
|
## editor.
|
2023-01-25 00:26:17 +01:00
|
|
|
##
|
|
|
|
signal edit_activated(edit_action: Callable)
|
|
|
|
|
|
|
|
##
|
2023-01-27 20:36:54 +01:00
|
|
|
## Emits [signal edit_activated].
|
2023-01-25 00:26:17 +01:00
|
|
|
##
|
|
|
|
func activate_editor(edit_action: Callable) -> void:
|
|
|
|
edit_activated.emit(edit_action)
|
|
|
|
|
|
|
|
##
|
2023-01-27 20:36:54 +01:00
|
|
|
## Resets the state of the menu.
|
2023-01-25 00:26:17 +01:00
|
|
|
##
|
|
|
|
func reset() -> void:
|
|
|
|
pass
|