fix(client): create TabContainer children programmatically
Godot 4.6 TabContainer silently destroys children defined in .tscn
during scene instantiation ("Parent path has vanished"). Moving tab
shell creation to _ready() fixes the right-side settings panel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -157,21 +157,7 @@ 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)
|
||||
|
||||
; Five empty tab shells — content built programmatically in character_creation.gd
|
||||
[node name="Body" type="Control" parent="Layout/TabPanel/TabContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Head" type="Control" parent="Layout/TabPanel/TabContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Hair" type="Control" parent="Layout/TabPanel/TabContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Clothing" type="Control" parent="Layout/TabPanel/TabContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Accessories" type="Control" parent="Layout/TabPanel/TabContainer"]
|
||||
layout_mode = 2
|
||||
; Tab shells created programmatically in character_creation.gd _ready()
|
||||
|
||||
; ===========================================================================
|
||||
; Footer — full width, 48px tall, anchored to bottom
|
||||
|
||||
Reference in New Issue
Block a user