init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
@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"
|
||||
Reference in New Issue
Block a user