gmtk-2024/addons/AsepriteWizard/interface/imports_manager/import_panels.gd
2024-08-17 15:22:33 +01:00

28 lines
539 B
GDScript

@tool
extends MarginContainer
signal dock_requested
enum Tabs {
DOCK_IMPORTS = 0,
}
@onready var _tabs: TabContainer = $TabContainer
@onready var _dock_button: Button = $dock_button
func _ready():
_tabs.set_tab_title(Tabs.DOCK_IMPORTS, "Dock Imports")
_dock_button.icon = get_theme_icon("MakeFloating", "EditorIcons")
set_as_floating()
func _on_dock_button_pressed():
dock_requested.emit()
func set_as_floating():
_dock_button.tooltip_text = "Dock window"
func set_as_docked():
_dock_button.tooltip_text = "Undock window"