Auth UI Version 2

This commit is contained in:
dingo
2026-01-12 09:53:44 -05:00
parent f53f39d7b0
commit 0fa605bf6c
10 changed files with 312 additions and 68 deletions
+151 -68
View File
@@ -1,12 +1,14 @@
[gd_scene load_steps=11 format=3 uid="uid://dl1ohomaanbth"]
[gd_scene load_steps=18 format=3 uid="uid://dl1ohomaanbth"]
[ext_resource type="Script" uid="uid://bq76ikog47k8" path="res://scripts/ui/auth_ui.gd" id="1_uce43"]
[ext_resource type="Texture2D" uid="uid://cdasq4ydwp73d" path="res://scenes/auth/bg1.png" id="2_d1qp1"]
[ext_resource type="Texture2D" uid="uid://i8ew8xhb8wlt" path="res://assets/ui/4.png" id="3_6c4wg"]
[ext_resource type="Texture2D" uid="uid://bwjjynjewaxt8" path="res://assets/ui/47.png" id="4_d1qp1"]
[ext_resource type="Texture2D" uid="uid://cbbd5opwb6ahf" path="res://assets/ui/bottomBorder.png" id="3_ppeww"]
[ext_resource type="FontFile" uid="uid://bckbv8viuh6lm" path="res://assets/fonts/Berry Rotunda.ttf" id="4_ppeww"]
[ext_resource type="Texture2D" uid="uid://bh1m4jokiqc0f" path="res://assets/ui/48.png" id="5_jd3mn"]
[ext_resource type="Texture2D" uid="uid://durhuwtbosgvc" path="res://assets/ui/ButtonUp.png" id="6_0m802"]
[ext_resource type="Texture2D" uid="uid://dmit17arnnwlj" path="res://assets/ui/51.png" id="6_6c4wg"]
[ext_resource type="Texture2D" uid="uid://5dgfhg5hg4km" path="res://assets/ui/ButtonDown.png" id="7_sffoi"]
[ext_resource type="Texture2D" uid="uid://ba23l6sebimtc" path="res://assets/ui/ButtonFocus.png" id="9_0m802"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_6c4wg"]
@@ -14,6 +16,16 @@
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jd3mn"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6c4wg"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ppeww"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_0m802"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sffoi"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_15wjk"]
[node name="AuthScene" type="CanvasLayer"]
script = ExtResource("1_uce43")
@@ -55,31 +67,52 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="BottomBorder" type="Sprite2D" parent="Control/Frame"]
position = Vector2(639, 720)
texture = ExtResource("3_ppeww")
[node name="BottomBorder2" type="Sprite2D" parent="Control/Frame"]
position = Vector2(647, 46)
rotation = 3.1415927
texture = ExtResource("3_ppeww")
[node name="BottomBorder3" type="Sprite2D" parent="Control/Frame"]
position = Vector2(23, 392)
rotation = 1.5707964
scale = Vector2(0.5, 0.5)
texture = ExtResource("3_ppeww")
[node name="BottomBorder4" type="Sprite2D" parent="Control/Frame"]
position = Vector2(1255, 384)
rotation = 4.712389
scale = Vector2(0.5, 0.5)
texture = ExtResource("3_ppeww")
[node name="4" type="Sprite2D" parent="Control/Frame"]
position = Vector2(103, 104)
position = Vector2(103, 100)
texture = ExtResource("3_6c4wg")
[node name="5" type="Sprite2D" parent="Control/Frame"]
position = Vector2(103, 664.00006)
position = Vector2(100, 665)
rotation = -1.5707964
texture = ExtResource("3_6c4wg")
[node name="6" type="Sprite2D" parent="Control/Frame"]
position = Vector2(1175, 104)
position = Vector2(1180, 104)
rotation = 1.5707964
texture = ExtResource("3_6c4wg")
[node name="7" type="Sprite2D" parent="Control/Frame"]
position = Vector2(1183, 664)
position = Vector2(1175, 664)
rotation = 3.1415927
texture = ExtResource("3_6c4wg")
[node name="Title" type="Label" parent="Control"]
layout_mode = 0
offset_left = 199.0
offset_top = 32.0
offset_right = 737.0
offset_bottom = 133.0
offset_left = 191.0
offset_top = 56.0
offset_right = 729.0
offset_bottom = 157.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("4_ppeww")
theme_override_font_sizes/font_size = 100
@@ -87,10 +120,10 @@ text = "Dungeon"
[node name="Title2" type="Label" parent="Control"]
layout_mode = 0
offset_left = 743.0
offset_top = 88.0
offset_right = 1127.0
offset_bottom = 189.0
offset_left = 735.0
offset_top = 64.0
offset_right = 1119.0
offset_bottom = 165.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("4_ppeww")
theme_override_font_sizes/font_size = 100
@@ -105,7 +138,7 @@ grow_horizontal = 2
grow_vertical = 2
[node name="UsernameBG" type="Sprite2D" parent="Control/Login"]
position = Vector2(640.7998, 224.33235)
position = Vector2(640.7998, 256.33234)
scale = Vector2(2.2799976, 1.5038302)
texture = ExtResource("6_6c4wg")
@@ -114,14 +147,17 @@ offset_left = -46.808556
offset_top = -16.129044
offset_right = 42.191444
offset_bottom = 14.870956
focus_next = NodePath("../../PasswordBG/Password")
focus_previous = NodePath("../../RegisterTextureBtn")
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_styles/normal = SubResource("StyleBoxEmpty_m2uy0")
placeholder_text = "Username"
alignment = 1
expand_to_text_length = true
metadata/_edit_use_anchors_ = true
[node name="PasswordBG" type="Sprite2D" parent="Control/Login"]
position = Vector2(640.7998, 292.33237)
position = Vector2(640.7998, 324.33237)
scale = Vector2(2.2799976, 1.5038302)
texture = ExtResource("6_6c4wg")
@@ -130,20 +166,34 @@ offset_left = -46.27666
offset_top = -16.129025
offset_right = 42.72334
offset_bottom = 14.8709755
focus_next = NodePath("../../LoginTextureBtn")
focus_previous = NodePath("../../UsernameBG/Username")
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_styles/normal = SubResource("StyleBoxEmpty_jd3mn")
placeholder_text = "Password"
alignment = 1
expand_to_text_length = true
secret = true
[node name="LoginTextureBtn" type="TextureButton" parent="Control/Login"]
layout_mode = 0
offset_left = 506.7998
offset_top = 358.33234
offset_right = 757.7998
offset_bottom = 437.33234
texture_normal = ExtResource("5_jd3mn")
texture_pressed = ExtResource("4_d1qp1")
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -129.0
offset_top = 8.0
offset_right = 122.0
offset_bottom = 87.0
grow_horizontal = 2
grow_vertical = 2
focus_next = NodePath("../RegisterTextureBtn")
focus_previous = NodePath("../PasswordBG/Password")
texture_normal = ExtResource("6_0m802")
texture_pressed = ExtResource("7_sffoi")
texture_focused = ExtResource("9_0m802")
ignore_texture_size = true
[node name="LoginBtnLabel" type="Label" parent="Control/Login/LoginTextureBtn"]
layout_mode = 1
@@ -152,10 +202,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -39.5
offset_top = -22.5
offset_right = 2.5
offset_bottom = 0.5
offset_left = -37.5
offset_top = -33.5
offset_right = 4.5
offset_bottom = -10.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(1.8799988, 1.8799988)
@@ -164,13 +214,21 @@ text = "Login"
horizontal_alignment = 1
[node name="RegisterTextureBtn" type="TextureButton" parent="Control/Login"]
layout_mode = 0
offset_left = 506.7998
offset_top = 449.33234
offset_right = 757.7998
offset_bottom = 528.33234
texture_normal = ExtResource("5_jd3mn")
texture_pressed = ExtResource("4_d1qp1")
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -129.0
offset_top = -296.0
offset_right = 122.0
offset_bottom = -217.0
grow_horizontal = 2
grow_vertical = 0
texture_normal = ExtResource("6_0m802")
texture_pressed = ExtResource("7_sffoi")
texture_focused = ExtResource("9_0m802")
[node name="RegisterBtnLabel" type="Label" parent="Control/Login/RegisterTextureBtn"]
layout_mode = 1
@@ -179,10 +237,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -59.5
offset_top = -23.5
offset_right = 4.5
offset_bottom = -0.5
offset_left = -61.5
offset_top = -31.5
offset_right = 2.5
offset_bottom = -8.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(2, 2)
@@ -199,16 +257,20 @@ grow_horizontal = 2
grow_vertical = 2
[node name="InputBG" type="Sprite2D" parent="Control/Register"]
position = Vector2(640.8, 194.1185)
position = Vector2(639, 200.00002)
scale = Vector2(2.28, 1.959)
texture = ExtResource("6_6c4wg")
[node name="RegUsernameInput" type="LineEdit" parent="Control/Register/InputBG"]
offset_left = -42.89473
offset_top = -13.332565
offset_top = -17.416283
offset_right = 46.10527
offset_bottom = 17.667435
offset_bottom = 13.583717
focus_next = NodePath("../../InputBG2/CharNameInput")
focus_previous = NodePath("../../BackBtn2")
theme_override_styles/normal = SubResource("StyleBoxEmpty_6c4wg")
placeholder_text = "Username"
alignment = 1
expand_to_text_length = true
[node name="InputBG2" type="Sprite2D" parent="Control/Register"]
@@ -217,11 +279,15 @@ scale = Vector2(2.28, 1.959)
texture = ExtResource("6_6c4wg")
[node name="CharNameInput" type="LineEdit" parent="Control/Register/InputBG2"]
offset_left = -67.45617
offset_top = -13.843033
offset_right = 68.54383
offset_bottom = 17.156967
offset_left = -63.947395
offset_top = -17.92675
offset_right = 72.052605
offset_bottom = 13.07325
focus_next = NodePath("../../InputBG3/RegEmailInput")
focus_previous = NodePath("../../InputBG/RegUsernameInput")
theme_override_styles/normal = SubResource("StyleBoxEmpty_ppeww")
placeholder_text = "Character Name"
alignment = 1
expand_to_text_length = true
[node name="InputBG3" type="Sprite2D" parent="Control/Register"]
@@ -230,10 +296,13 @@ scale = Vector2(2.28, 1.959)
texture = ExtResource("6_6c4wg")
[node name="RegEmailInput" type="LineEdit" parent="Control/Register/InputBG3"]
offset_left = -32.368446
offset_left = -25.350903
offset_top = -16.395363
offset_right = 36.194054
offset_right = 43.211597
offset_bottom = 14.604637
focus_next = NodePath("../../InputBG4/RegPasswordInput")
focus_previous = NodePath("../../InputBG2/CharNameInput")
theme_override_styles/normal = SubResource("StyleBoxEmpty_0m802")
placeholder_text = "Email"
expand_to_text_length = true
@@ -243,11 +312,15 @@ scale = Vector2(2.28, 1.959)
texture = ExtResource("6_6c4wg")
[node name="RegPasswordInput" type="LineEdit" parent="Control/Register/InputBG4"]
offset_left = -39.385986
offset_left = -35.877213
offset_top = -15.884884
offset_right = 44.614014
offset_right = 48.122787
offset_bottom = 15.115116
focus_next = NodePath("../../InputBG5/RegConfirmPasswordInput")
focus_previous = NodePath("../../InputBG3/RegEmailInput")
theme_override_styles/normal = SubResource("StyleBoxEmpty_sffoi")
placeholder_text = "Password"
alignment = 1
expand_to_text_length = true
secret = true
@@ -257,22 +330,29 @@ scale = Vector2(2.28, 1.959)
texture = ExtResource("6_6c4wg")
[node name="RegConfirmPasswordInput" type="LineEdit" parent="Control/Register/InputBG5"]
offset_left = -74.473694
offset_left = -70.964935
offset_top = -15.884899
offset_right = 76.526306
offset_right = 80.035065
offset_bottom = 15.115101
focus_next = NodePath("../../RegisterBtn")
focus_previous = NodePath("../../InputBG4/RegPasswordInput")
theme_override_styles/normal = SubResource("StyleBoxEmpty_15wjk")
placeholder_text = "Confirm Password"
alignment = 1
expand_to_text_length = true
secret = true
[node name="RegisterBtn" type="TextureButton" parent="Control/Register"]
layout_mode = 0
offset_left = 527.0
offset_top = 584.0
offset_top = 592.0
offset_right = 778.0
offset_bottom = 663.0
texture_normal = ExtResource("5_jd3mn")
texture_pressed = ExtResource("4_d1qp1")
offset_bottom = 671.0
focus_next = NodePath("../BackBtn2")
focus_previous = NodePath("../InputBG5/RegConfirmPasswordInput")
texture_normal = ExtResource("6_0m802")
texture_pressed = ExtResource("7_sffoi")
texture_focused = ExtResource("9_0m802")
[node name="RegisterTBtnLabel" type="Label" parent="Control/Register/RegisterBtn"]
layout_mode = 1
@@ -281,10 +361,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -39.5
offset_top = -22.5
offset_right = 2.5
offset_bottom = 0.5
offset_left = -53.5
offset_top = -31.5
offset_right = 10.5
offset_bottom = -8.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(1.8799988, 1.8799988)
@@ -295,11 +375,14 @@ horizontal_alignment = 1
[node name="BackBtn2" type="TextureButton" parent="Control/Register"]
layout_mode = 0
offset_left = 527.0
offset_top = 656.0
offset_top = 664.0
offset_right = 778.0
offset_bottom = 735.0
texture_normal = ExtResource("5_jd3mn")
texture_pressed = ExtResource("4_d1qp1")
offset_bottom = 743.0
focus_next = NodePath("../InputBG/RegUsernameInput")
focus_previous = NodePath("../RegisterBtn")
texture_normal = ExtResource("6_0m802")
texture_pressed = ExtResource("7_sffoi")
texture_focused = ExtResource("9_0m802")
[node name="BackBtnLabel" type="Label" parent="Control/Register/BackBtn2"]
layout_mode = 1
@@ -308,10 +391,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -39.5
offset_top = -22.5
offset_right = 2.5
offset_bottom = 0.5
offset_left = -37.5
offset_top = -31.5
offset_right = 4.5
offset_bottom = -8.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(1.8799988, 1.8799988)