All checks were successful
Quality Check / Linting (push) Successful in 6s
Build Application / generate (push) Successful in 22s
Build Application / build (tower_defence_web, build/*, build, build/index.html, Web) (push) Successful in 16s
Build Application / build (tower_defence.elf, tower_defence.elf, tower_defence.elf, Linux) (push) Successful in 19s
Build Application / build (tower_defence.exe, tower_defence.exe, tower_defence.exe, Windows) (push) Successful in 21s
Build Application / build-docker (push) Successful in 16s
Build Application / release (push) Successful in 9s
86 lines
2.6 KiB
Text
86 lines
2.6 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://dtaaw31x3n22f"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/login.gd" id="1_12w35"]
|
|
[ext_resource type="Resource" uid="uid://cdixdbu3sqgjn" path="res://config/api_config.tres" id="2_60hb8"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d0bbp"]
|
|
|
|
[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="VBoxContainer" type="VBoxContainer" parent="Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -150.0
|
|
offset_top = -108.0
|
|
offset_right = 150.0
|
|
offset_bottom = 108.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="Header" type="RichTextLabel" parent="Panel/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/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="UsernameContainer" type="VBoxContainer" parent="Panel/VBoxContainer/InputContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="UsernameLabel" type="RichTextLabel" parent="Panel/VBoxContainer/InputContainer/UsernameContainer"]
|
|
layout_mode = 2
|
|
text = "Username:
|
|
"
|
|
fit_content = true
|
|
scroll_active = false
|
|
|
|
[node name="UsernameInput" type="LineEdit" parent="Panel/VBoxContainer/InputContainer/UsernameContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="PasswordContainer" type="VBoxContainer" parent="Panel/VBoxContainer/InputContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="PaswordLabel" type="RichTextLabel" parent="Panel/VBoxContainer/InputContainer/PasswordContainer"]
|
|
layout_mode = 2
|
|
text = "Password:"
|
|
fit_content = true
|
|
scroll_active = false
|
|
|
|
[node name="PasswordInput" type="LineEdit" parent="Panel/VBoxContainer/InputContainer/PasswordContainer"]
|
|
layout_mode = 2
|
|
secret = true
|
|
|
|
[node name="Button" type="Button" parent="Panel/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/VBoxContainer/Button"]
|