added the game

This commit is contained in:
JHDev2006
2025-09-13 16:30:32 +01:00
parent 5ef689109b
commit 3773bdaf64
3616 changed files with 263702 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
extends MarginContainer
static var current_tab = null
@export var icon: Texture = null
@export var title := ""
@export var linked_control: Control = null
@export var first_pick := false
func _ready() -> void:
if first_pick:
tab_clicked()
$HBoxContainer/Label.text = title
$HBoxContainer/TextureRect.texture = icon
update()
func update() -> void:
print(current_tab == self)
$HBoxContainer/Label.visible = current_tab == self
$Selected.visible = current_tab == self
linked_control.visible = current_tab == self
func tab_clicked() -> void:
current_tab = self
get_tree().call_group("EditorTabs", "update")