2025-03-04 15:25:27 +01:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://bqfijb7bk2g7j"]
|
2025-01-29 13:43:42 +01:00
|
|
|
|
|
|
|
[ext_resource type="Theme" uid="uid://bt4hxdwromnxs" path="res://ui/theme.tres" id="1_6qgep"]
|
2025-03-05 11:35:40 +01:00
|
|
|
[ext_resource type="Script" path="res://scripts/ui/login/show_banner_on_error.gd" id="2_1tbi1"]
|
2025-03-04 15:25:27 +01:00
|
|
|
[ext_resource type="Script" path="res://scripts/ui/swap_menu.gd" id="2_c477a"]
|
2025-03-05 11:35:40 +01:00
|
|
|
[ext_resource type="Script" path="res://scripts/ui/login/login.gd" id="3_33cgr"]
|
2025-03-04 15:25:27 +01:00
|
|
|
[ext_resource type="Resource" uid="uid://cdixdbu3sqgjn" path="res://config/api_config.tres" id="4_5vuod"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/quit.gd" id="6_cixwl"]
|
2025-03-05 11:35:40 +01:00
|
|
|
[ext_resource type="Script" path="res://scripts/ui/lobby/search_match.gd" id="7_dmfpl"]
|
2025-03-04 15:25:27 +01:00
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q2pxx"]
|
|
|
|
bg_color = Color(0.52, 0.52, 0.52, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_socr1"]
|
|
|
|
bg_color = Color(0.74463, 0.147328, 0, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fh0xh"]
|
|
|
|
bg_color = Color(0.135012, 0.135012, 0.135012, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_x4jly"]
|
|
|
|
bg_color = Color(7.89344e-06, 0.65411, 0.87403, 1)
|
2025-01-29 13:43:42 +01:00
|
|
|
|
|
|
|
[node name="Root" type="Panel"]
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2025-02-14 08:57:28 +01:00
|
|
|
offset_left = -1.0
|
|
|
|
offset_right = -1.0
|
2025-01-29 13:43:42 +01:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme = ExtResource("1_6qgep")
|
2025-03-04 15:25:27 +01:00
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_q2pxx")
|
2025-01-29 13:43:42 +01:00
|
|
|
|
2025-03-04 15:25:27 +01:00
|
|
|
[node name="Screens" type="TabContainer" parent="."]
|
2025-01-29 13:43:42 +01:00
|
|
|
layout_mode = 1
|
2025-03-04 15:25:27 +01:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2025-01-29 13:43:42 +01:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2025-03-04 15:25:27 +01:00
|
|
|
current_tab = 0
|
|
|
|
tabs_visible = false
|
|
|
|
|
|
|
|
[node name="Start" type="CenterContainer" parent="Screens"]
|
|
|
|
layout_mode = 2
|
|
|
|
metadata/_tab_index = 0
|
|
|
|
|
|
|
|
[node name="V" type="VBoxContainer" parent="Screens/Start"]
|
|
|
|
layout_mode = 2
|
2025-01-29 13:43:42 +01:00
|
|
|
|
2025-03-04 15:25:27 +01:00
|
|
|
[node name="Title" type="RichTextLabel" parent="Screens/Start/V"]
|
2025-01-29 13:43:42 +01:00
|
|
|
clip_contents = false
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_stretch_ratio = 7.45
|
|
|
|
theme_override_font_sizes/normal_font_size = 64
|
2025-02-14 08:57:28 +01:00
|
|
|
text = "Epic TD Deluxe"
|
2025-01-29 13:43:42 +01:00
|
|
|
fit_content = true
|
|
|
|
scroll_active = false
|
|
|
|
autowrap_mode = 0
|
|
|
|
|
2025-03-04 15:25:27 +01:00
|
|
|
[node name="Login" type="Button" parent="Screens/Start/V" node_paths=PackedStringArray("menu")]
|
2025-01-29 13:43:42 +01:00
|
|
|
layout_mode = 2
|
2025-02-14 08:57:28 +01:00
|
|
|
text = "Login"
|
|
|
|
script = ExtResource("2_c477a")
|
2025-03-04 15:25:27 +01:00
|
|
|
menu = NodePath("../../../Login")
|
|
|
|
|
|
|
|
[node name="Settings" type="Button" parent="Screens/Start/V"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Settings"
|
|
|
|
script = ExtResource("2_c477a")
|
|
|
|
|
|
|
|
[node name="Quit" type="Button" parent="Screens/Start/V"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Quit"
|
|
|
|
script = ExtResource("6_cixwl")
|
|
|
|
|
|
|
|
[node name="Login" type="VBoxContainer" parent="Screens"]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
metadata/_tab_index = 1
|
|
|
|
|
|
|
|
[node name="Banner" type="PanelContainer" parent="Screens/Login" node_paths=PackedStringArray("login", "text")]
|
|
|
|
layout_mode = 2
|
|
|
|
script = ExtResource("2_1tbi1")
|
|
|
|
login = NodePath("../CenterContainer/VBoxContainer/Actions/Login")
|
|
|
|
text = NodePath("CenterContainer/MarginContainer/RichTextLabel")
|
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="Screens/Login/Banner"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_socr1")
|
|
|
|
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="Screens/Login/Banner"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Screens/Login/Banner/CenterContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="Screens/Login/Banner/CenterContainer/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Keine Verbindung"
|
|
|
|
fit_content = true
|
|
|
|
autowrap_mode = 0
|
|
|
|
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="Screens/Login"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Screens/Login/CenterContainer"]
|
|
|
|
custom_minimum_size = Vector2(500, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/separation = 16
|
|
|
|
|
|
|
|
[node name="UsernameInput" type="LineEdit" parent="Screens/Login/CenterContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
placeholder_text = "username"
|
|
|
|
|
|
|
|
[node name="PasswordInput" type="LineEdit" parent="Screens/Login/CenterContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
placeholder_text = "password"
|
|
|
|
secret = true
|
|
|
|
|
|
|
|
[node name="Actions" type="HBoxContainer" parent="Screens/Login/CenterContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
2025-02-14 08:57:28 +01:00
|
|
|
|
2025-03-04 15:25:27 +01:00
|
|
|
[node name="Back" type="Button" parent="Screens/Login/CenterContainer/VBoxContainer/Actions" node_paths=PackedStringArray("menu")]
|
2025-02-14 08:57:28 +01:00
|
|
|
layout_mode = 2
|
2025-03-04 15:25:27 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Back"
|
2025-01-29 13:43:42 +01:00
|
|
|
script = ExtResource("2_c477a")
|
2025-03-04 15:25:27 +01:00
|
|
|
menu = NodePath("../../../../../Start")
|
|
|
|
|
|
|
|
[node name="Login" type="Button" parent="Screens/Login/CenterContainer/VBoxContainer/Actions" node_paths=PackedStringArray("username_field", "password_field", "next_view")]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Login"
|
|
|
|
script = ExtResource("3_33cgr")
|
|
|
|
username_field = NodePath("../../UsernameInput")
|
|
|
|
password_field = NodePath("../../PasswordInput")
|
|
|
|
api_config = ExtResource("4_5vuod")
|
|
|
|
next_view = NodePath("../../../../../Lobby")
|
|
|
|
|
|
|
|
[node name="HTTPRequest" type="HTTPRequest" parent="Screens/Login/CenterContainer/VBoxContainer/Actions/Login"]
|
|
|
|
|
|
|
|
[node name="Lobby" type="CenterContainer" parent="Screens" node_paths=PackedStringArray("popup", "search_button", "abort_button", "accept_button", "decline_button", "time_bar", "login")]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
script = ExtResource("7_dmfpl")
|
|
|
|
popup = NodePath("Popup")
|
|
|
|
search_button = NodePath("Search")
|
|
|
|
abort_button = NodePath("Abort")
|
|
|
|
accept_button = NodePath("Popup/MarginContainer/HBoxContainer/Accept")
|
|
|
|
decline_button = NodePath("Popup/MarginContainer/HBoxContainer/Decline")
|
|
|
|
time_bar = NodePath("Popup/Time Bar")
|
|
|
|
login = NodePath("../Login/CenterContainer/VBoxContainer/Actions/Login")
|
|
|
|
metadata/_tab_index = 2
|
|
|
|
|
|
|
|
[node name="Search" type="Button" parent="Screens/Lobby"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Search"
|
|
|
|
|
|
|
|
[node name="Abort" type="Button" parent="Screens/Lobby"]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Abort"
|
|
|
|
|
|
|
|
[node name="Popup" type="PanelContainer" parent="Screens/Lobby"]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_fh0xh")
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Screens/Lobby/Popup"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 16
|
|
|
|
theme_override_constants/margin_top = 16
|
|
|
|
theme_override_constants/margin_right = 16
|
|
|
|
theme_override_constants/margin_bottom = 16
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Screens/Lobby/Popup/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/separation = 16
|
|
|
|
|
|
|
|
[node name="Accept" type="Button" parent="Screens/Lobby/Popup/MarginContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Accept
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="Decline" type="Button" parent="Screens/Lobby/Popup/MarginContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Decline"
|
|
|
|
|
|
|
|
[node name="Time Bar" type="ProgressBar" parent="Screens/Lobby/Popup"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 8
|
|
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_x4jly")
|
|
|
|
value = 100.0
|
|
|
|
show_percentage = false
|