[gd_scene load_steps=12 format=3 uid="uid://bqfijb7bk2g7j"] [ext_resource type="Theme" uid="uid://bt4hxdwromnxs" path="res://ui/theme.tres" id="1_6qgep"] [ext_resource type="Script" path="res://scripts/ui/login/show_banner_on_error.gd" id="2_1tbi1"] [ext_resource type="Script" path="res://scripts/ui/swap_menu.gd" id="2_c477a"] [ext_resource type="Script" path="res://scripts/ui/login/login.gd" id="3_33cgr"] [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"] [ext_resource type="Script" path="res://scripts/ui/lobby/search_match.gd" id="7_dmfpl"] [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) [node name="Root" type="Panel"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -1.0 offset_right = -1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("1_6qgep") theme_override_styles/panel = SubResource("StyleBoxFlat_q2pxx") [node name="Screens" type="TabContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 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 [node name="Title" type="RichTextLabel" parent="Screens/Start/V"] clip_contents = false layout_mode = 2 size_flags_stretch_ratio = 7.45 theme_override_font_sizes/normal_font_size = 64 text = "Epic TD Deluxe" fit_content = true scroll_active = false autowrap_mode = 0 [node name="Login" type="Button" parent="Screens/Start/V" node_paths=PackedStringArray("menu")] layout_mode = 2 text = "Login" script = ExtResource("2_c477a") 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 [node name="Back" type="Button" parent="Screens/Login/CenterContainer/VBoxContainer/Actions" node_paths=PackedStringArray("menu")] layout_mode = 2 size_flags_horizontal = 3 text = "Back" script = ExtResource("2_c477a") 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