431 lines
16 KiB
Plaintext
431 lines
16 KiB
Plaintext
[gd_scene format=3 uid="uid://b00eef4tqt2ri"]
|
|
|
|
[ext_resource type="Script" uid="uid://b1lcy1ikdkknq" path="res://scripts/ui/login_screen.gd" id="1"]
|
|
[ext_resource type="Theme" uid="uid://cxab3xxy00" path="res://assets/themes/GUI_Tekton.tres" id="1_25ghd"]
|
|
[ext_resource type="Texture2D" uid="uid://jqvv6s55mlsk" path="res://assets/graphics/gui/BG.png" id="3_atvl1"]
|
|
[ext_resource type="Texture2D" uid="uid://dvp0as6yyudco" path="res://assets/graphics/main_menu/bg_illust.png" id="4_53sdr"]
|
|
[ext_resource type="Texture2D" uid="uid://bvy60hfe7hr4j" path="res://assets/graphics/login_panel/sign_in.png" id="5_dfu6y"]
|
|
[ext_resource type="Texture2D" uid="uid://36uhj6e6piai" path="res://assets/graphics/login_panel/sign_in_dimmed.png" id="6_eint3"]
|
|
[ext_resource type="Texture2D" uid="uid://dkjiv40yjf2w7" path="res://assets/graphics/login_panel/sign_up.png" id="7_duruf"]
|
|
[ext_resource type="Texture2D" uid="uid://3c2hwrbatvsh" path="res://assets/graphics/login_panel/sign_up_dimmed.png" id="8_0gtqq"]
|
|
[ext_resource type="Texture2D" uid="uid://cwhe3g5dai0pv" path="res://assets/graphics/gui/login_panel/steam.png" id="9_eint3"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
|
|
content_margin_left = 4.0
|
|
content_margin_top = 4.0
|
|
content_margin_right = 4.0
|
|
content_margin_bottom = 4.0
|
|
bg_color = Color(0.14117648, 0.16862746, 0.19215687, 1)
|
|
corner_radius_top_left = 12
|
|
corner_radius_top_right = 12
|
|
corner_radius_bottom_right = 12
|
|
corner_radius_bottom_left = 12
|
|
shadow_color = Color(0, 0, 0, 0.3529412)
|
|
shadow_size = 4
|
|
shadow_offset = Vector2(-2, 2)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_inactive"]
|
|
content_margin_left = 16.0
|
|
content_margin_top = 14.0
|
|
content_margin_right = 16.0
|
|
content_margin_bottom = 14.0
|
|
bg_color = Color(0.33, 0.62, 0.78, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_active"]
|
|
content_margin_left = 16.0
|
|
content_margin_top = 14.0
|
|
content_margin_right = 16.0
|
|
content_margin_bottom = 14.0
|
|
bg_color = Color(0.1, 0.19, 0.27, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[node name="LoginScreen" type="Control" unique_id=1394670984]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("1_25ghd")
|
|
script = ExtResource("1")
|
|
|
|
[node name="Background2" type="TextureRect" parent="." unique_id=353261948]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("3_atvl1")
|
|
expand_mode = 1
|
|
|
|
[node name="Background" type="TextureRect" parent="." unique_id=1187975207]
|
|
modulate = Color(1, 1, 1, 0.48235294)
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("4_53sdr")
|
|
expand_mode = 1
|
|
flip_h = true
|
|
|
|
[node name="RootHBox" type="HBoxContainer" parent="." unique_id=862490259]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="LeftColumn" type="VBoxContainer" parent="RootHBox" unique_id=1587806516]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
theme_override_constants/separation = 12
|
|
alignment = 2
|
|
|
|
[node name="LeftSpacer" type="Control" parent="RootHBox/LeftColumn" unique_id=1209422692]
|
|
custom_minimum_size = Vector2(0, 200)
|
|
layout_mode = 2
|
|
|
|
[node name="SignInTabBtn" type="TextureButton" parent="RootHBox/LeftColumn" unique_id=2029771907]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
toggle_mode = true
|
|
texture_normal = ExtResource("6_eint3")
|
|
texture_pressed = ExtResource("5_dfu6y")
|
|
texture_hover = ExtResource("5_dfu6y")
|
|
|
|
[node name="SignUpTabBtn" type="TextureButton" parent="RootHBox/LeftColumn" unique_id=1409705912]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
toggle_mode = true
|
|
texture_normal = ExtResource("8_0gtqq")
|
|
texture_pressed = ExtResource("7_duruf")
|
|
texture_hover = ExtResource("7_duruf")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="RootHBox/LeftColumn" unique_id=1577376480]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 20
|
|
|
|
[node name="BottomLeftSpacer" type="Control" parent="RootHBox/LeftColumn" unique_id=459259390]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="CenterColumn" type="CenterContainer" parent="RootHBox" unique_id=1801474360]
|
|
layout_mode = 2
|
|
|
|
[node name="PanelBG" type="PanelContainer" parent="RootHBox/CenterColumn" unique_id=320946805]
|
|
custom_minimum_size = Vector2(420, 0)
|
|
layout_mode = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="RootHBox/CenterColumn/PanelBG" unique_id=2135112748]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
current_tab = 0
|
|
tabs_visible = false
|
|
|
|
[node name="Login" type="MarginContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer" unique_id=1294712927]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 8
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login" unique_id=1063599539]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="GuestButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=2037993426]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 48)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Play as Guest"
|
|
|
|
[node name="OrLabel" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1387412213]
|
|
layout_mode = 2
|
|
text = "─────── or sign in ───────"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="EmailInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=323436289]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Email"
|
|
|
|
[node name="PasswordInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1098627484]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Password"
|
|
secret = true
|
|
|
|
[node name="RememberMe" type="CheckBox" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1013722117]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme = ExtResource("1_25ghd")
|
|
theme_override_colors/font_color = Color(0.88, 0.9, 0.93, 1)
|
|
theme_override_colors/font_pressed_color = Color(0.83, 0.83, 0.83, 1)
|
|
theme_override_colors/font_hover_color = Color(0.45, 0.73, 0.91, 1)
|
|
button_pressed = true
|
|
text = "Remember Me"
|
|
|
|
[node name="LoginButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=945681236]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 48)
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 18
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive")
|
|
theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active")
|
|
theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive")
|
|
text = "SIGN IN"
|
|
|
|
[node name="SocialLabel" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=840440943]
|
|
layout_mode = 2
|
|
text = "─────── or continue with ───────"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="SocialButtons" type="HBoxContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1899762021]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
alignment = 1
|
|
|
|
[node name="GoogleButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox/SocialButtons" unique_id=196743645]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(100, 44)
|
|
layout_mode = 2
|
|
text = "Google"
|
|
|
|
[node name="AppleButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox/SocialButtons" unique_id=1174582184]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(100, 44)
|
|
layout_mode = 2
|
|
text = "Apple"
|
|
|
|
[node name="FacebookButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox/SocialButtons" unique_id=1252096120]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(100, 44)
|
|
layout_mode = 2
|
|
text = "Facebook"
|
|
|
|
[node name="SteamButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox/SocialButtons" unique_id=1024459784]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(140, 44)
|
|
layout_mode = 2
|
|
text = " STEAM"
|
|
icon = ExtResource("9_eint3")
|
|
|
|
[node name="StatusLabel" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1679807364]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(1, 0.4, 0.4, 1)
|
|
horizontal_alignment = 1
|
|
autowrap_mode = 2
|
|
|
|
[node name="LoadingSpinner" type="TextureProgressBar" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Login/VBox" unique_id=1985748047]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(40, 40)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
|
|
[node name="Register" type="MarginContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer" unique_id=1373074681]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 8
|
|
metadata/_tab_index = 1
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register" unique_id=839364109]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="RegEmailInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=1906331672]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Email"
|
|
|
|
[node name="RegUsernameInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=853099369]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Username"
|
|
|
|
[node name="RegPasswordInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=1603528515]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Password"
|
|
secret = true
|
|
|
|
[node name="RegConfirmPasswordInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=830465730]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Confirm Password"
|
|
secret = true
|
|
|
|
[node name="PasswordStrength" type="ProgressBar" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=2023454025]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 12)
|
|
layout_mode = 2
|
|
max_value = 4.0
|
|
show_percentage = false
|
|
|
|
[node name="PasswordHint" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=1402181329]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Min 8 characters, include number and symbol"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="RegCaptchaContainer" type="HBoxContainer" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=1697820195]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 25
|
|
|
|
[node name="RegCaptchaQuestion" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox/RegCaptchaContainer" unique_id=1792478300]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Security Check: 5 + 7 = ?"
|
|
|
|
[node name="RegCaptchaInput" type="LineEdit" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox/RegCaptchaContainer" unique_id=1405718888]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(100, 44)
|
|
layout_mode = 2
|
|
placeholder_text = "Answer"
|
|
alignment = 1
|
|
|
|
[node name="RegisterButton" type="Button" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=2040733064]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 48)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 18
|
|
text = "REGISTER"
|
|
|
|
[node name="RegStatusLabel" type="Label" parent="RootHBox/CenterColumn/PanelBG/TabContainer/Register/VBox" unique_id=1096594976]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
horizontal_alignment = 1
|
|
autowrap_mode = 2
|
|
|
|
[node name="RightColumn" type="Control" parent="RootHBox" unique_id=115281348]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="ServerSelectionSection" type="VBoxContainer" parent="." unique_id=580109643]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 16.0
|
|
offset_top = -60.0
|
|
offset_right = 320.0
|
|
offset_bottom = -16.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="ServerOption" type="OptionButton" parent="ServerSelectionSection" unique_id=975117024]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
selected = 3
|
|
item_count = 4
|
|
popup/item_0/text = "Nakama - Localhost (Testing)"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "Nakama - Remote Server (Host IP)"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "LAN Direct (No Server)"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = "Nakama - Tekton Dash EU"
|
|
popup/item_3/id = 3
|
|
|
|
[node name="ServerIPInput" type="LineEdit" parent="ServerSelectionSection" unique_id=1444265129]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "127.0.0.1"
|
|
placeholder_text = "Enter Nakama Server IP..."
|
|
|
|
[node name="LANSection" type="VBoxContainer" parent="ServerSelectionSection" unique_id=1917634402]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="LanInfo" type="Label" parent="ServerSelectionSection/LANSection" unique_id=130839558]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Play over LAN without any server.
|
|
Firewall may need to allow port 7777."
|
|
autowrap_mode = 3
|
|
|
|
[node name="LANHostBtn" type="Button" parent="ServerSelectionSection/LANSection" unique_id=751026831]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "HOST LAN GAME"
|
|
|
|
[node name="LanSeparator" type="Label" parent="ServerSelectionSection/LANSection" unique_id=29744637]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.5, 0.5, 0.5, 1)
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "─────── or join a friend ───────"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LANIPInput" type="LineEdit" parent="ServerSelectionSection/LANSection" unique_id=1859021984]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "127.0.0.1"
|
|
placeholder_text = "Host IP (e.g. 192.168.1.10)"
|
|
|
|
[node name="LANJoinBtn" type="Button" parent="ServerSelectionSection/LANSection" unique_id=2009389522]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
text = "JOIN LAN GAME"
|
|
|
|
[node name="VersionLabel" type="Label" parent="." unique_id=256596221]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
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 = "v2.1.2"
|
|
horizontal_alignment = 1
|