fix(client): build tab panel entirely in code — remove from .tscn

TabContainer and its VBoxContainer parent vanish during scene
instantiation when loaded as a child of MainMenu in Godot 4.6.
Moving the entire tab panel construction to _ready() resolves
the issue — the .tscn now only defines the preview side and footer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 19:11:37 +01:00
co-authored by Claude Opus 4.6
parent 307a221527
commit 2614c3c57a
2 changed files with 27 additions and 28 deletions
+2 -17
View File
@@ -141,23 +141,8 @@ text = "► [E]"
theme_override_font_sizes/font_size = 12
theme_override_colors/font_color = Color(0.784, 0.816, 0.878, 1.0)
; ===========================================================================
; Tab panel (~40% of width): 5 customisation tabs
; ===========================================================================
[node name="TabPanel" type="VBoxContainer" parent="Layout"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
add_theme_constant_override("separation", 0)
[node name="TabContainer" type="TabContainer" parent="Layout/TabPanel"]
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/font_size = 12
theme_override_colors/font_color = Color(0.784, 0.816, 0.878, 1.0)
; Tab shells created programmatically in character_creation.gd _ready()
; Tab panel built programmatically in character_creation.gd _ready()
; (TabContainer defined in .tscn vanishes during child instantiation in Godot 4.6)
; ===========================================================================
; Footer — full width, 48px tall, anchored to bottom