update
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://profile_panel"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dyx0upokhsh2e"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/profile_panel.gd" id="1"]
|
||||
[ext_resource type="Script" uid="uid://y6wswtalyiho" path="res://scripts/ui/profile_panel.gd" id="1"]
|
||||
[ext_resource type="Theme" uid="uid://da337sh5qxi0s" path="res://assets/themes/ui_theme.tres" id="2"]
|
||||
|
||||
[node name="ProfilePanel" type="PanelContainer"]
|
||||
anchors_preset = 0
|
||||
offset_right = 350.0
|
||||
offset_bottom = 400.0
|
||||
offset_right = 380.0
|
||||
offset_bottom = 480.0
|
||||
theme = ExtResource("2")
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 12
|
||||
theme_override_constants/separation = 14
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
@@ -18,55 +19,61 @@ layout_mode = 2
|
||||
[node name="Title" type="Label" parent="VBox/Header"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_colors/font_color = Color(0, 0.831, 1, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Profile"
|
||||
|
||||
[node name="CloseButton" type="Button" parent="VBox/Header"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(36, 36)
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(30, 30)
|
||||
text = "✕"
|
||||
|
||||
[node name="AvatarSection" type="HBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
alignment = 1
|
||||
|
||||
[node name="AvatarDisplay" type="TextureRect" parent="VBox/AvatarSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(88, 88)
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(80, 80)
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="AvatarButtons" type="VBoxContainer" parent="VBox/AvatarSection"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="ChangeAvatarBtn" type="Button" parent="VBox/AvatarSection/AvatarButtons"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
text = "Change Avatar"
|
||||
|
||||
[node name="DisplayNameSection" type="VBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="Label" type="Label" parent="VBox/DisplayNameSection"]
|
||||
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)
|
||||
text = "Display Name"
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="VBox/DisplayNameSection"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="DisplayNameInput" type="LineEdit" parent="VBox/DisplayNameSection/HBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
custom_minimum_size = Vector2(0, 35)
|
||||
max_length = 50
|
||||
|
||||
[node name="SaveNameBtn" type="Button" parent="VBox/DisplayNameSection/HBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(80, 44)
|
||||
layout_mode = 2
|
||||
text = "Save"
|
||||
|
||||
@@ -75,10 +82,12 @@ layout_mode = 2
|
||||
|
||||
[node name="StatsSection" type="VBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="StatsTitle" type="Label" parent="VBox/StatsSection"]
|
||||
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 = 16
|
||||
text = "Statistics"
|
||||
|
||||
[node name="GamesPlayed" type="Label" parent="VBox/StatsSection"]
|
||||
@@ -101,20 +110,23 @@ layout_mode = 2
|
||||
|
||||
[node name="AccountSection" type="VBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="AccountType" type="Label" parent="VBox/AccountSection"]
|
||||
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)
|
||||
text = "Account: Guest"
|
||||
|
||||
[node name="LinkAccountBtn" type="Button" parent="VBox/AccountSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
text = "Link Email (Keep Progress)"
|
||||
|
||||
[node name="LogoutBtn" type="Button" parent="VBox/AccountSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
text = "Logout"
|
||||
|
||||
@@ -127,12 +139,12 @@ horizontal_alignment = 1
|
||||
[node name="AvatarSelectionPopup" type="PopupPanel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
title = "Select Avatar"
|
||||
size = Vector2i(300, 200)
|
||||
size = Vector2i(320, 220)
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="AvatarSelectionPopup"]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 10.0
|
||||
offset_top = 10.0
|
||||
offset_right = 290.0
|
||||
offset_bottom = 190.0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = 316.0
|
||||
offset_bottom = 216.0
|
||||
columns = 3
|
||||
|
||||
Reference in New Issue
Block a user