On branch feat/godot-configurator

Changes to be committed:
	modified:   tools/configurator/main.gd
	modified:   tools/configurator/main.tscn
	modified:   tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
This commit is contained in:
monkeyx-net 2024-07-28 23:19:57 +01:00
parent f09c1a9896
commit 6885f678e4
3 changed files with 52 additions and 46 deletions

View file

@ -13,11 +13,15 @@ signal signal_theme_changed
var custom_theme: Theme = $".".theme
var emu_select_option: OptionButton
var emu_pick_option: OptionButton
var tab_container: TabContainer
func _ready():
class_functions = ClassFunctions.new()
_get_nodes()
_connect_signals()
# set current startup tab to match IDE
print (tab_container.current_tab)
tab_container.current_tab = tab_container.current_tab
add_child(class_functions) # Needed for threaded results
var children = findElements(self, "Control")
for n: Control in children: #iterate the children
@ -32,6 +36,7 @@ func _get_nodes() -> void:
theme_option = get_node("%theme_optionbutton")
emu_select_option = get_node("%emu_select_option")
emu_pick_option = get_node("%emu_pick_option")
tab_container = get_node("%TabContainer")
func _connect_signals() -> void:
#signal_theme_changed.connect(_conf_theme)

View file

@ -118,6 +118,7 @@ grow_horizontal = 2
grow_vertical = 2
[node name="TabContainer" type="TabContainer" parent="Background/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
tab_alignment = 1
current_tab = 3

File diff suppressed because one or more lines are too long