UI WIP
This commit is contained in:
@@ -0,0 +1,209 @@
|
||||
[gd_scene load_steps=6 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://crmswytn4ulgk" path="res://assets/ui/38.png" id="3_m2uy0"]
|
||||
[ext_resource type="Texture2D" uid="uid://sd28ri0okg8i" path="res://assets/ui/37.png" id="4_jd3mn"]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_6c4wg"]
|
||||
|
||||
[node name="AuthScene" type="CanvasLayer"]
|
||||
script = ExtResource("1_uce43")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Background" type="ColorRect" parent="Control"]
|
||||
material = SubResource("CanvasItemMaterial_6c4wg")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.07284262, 0.072842635, 0.072842605, 1)
|
||||
|
||||
[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_d1qp1")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Title" type="Label" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 392.0
|
||||
offset_top = 264.0
|
||||
offset_right = 550.0
|
||||
offset_bottom = 314.0
|
||||
theme_override_font_sizes/font_size = 36
|
||||
text = "Dungeon"
|
||||
|
||||
[node name="Title2" type="Label" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 746.0
|
||||
offset_top = 274.0
|
||||
offset_right = 904.0
|
||||
offset_bottom = 324.0
|
||||
theme_override_font_sizes/font_size = 36
|
||||
text = "Divers"
|
||||
|
||||
[node name="Login" type="Control" parent="Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Username" type="LineEdit" parent="Control/Login"]
|
||||
layout_mode = 0
|
||||
offset_left = 659.0
|
||||
offset_top = 359.0
|
||||
offset_right = 748.0
|
||||
offset_bottom = 390.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
placeholder_text = "Username"
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="Password" type="LineEdit" parent="Control/Login"]
|
||||
layout_mode = 0
|
||||
offset_left = 663.0
|
||||
offset_top = 414.0
|
||||
offset_right = 752.0
|
||||
offset_bottom = 445.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
placeholder_text = "Password"
|
||||
expand_to_text_length = true
|
||||
secret = true
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="Control/Login"]
|
||||
layout_mode = 0
|
||||
offset_left = 541.0
|
||||
offset_top = 465.0
|
||||
offset_right = 730.0
|
||||
offset_bottom = 534.0
|
||||
texture_normal = ExtResource("3_m2uy0")
|
||||
texture_pressed = ExtResource("4_jd3mn")
|
||||
|
||||
[node name="Login" type="Label" parent="Control/Login/TextureButton"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
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
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(1.8799988, 1.8799988)
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Login"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LoginBtn" type="Button" parent="Control/Login"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 617.0
|
||||
offset_top = 480.0
|
||||
offset_right = 667.0
|
||||
offset_bottom = 511.0
|
||||
text = "Login"
|
||||
|
||||
[node name="RegisterBtn" type="Button" parent="Control/Login"]
|
||||
layout_mode = 0
|
||||
offset_left = 661.0
|
||||
offset_top = 559.0
|
||||
offset_right = 733.0
|
||||
offset_bottom = 590.0
|
||||
text = "Register"
|
||||
|
||||
[node name="Register" type="Control" parent="Control"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="RegUsernameInput" type="LineEdit" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 578.0
|
||||
offset_top = 269.0
|
||||
offset_right = 646.5625
|
||||
offset_bottom = 300.0
|
||||
placeholder_text = "Username"
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="CharNameInput" type="LineEdit" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 558.0
|
||||
offset_top = 310.0
|
||||
offset_right = 694.0
|
||||
offset_bottom = 341.0
|
||||
placeholder_text = "Character Name"
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="RegEmailInput" type="LineEdit" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 593.0
|
||||
offset_top = 355.0
|
||||
offset_right = 661.5625
|
||||
offset_bottom = 386.0
|
||||
placeholder_text = "Email"
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="RegPasswordInput" type="LineEdit" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 585.0
|
||||
offset_top = 394.0
|
||||
offset_right = 653.5625
|
||||
offset_bottom = 425.0
|
||||
placeholder_text = "Password"
|
||||
expand_to_text_length = true
|
||||
secret = true
|
||||
|
||||
[node name="RegConfirmPasswordInput" type="LineEdit" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 549.0
|
||||
offset_top = 436.0
|
||||
offset_right = 700.0
|
||||
offset_bottom = 467.0
|
||||
placeholder_text = "Confirm Password"
|
||||
expand_to_text_length = true
|
||||
secret = true
|
||||
|
||||
[node name="RegisterButton" type="Button" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 547.0
|
||||
offset_top = 490.0
|
||||
offset_right = 619.0
|
||||
offset_bottom = 521.0
|
||||
text = "Register"
|
||||
|
||||
[node name="BackBtn" type="Button" parent="Control/Register"]
|
||||
layout_mode = 0
|
||||
offset_left = 644.0
|
||||
offset_top = 491.0
|
||||
offset_right = 689.0
|
||||
offset_bottom = 522.0
|
||||
text = "Back"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 604.0
|
||||
offset_top = 554.0
|
||||
offset_right = 644.0
|
||||
offset_bottom = 577.0
|
||||
@@ -0,0 +1,45 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dl1ohomaanbth"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bq76ikog47k8" path="res://scripts/ui/auth_ui.gd" id="1_rgxl4"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2cd3lbrncg5a" path="res://scenes/auth/test.png" id="1_uce43"]
|
||||
|
||||
[node name="AuthScene" type="CanvasLayer"]
|
||||
script = ExtResource("1_rgxl4")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Test" type="Sprite2D" parent="."]
|
||||
position = Vector2(667, 193)
|
||||
texture = ExtResource("1_uce43")
|
||||
|
||||
[node name="Username" type="LineEdit" parent="."]
|
||||
offset_left = 538.0
|
||||
offset_top = 407.0
|
||||
offset_right = 738.0
|
||||
offset_bottom = 438.0
|
||||
text = "username"
|
||||
|
||||
[node name="Password" type="LineEdit" parent="."]
|
||||
offset_left = 538.0
|
||||
offset_top = 448.0
|
||||
offset_right = 738.0
|
||||
offset_bottom = 479.0
|
||||
text = "password"
|
||||
secret = true
|
||||
|
||||
[node name="submit" type="Button" parent="."]
|
||||
offset_left = 621.0
|
||||
offset_top = 530.0
|
||||
offset_right = 684.0
|
||||
offset_bottom = 561.0
|
||||
text = "Submit"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
@@ -0,0 +1,45 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dl1ohomaanbth"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bq76ikog47k8" path="res://scripts/ui/auth_ui.gd" id="1_rgxl4"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2cd3lbrncg5a" path="res://scenes/auth/test.png" id="1_uce43"]
|
||||
|
||||
[node name="AuthScene" type="CanvasLayer"]
|
||||
script = ExtResource("1_rgxl4")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Test" type="Sprite2D" parent="."]
|
||||
position = Vector2(667, 193)
|
||||
texture = ExtResource("1_uce43")
|
||||
|
||||
[node name="Username" type="LineEdit" parent="."]
|
||||
offset_left = 538.0
|
||||
offset_top = 407.0
|
||||
offset_right = 738.0
|
||||
offset_bottom = 438.0
|
||||
text = "username"
|
||||
|
||||
[node name="Password" type="LineEdit" parent="."]
|
||||
offset_left = 538.0
|
||||
offset_top = 448.0
|
||||
offset_right = 738.0
|
||||
offset_bottom = 479.0
|
||||
text = "password"
|
||||
secret = true
|
||||
|
||||
[node name="submit" type="Button" parent="."]
|
||||
offset_left = 621.0
|
||||
offset_top = 530.0
|
||||
offset_right = 684.0
|
||||
offset_bottom = 561.0
|
||||
text = "Submit"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 MiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cdasq4ydwp73d"
|
||||
path="res://.godot/imported/bg1.png-b0daa0a7b41f089a5649e1a0dddea136.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/auth/bg1.png"
|
||||
dest_files=["res://.godot/imported/bg1.png-b0daa0a7b41f089a5649e1a0dddea136.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Reference in New Issue
Block a user