Files
tekton/launcher/scenes/launcher.tscn
T
2025-12-10 02:35:17 +08:00

207 lines
6.6 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://launcher_main"]
[ext_resource type="Script" path="res://scripts/launcher_main.gd" id="1"]
[ext_resource type="Script" path="res://scripts/version_checker.gd" id="2"]
[ext_resource type="Script" path="res://scripts/download_manager.gd" id="3"]
[ext_resource type="Script" path="res://scripts/update_applier.gd" id="4"]
[ext_resource type="Script" path="res://scripts/news_fetcher.gd" id="5"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bg"]
bg_color = Color(0.039, 0.039, 0.102, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
bg_color = Color(0.078, 0.078, 0.157, 1)
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_titlebar"]
bg_color = Color(0.059, 0.059, 0.118, 1)
corner_radius_top_left = 12
corner_radius_top_right = 12
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button"]
bg_color = Color(0, 0.831, 1, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_hover"]
bg_color = Color(0.2, 0.9, 1, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_progress_bg"]
bg_color = Color(0.1, 0.1, 0.2, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_progress_fill"]
bg_color = Color(0, 0.831, 1, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_panel"]
bg_color = Color(0.059, 0.059, 0.118, 1)
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
content_margin_left = 8.0
content_margin_top = 8.0
content_margin_right = 8.0
content_margin_bottom = 8.0
[node name="Launcher" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_bg")
script = ExtResource("1")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.039, 0.039, 0.102, 1)
[node name="VersionChecker" type="Node" parent="."]
script = ExtResource("2")
[node name="DownloadManager" type="Node" parent="."]
script = ExtResource("3")
[node name="UpdateApplier" type="Node" parent="."]
script = ExtResource("4")
[node name="NewsFetcher" type="Node" parent="."]
script = ExtResource("5")
[node name="MainPanel" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -20.0
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
[node name="TitleBar" type="PanelContainer" parent="MainPanel"]
layout_mode = 2
size_flags_vertical = 0
custom_minimum_size = Vector2(0, 60)
theme_override_styles/panel = SubResource("StyleBoxFlat_titlebar")
[node name="HBoxContainer" type="HBoxContainer" parent="MainPanel/TitleBar"]
layout_mode = 2
offset_left = 16.0
offset_right = -16.0
[node name="TitleLabel" type="Label" parent="MainPanel/TitleBar/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "TEKTON LAUNCHER"
theme_override_colors/font_color = Color(0, 0.831, 1, 1)
theme_override_font_sizes/font_size = 24
[node name="VersionLabel" type="Label" parent="MainPanel/TitleBar"]
layout_mode = 2
offset_left = 750.0
offset_top = 20.0
offset_right = 840.0
offset_bottom = 40.0
text = "v0.0.0"
theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1)
horizontal_alignment = 2
[node name="ContentContainer" type="VBoxContainer" parent="MainPanel"]
layout_mode = 2
offset_top = 60.0
[node name="TabContainer" type="TabContainer" parent="MainPanel/ContentContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_tab_panel")
current_tab = 0
[node name="News" type="Control" parent="MainPanel/ContentContainer/TabContainer"]
layout_mode = 2
metadata/_tab_index = 0
[node name="ScrollContainer" type="ScrollContainer" parent="MainPanel/ContentContainer/TabContainer/News"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="NewsVBox" type="VBoxContainer" parent="MainPanel/ContentContainer/TabContainer/News/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Changelog" type="Control" parent="MainPanel/ContentContainer/TabContainer"]
visible = false
layout_mode = 2
metadata/_tab_index = 1
[node name="ScrollContainer" type="ScrollContainer" parent="MainPanel/ContentContainer/TabContainer/Changelog"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="ChangelogVBox" type="VBoxContainer" parent="MainPanel/ContentContainer/TabContainer/Changelog/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="BottomBar" type="HBoxContainer" parent="MainPanel/ContentContainer"]
layout_mode = 2
custom_minimum_size = Vector2(0, 80)
alignment = 2
[node name="StatusLabel" type="Label" parent="MainPanel/ContentContainer/BottomBar"]
layout_mode = 2
size_flags_horizontal = 3
text = "Checking for updates..."
theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1)
[node name="ProgressContainer" type="VBoxContainer" parent="MainPanel/ContentContainer/BottomBar"]
visible = false
layout_mode = 2
custom_minimum_size = Vector2(200, 0)
[node name="ProgressBar" type="ProgressBar" parent="MainPanel/ContentContainer/BottomBar/ProgressContainer"]
layout_mode = 2
custom_minimum_size = Vector2(200, 20)
theme_override_styles/background = SubResource("StyleBoxFlat_progress_bg")
theme_override_styles/fill = SubResource("StyleBoxFlat_progress_fill")
show_percentage = false
[node name="ProgressLabel" type="Label" parent="MainPanel/ContentContainer/BottomBar/ProgressContainer"]
layout_mode = 2
text = "0%"
theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1)
horizontal_alignment = 1
[node name="PlayButton" type="Button" parent="MainPanel/ContentContainer/BottomBar"]
layout_mode = 2
custom_minimum_size = Vector2(160, 50)
theme_override_colors/font_color = Color(0.039, 0.039, 0.102, 1)
theme_override_font_sizes/font_size = 18
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
text = "► PLAY"