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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user