[gd_scene load_steps=12 format=3 uid="uid://lwtn5sbr5jr2"] [ext_resource type="Script" uid="uid://cvstgaigwt0sj" path="res://scripts/launcher_main.gd" id="1"] [ext_resource type="Script" uid="uid://ptdurqksg1sv" path="res://scripts/version_checker.gd" id="2"] [ext_resource type="Script" uid="uid://cer12vb230kfw" path="res://scripts/download_manager.gd" id="3"] [ext_resource type="Script" uid="uid://n2ptlbblexo6" path="res://scripts/update_applier.gd" id="4"] [ext_resource type="Script" uid="uid://coer7l074xm6x" path="res://scripts/news_fetcher.gd" id="5"] [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_tab_panel"] content_margin_left = 8.0 content_margin_top = 8.0 content_margin_right = 8.0 content_margin_bottom = 8.0 bg_color = Color(0.059, 0.059, 0.118, 1) 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_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_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 [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 script = ExtResource("1") [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.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="VBoxContainer" 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 grow_horizontal = 2 grow_vertical = 2 [node name="TitleBar" type="PanelContainer" parent="MainPanel"] custom_minimum_size = Vector2(0, 60) layout_mode = 2 size_flags_vertical = 0 theme_override_styles/panel = SubResource("StyleBoxFlat_titlebar") [node name="HBoxContainer" type="HBoxContainer" parent="MainPanel/TitleBar"] layout_mode = 2 [node name="TitleLabel" type="Label" parent="MainPanel/TitleBar/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 theme_override_colors/font_color = Color(0, 0.831, 1, 1) theme_override_font_sizes/font_size = 24 text = "TEKTON LAUNCHER" [node name="VersionLabel" type="Label" parent="MainPanel/TitleBar"] layout_mode = 2 theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1) text = "v0.0.0" horizontal_alignment = 2 [node name="ContentContainer" type="VBoxContainer" parent="MainPanel"] layout_mode = 2 size_flags_vertical = 3 alignment = 1 [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 grow_horizontal = 2 grow_vertical = 2 [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 grow_horizontal = 2 grow_vertical = 2 [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"] custom_minimum_size = Vector2(0, 80) layout_mode = 2 alignment = 2 [node name="StatusLabel" type="Label" parent="MainPanel/ContentContainer/BottomBar"] layout_mode = 2 size_flags_horizontal = 3 theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1) text = "Checking for updates..." [node name="ProgressContainer" type="VBoxContainer" parent="MainPanel/ContentContainer/BottomBar"] visible = false custom_minimum_size = Vector2(200, 0) layout_mode = 2 [node name="ProgressBar" type="ProgressBar" parent="MainPanel/ContentContainer/BottomBar/ProgressContainer"] custom_minimum_size = Vector2(200, 20) layout_mode = 2 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 theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1) text = "0%" horizontal_alignment = 1 [node name="PlayButton" type="Button" parent="MainPanel/ContentContainer/BottomBar"] custom_minimum_size = Vector2(160, 50) layout_mode = 2 theme_override_colors/font_color = Color(0.039, 0.039, 0.102, 1) theme_override_font_sizes/font_size = 18 theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover") theme_override_styles/normal = SubResource("StyleBoxFlat_button") text = "► PLAY"