[gd_scene load_steps=6 format=3 uid="uid://dtaaw31x3n22f"] [ext_resource type="Script" path="res://scripts/ui/login.gd" id="1_12w35"] [ext_resource type="Script" path="res://scripts/ui/show_banner_on_error.gd" id="1_41hxt"] [ext_resource type="Resource" uid="uid://cdixdbu3sqgjn" path="res://config/api_config.tres" id="2_60hb8"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d0bbp"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bdovr"] bg_color = Color(0.74463, 0.147328, 0, 1) [node name="Login" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Panel" type="Panel" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_d0bbp") [node name="Container" type="VBoxContainer" parent="Panel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Banner" type="PanelContainer" parent="Panel/Container" node_paths=PackedStringArray("login", "text")] layout_mode = 2 script = ExtResource("1_41hxt") login = NodePath("../CenterContainer/VBoxContainer/Button") text = NodePath("CenterContainer/MarginContainer/RichTextLabel") [node name="Panel" type="Panel" parent="Panel/Container/Banner"] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_bdovr") [node name="CenterContainer" type="CenterContainer" parent="Panel/Container/Banner"] layout_mode = 2 [node name="MarginContainer" type="MarginContainer" parent="Panel/Container/Banner/CenterContainer"] layout_mode = 2 theme_override_constants/margin_top = 8 theme_override_constants/margin_bottom = 8 [node name="RichTextLabel" type="RichTextLabel" parent="Panel/Container/Banner/CenterContainer/MarginContainer"] layout_mode = 2 text = "Keine Verbindung" fit_content = true autowrap_mode = 0 [node name="CenterContainer" type="CenterContainer" parent="Panel/Container"] layout_mode = 2 size_flags_vertical = 3 [node name="VBoxContainer" type="VBoxContainer" parent="Panel/Container/CenterContainer"] custom_minimum_size = Vector2(500, 0) layout_mode = 2 theme_override_constants/separation = 16 [node name="Header" type="RichTextLabel" parent="Panel/Container/CenterContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/normal_font_size = 30 text = "Login" fit_content = true scroll_active = false autowrap_mode = 0 [node name="InputContainer" type="VBoxContainer" parent="Panel/Container/CenterContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/separation = 8 [node name="UsernameContainer" type="VBoxContainer" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer"] layout_mode = 2 [node name="UsernameLabel" type="RichTextLabel" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer/UsernameContainer"] layout_mode = 2 text = "Username: " fit_content = true scroll_active = false autowrap_mode = 0 [node name="UsernameInput" type="LineEdit" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer/UsernameContainer"] layout_mode = 2 placeholder_text = "username" [node name="PasswordContainer" type="VBoxContainer" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer"] layout_mode = 2 [node name="PaswordLabel" type="RichTextLabel" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer/PasswordContainer"] layout_mode = 2 text = "Password:" fit_content = true scroll_active = false autowrap_mode = 0 [node name="PasswordInput" type="LineEdit" parent="Panel/Container/CenterContainer/VBoxContainer/InputContainer/PasswordContainer"] layout_mode = 2 placeholder_text = "password" secret = true [node name="Button" type="Button" parent="Panel/Container/CenterContainer/VBoxContainer" node_paths=PackedStringArray("username_field", "password_field")] layout_mode = 2 text = "Login" script = ExtResource("1_12w35") username_field = NodePath("../InputContainer/UsernameContainer/UsernameInput") password_field = NodePath("../InputContainer/PasswordContainer/PasswordInput") api_config = ExtResource("2_60hb8") [node name="HTTPRequest" type="HTTPRequest" parent="Panel/Container/CenterContainer/VBoxContainer/Button"]