Godot 4.5.1

This commit is contained in:
YourWishes committed 2025-12-14 22:43:11 +10:00
1 parent 5805ac2260
commit 4dd1ce64f5
433 files changed
+2922 -585

No files matched your search

+7 -7
View File
@@ -4,12 +4,12 @@ class_name SettingsMenu extends Control
@export var tabControls:Array[Control]
func _ready() -> void:
tabs.tab_changed.connect(onTabChanged)
onTabChanged(tabs.current_tab)
tabs.tab_changed.connect(onTabChanged)
onTabChanged(tabs.current_tab)
func onTabChanged(tabIndex:int) -> void:
for control in tabControls:
control.visible = false
if tabIndex >= 0 and tabIndex < tabControls.size():
tabControls[tabIndex].visible = true
for control in tabControls:
control.visible = false
if tabIndex >= 0 and tabIndex < tabControls.size():
tabControls[tabIndex].visible = true