257 lines
7.8 KiB
Plaintext
257 lines
7.8 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://uokaq6vxbb5f"]
|
|
|
|
[ext_resource type="Theme" uid="uid://bm4ftvoinmisi" path="res://Assets/Resources/Themes/main_ui_theme.tres" id="1_rchxh"]
|
|
[ext_resource type="Texture2D" uid="uid://ggqgyxjb8043" path="res://Assets/Resources/Images/bush.png" id="2_jxtli"]
|
|
[ext_resource type="Script" uid="uid://cxvwd0kfb2l7e" path="res://Assets/Scripts/AccountScreenLogic.cs" id="2_vgvw7"]
|
|
[ext_resource type="PackedScene" uid="uid://bw7x0lo60q816" path="res://Assets/Scenes/UiElements/back_button.tscn" id="3_vgvw7"]
|
|
|
|
[node name="AccountScreen" type="Control" node_paths=PackedStringArray("SelectionScreenVboxContainer", "RegisterSelectionButton", "LoginSelectionButton", "UrlLineEdit", "RegisterScreenVboxContainer", "RegisterUsernameLineEdit", "RegisterEmailLineEdit", "RegisterPasswordLineEdit", "RegisterButton", "LoginScreenVboxContainer", "LoginUsernameLineEdit", "LoginPasswordLineEdit", "LoginButton", "AccountScreenVboxContainer", "AccountScreenGreetingLabel", "LogoutButton", "BackButton")]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("1_rchxh")
|
|
script = ExtResource("2_vgvw7")
|
|
SelectionScreenVboxContainer = NodePath("Control/SelectionPanel")
|
|
RegisterSelectionButton = NodePath("Control/SelectionPanel/EnterRegistrationButton")
|
|
LoginSelectionButton = NodePath("Control/SelectionPanel/EnterLoginButton")
|
|
UrlLineEdit = NodePath("Control/SelectionPanel/UrlLineEdit")
|
|
RegisterScreenVboxContainer = NodePath("Control/RegisterPanel")
|
|
RegisterUsernameLineEdit = NodePath("Control/RegisterPanel/UsernameLineEdit")
|
|
RegisterEmailLineEdit = NodePath("Control/RegisterPanel/EmailLineEdit")
|
|
RegisterPasswordLineEdit = NodePath("Control/RegisterPanel/PasswordLineEdit")
|
|
RegisterButton = NodePath("Control/RegisterPanel/RegisterButton")
|
|
LoginScreenVboxContainer = NodePath("Control/LoginPanel")
|
|
LoginUsernameLineEdit = NodePath("Control/LoginPanel/UsernameLineEdit")
|
|
LoginPasswordLineEdit = NodePath("Control/LoginPanel/PasswordLineEdit")
|
|
LoginButton = NodePath("Control/LoginPanel/LoginButton")
|
|
AccountScreenVboxContainer = NodePath("Control/AccountScreen")
|
|
AccountScreenGreetingLabel = NodePath("Control/AccountScreen/Greeting")
|
|
LogoutButton = NodePath("Control/AccountScreen/LogoutButton")
|
|
BackButton = NodePath("Control/BackButtonMargin/BackButton")
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("2_jxtli")
|
|
expand_mode = 1
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.172549, 0.223529, 0.188235, 0.878431)
|
|
|
|
[node name="LoginPanel" type="VBoxContainer" parent="Control"]
|
|
custom_minimum_size = Vector2(0, 300)
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -49.5
|
|
offset_right = 100.0
|
|
offset_bottom = 49.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/LoginPanel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "Login"
|
|
|
|
[node name="UsernameLineEdit" type="LineEdit" parent="Control/LoginPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
placeholder_text = "Username"
|
|
alignment = 1
|
|
max_length = 50
|
|
|
|
[node name="PasswordLineEdit" type="LineEdit" parent="Control/LoginPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
placeholder_text = "Password"
|
|
alignment = 1
|
|
secret = true
|
|
secret_character = "*"
|
|
|
|
[node name="LoginButton" type="Button" parent="Control/LoginPanel"]
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
text = "Login"
|
|
|
|
[node name="RegisterPanel" type="VBoxContainer" parent="Control"]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 300)
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -49.5
|
|
offset_right = 100.0
|
|
offset_bottom = 49.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/RegisterPanel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "Register"
|
|
|
|
[node name="UsernameLineEdit" type="LineEdit" parent="Control/RegisterPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
placeholder_text = "Username"
|
|
alignment = 1
|
|
max_length = 50
|
|
|
|
[node name="EmailLineEdit" type="LineEdit" parent="Control/RegisterPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
placeholder_text = "Email"
|
|
alignment = 1
|
|
max_length = 50
|
|
|
|
[node name="PasswordLineEdit" type="LineEdit" parent="Control/RegisterPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
placeholder_text = "Password"
|
|
alignment = 1
|
|
secret = true
|
|
secret_character = "*"
|
|
|
|
[node name="RegisterButton" type="Button" parent="Control/RegisterPanel"]
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
text = "Register"
|
|
|
|
[node name="SelectionPanel" type="VBoxContainer" parent="Control"]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 300)
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -49.5
|
|
offset_right = 100.0
|
|
offset_bottom = 49.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/SelectionPanel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "SessionZero"
|
|
|
|
[node name="UrlLineEdit" type="LineEdit" parent="Control/SelectionPanel"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
text = "http://localhost:5161"
|
|
placeholder_text = "Server URL"
|
|
alignment = 1
|
|
max_length = 50
|
|
|
|
[node name="EnterRegistrationButton" type="Button" parent="Control/SelectionPanel"]
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
text = "Register"
|
|
|
|
[node name="EnterLoginButton" type="Button" parent="Control/SelectionPanel"]
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
text = "Login
|
|
"
|
|
|
|
[node name="AccountScreen" type="VBoxContainer" parent="Control"]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 300)
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -49.5
|
|
offset_right = 100.0
|
|
offset_bottom = 49.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/AccountScreen"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "SessionZero"
|
|
|
|
[node name="Greeting" type="Label" parent="Control/AccountScreen"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 2
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "Welcome, {username}!"
|
|
|
|
[node name="LogoutButton" type="Button" parent="Control/AccountScreen"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 2
|
|
text = "Logout"
|
|
|
|
[node name="BackButtonMargin" type="MarginContainer" parent="Control"]
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
theme_override_constants/margin_left = 30
|
|
theme_override_constants/margin_top = 30
|
|
|
|
[node name="BackButton" parent="Control/BackButtonMargin" instance=ExtResource("3_vgvw7")]
|
|
visible = false
|
|
layout_mode = 2
|