Files
sor/Client/origin-client/scenes/init/InitScreen.tscn
T
a46be8e06c Init screen: loading bar + version check hang fix
Replace the sync card count with a ProgressBar that pulses
indeterminately during version check, then fills 5→85% during
content sync, 90% during active-session check, 100% on done.

Add an 8-second timeout on version.check so a silent server-side
hang (server receives packet but never replies) auto-proceeds to
sync instead of freezing the init screen indefinitely.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-23 12:14:42 -04:00

80 lines
2.0 KiB
Plaintext

[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scenes/init/init_screen.gd" id="1_init"]
[node name="InitScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_init")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.094, 0.094, 0.137, 1.0)
[node name="Center" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBox" type="VBoxContainer" parent="Center"]
layout_mode = 2
custom_minimum_size = Vector2(340, 0)
theme_override_constants/separation = 20
[node name="Logo" type="Label" parent="Center/VBox"]
layout_mode = 2
text = "ORIGIN"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 36
[node name="StatusLabel" type="Label" parent="Center/VBox"]
unique_name_in_owner = true
layout_mode = 2
text = "Starting…"
horizontal_alignment = 1
autowrap_mode = 3
modulate = Color(0.75, 0.75, 0.8, 1.0)
theme_override_font_sizes/font_size = 14
[node name="ProgressBar" type="ProgressBar" parent="Center/VBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 8)
show_percentage = false
value = 0.0
[node name="UpdatePanel" type="VBoxContainer" parent="Center/VBox"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 12
visible = false
[node name="UpdateMsg" type="Label" parent="Center/VBox/UpdatePanel"]
unique_name_in_owner = true
layout_mode = 2
text = "A required update is available."
horizontal_alignment = 1
autowrap_mode = 3
modulate = Color(1.0, 0.75, 0.3, 1.0)
theme_override_font_sizes/font_size = 14
[node name="RetryBtn" type="Button" parent="Center/VBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 48)
text = "Retry"
visible = false
theme_override_font_sizes/font_size = 15