This commit is contained in:
2025-12-10 23:11:59 +08:00
parent 7ad20497d8
commit a04be19af5
31 changed files with 985 additions and 389 deletions
+45 -36
View File
@@ -1,12 +1,16 @@
[gd_scene load_steps=2 format=3 uid="uid://login_screen"]
[gd_scene load_steps=3 format=3 uid="uid://b00eef4tqt2ri"]
[ext_resource type="Script" path="res://scripts/ui/login_screen.gd" id="1"]
[ext_resource type="Script" uid="uid://b1lcy1ikdkknq" path="res://scripts/ui/login_screen.gd" id="1"]
[ext_resource type="Theme" uid="uid://da337sh5qxi0s" path="res://assets/themes/ui_theme.tres" id="2"]
[node name="LoginScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2")
script = ExtResource("1")
[node name="Background" type="ColorRect" parent="."]
@@ -14,17 +18,21 @@ layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.039, 0.039, 0.102, 1)
grow_horizontal = 2
grow_vertical = 2
color = Color(0.12, 0.1, 0.08, 1)
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MainPanel" type="PanelContainer" parent="CenterContainer"]
layout_mode = 2
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
[node name="VBox" type="VBoxContainer" parent="CenterContainer/MainPanel"]
layout_mode = 2
@@ -32,49 +40,49 @@ theme_override_constants/separation = 16
[node name="LogoLabel" type="Label" parent="CenterContainer/MainPanel/VBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0.831, 1, 1)
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
theme_override_font_sizes/font_size = 48
text = "TEKTON"
horizontal_alignment = 1
[node name="SubtitleLabel" type="Label" parent="CenterContainer/MainPanel/VBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1)
theme_override_colors/font_color = Color(0.992, 0.796, 0.047, 1)
theme_override_font_sizes/font_size = 14
text = "Tactical Multiplayer"
text = "Armageddon"
horizontal_alignment = 1
[node name="Spacer1" type="Control" parent="CenterContainer/MainPanel/VBox"]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
custom_minimum_size = Vector2(0, 20)
[node name="GuestButton" type="Button" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 52)
layout_mode = 2
custom_minimum_size = Vector2(0, 50)
theme_override_font_sizes/font_size = 18
text = "▶ PLAY AS GUEST"
[node name="Spacer2" type="Control" parent="CenterContainer/MainPanel/VBox"]
custom_minimum_size = Vector2(0, 8)
layout_mode = 2
custom_minimum_size = Vector2(0, 10)
[node name="OrLabel" type="Label" parent="CenterContainer/MainPanel/VBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0.4, 0.4, 0.5, 1)
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
text = "─────── or sign in ───────"
horizontal_alignment = 1
[node name="EmailInput" type="LineEdit" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Email"
[node name="PasswordInput" type="LineEdit" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Password"
secret = true
@@ -86,46 +94,46 @@ text = "Remember me"
[node name="LoginButton" type="Button" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 48)
layout_mode = 2
custom_minimum_size = Vector2(0, 45)
text = "Sign In"
[node name="RegisterLink" type="LinkButton" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
text = "Don't have an account? Register"
horizontal_alignment = 1
[node name="Spacer3" type="Control" parent="CenterContainer/MainPanel/VBox"]
custom_minimum_size = Vector2(0, 8)
layout_mode = 2
custom_minimum_size = Vector2(0, 10)
[node name="SocialLabel" type="Label" parent="CenterContainer/MainPanel/VBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0.4, 0.4, 0.5, 1)
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
text = "─────── or continue with ───────"
horizontal_alignment = 1
[node name="SocialButtons" type="HBoxContainer" parent="CenterContainer/MainPanel/VBox"]
layout_mode = 2
theme_override_constants/separation = 12
alignment = 1
[node name="GoogleButton" type="Button" parent="CenterContainer/MainPanel/VBox/SocialButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 44)
layout_mode = 2
custom_minimum_size = Vector2(100, 40)
text = "Google"
[node name="AppleButton" type="Button" parent="CenterContainer/MainPanel/VBox/SocialButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 44)
layout_mode = 2
custom_minimum_size = Vector2(100, 40)
text = "Apple"
[node name="FacebookButton" type="Button" parent="CenterContainer/MainPanel/VBox/SocialButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 44)
layout_mode = 2
custom_minimum_size = Vector2(100, 40)
text = "Facebook"
[node name="StatusLabel" type="Label" parent="CenterContainer/MainPanel/VBox"]
@@ -138,15 +146,15 @@ autowrap_mode = 2
[node name="LoadingSpinner" type="TextureProgressBar" parent="CenterContainer/MainPanel/VBox"]
unique_name_in_owner = true
visible = false
layout_mode = 2
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
size_flags_horizontal = 4
[node name="RegistrationPanel" type="PanelContainer" parent="CenterContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
[node name="VBox" type="VBoxContainer" parent="CenterContainer/RegistrationPanel"]
layout_mode = 2
@@ -154,63 +162,62 @@ theme_override_constants/separation = 12
[node name="Title" type="Label" parent="CenterContainer/RegistrationPanel/VBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0.831, 1, 1)
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
theme_override_font_sizes/font_size = 24
text = "Create Account"
horizontal_alignment = 1
[node name="RegEmailInput" type="LineEdit" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Email"
[node name="RegUsernameInput" type="LineEdit" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Username"
[node name="RegPasswordInput" type="LineEdit" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Password"
secret = true
[node name="RegConfirmPasswordInput" type="LineEdit" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
custom_minimum_size = Vector2(0, 40)
placeholder_text = "Confirm Password"
secret = true
[node name="PasswordStrength" type="ProgressBar" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 12)
layout_mode = 2
custom_minimum_size = Vector2(0, 8)
max_value = 4.0
show_percentage = false
[node name="PasswordHint" type="Label" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_color = Color(0.533, 0.533, 0.6, 1)
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
theme_override_font_sizes/font_size = 11
text = "Min 8 characters, include number and symbol"
horizontal_alignment = 1
[node name="RegisterButton" type="Button" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 48)
layout_mode = 2
custom_minimum_size = Vector2(0, 45)
text = "Create Account"
[node name="BackToLoginLink" type="LinkButton" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
text = "Already have an account? Sign In"
horizontal_alignment = 1
[node name="RegStatusLabel" type="Label" parent="CenterContainer/RegistrationPanel/VBox"]
unique_name_in_owner = true
@@ -226,11 +233,13 @@ anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -100.0
offset_top = -25.0
offset_right = -10.0
offset_bottom = -10.0
theme_override_colors/font_color = Color(0.3, 0.3, 0.4, 1)
offset_left = -120.0
offset_top = -40.0
offset_right = -16.0
offset_bottom = -16.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(0.6, 0.6, 0.6, 0.6)
theme_override_font_sizes/font_size = 11
text = "v1.0.0"
horizontal_alignment = 2