gmtk-2024/addons/AsepriteWizard/interface/imports_manager/import_panels.gd

29 lines
539 B
GDScript3
Raw Permalink Normal View History

2024-08-17 14:22:33 +00:00
@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"