feat: updated UI UX for profile and leaderboard menu
This commit is contained in:
+43
-7
@@ -94,6 +94,9 @@ var current_match_id: String = ""
|
||||
|
||||
var leaderboard_panel_instance: Control
|
||||
|
||||
# Bot name tracking keyed by slot index to avoid re-generating on each update
|
||||
var _bot_names: Dictionary = {}
|
||||
|
||||
# Server Selection Controls (Now in tscn)
|
||||
# var server_option: OptionButton
|
||||
# var server_ip_input: LineEdit
|
||||
@@ -116,7 +119,7 @@ func _ready():
|
||||
|
||||
# Set player name from profile
|
||||
if AuthManager.is_guest:
|
||||
LobbyManager.local_player_name = "Guest"
|
||||
LobbyManager.local_player_name = NameGenerator.generate_guest_name()
|
||||
else:
|
||||
LobbyManager.local_player_name = UserProfileManager.get_display_name()
|
||||
|
||||
@@ -329,17 +332,21 @@ func _on_create_room_pressed() -> void:
|
||||
# Use profile name for logged-in users, or guest for others
|
||||
if AuthManager.is_guest:
|
||||
if LobbyManager.local_player_name.is_empty() or LobbyManager.local_player_name == "Player":
|
||||
LobbyManager.local_player_name = "Guest"
|
||||
LobbyManager.local_player_name = NameGenerator.generate_guest_name()
|
||||
else:
|
||||
LobbyManager.local_player_name = UserProfileManager.get_display_name()
|
||||
|
||||
if LobbyManager.is_lan_mode:
|
||||
connection_status.text = "Starting LAN room..."
|
||||
# Apply loadout character before creating room
|
||||
_apply_loadout_character()
|
||||
var ok = await LobbyManager.create_room_lan("LAN Room " + str(randi_range(100, 999)))
|
||||
if not ok:
|
||||
connection_status.text = "Failed to start LAN room. Check port 7777."
|
||||
else:
|
||||
connection_status.text = "Creating Nakama room..."
|
||||
# Apply loadout character before creating room
|
||||
_apply_loadout_character()
|
||||
LobbyManager.create_room("Room %d" % randi_range(1000, 9999))
|
||||
|
||||
func _on_browse_rooms_pressed() -> void:
|
||||
@@ -399,7 +406,7 @@ func _on_join_pressed() -> void:
|
||||
# Determine player name
|
||||
if AuthManager.is_guest:
|
||||
if LobbyManager.local_player_name.is_empty():
|
||||
LobbyManager.local_player_name = "Guest"
|
||||
LobbyManager.local_player_name = NameGenerator.generate_guest_name()
|
||||
else:
|
||||
LobbyManager.local_player_name = UserProfileManager.get_display_name()
|
||||
|
||||
@@ -417,6 +424,8 @@ func _on_join_pressed() -> void:
|
||||
return
|
||||
|
||||
connection_status.text = "Connecting to %s..." % match_id
|
||||
# Apply loadout character before joining
|
||||
_apply_loadout_character()
|
||||
var ok = LobbyManager.join_room_lan(match_id)
|
||||
if not ok:
|
||||
connection_status.text = "Failed to connect to %s" % match_id
|
||||
@@ -425,6 +434,8 @@ func _on_join_pressed() -> void:
|
||||
connection_status.text = "No room selected"
|
||||
return
|
||||
connection_status.text = "Joining Nakama room..."
|
||||
# Apply loadout character before joining
|
||||
_apply_loadout_character()
|
||||
LobbyManager.join_room(match_id)
|
||||
|
||||
func _on_back_pressed() -> void:
|
||||
@@ -529,6 +540,10 @@ func _on_leave_pressed() -> void:
|
||||
_show_panel("main_menu")
|
||||
ready_btn.button_pressed = false
|
||||
ready_btn.text = "READY"
|
||||
# Release bot names so they can be reused in the next session
|
||||
for key in _bot_names.keys():
|
||||
NameGenerator.release_bot_name(_bot_names[key])
|
||||
_bot_names.clear()
|
||||
|
||||
func _on_copy_id_pressed() -> void:
|
||||
DisplayServer.clipboard_set(current_match_id)
|
||||
@@ -611,10 +626,11 @@ func _on_profile_btn_pressed() -> void:
|
||||
var profile_panel_scene := load("res://scenes/ui/profile_panel.tscn")
|
||||
profile_panel_instance = profile_panel_scene.instantiate()
|
||||
profile_panel_instance.closed.connect(func(): profile_panel_instance.hide())
|
||||
# Full-screen overlay — fill the entire lobby viewport
|
||||
profile_panel_instance.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
add_child(profile_panel_instance)
|
||||
|
||||
profile_panel_instance.show_panel()
|
||||
profile_panel_instance.position = (get_viewport_rect().size - profile_panel_instance.size) / 2
|
||||
|
||||
func _on_logout_pressed() -> void:
|
||||
AuthManager.logout()
|
||||
@@ -648,11 +664,12 @@ func _on_leaderboard_pressed() -> void:
|
||||
if leaderboard_panel_scene:
|
||||
leaderboard_panel_instance = leaderboard_panel_scene.instantiate()
|
||||
leaderboard_panel_instance.closed.connect(func(): leaderboard_panel_instance.hide())
|
||||
# Full-screen overlay
|
||||
leaderboard_panel_instance.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
add_child(leaderboard_panel_instance)
|
||||
|
||||
if leaderboard_panel_instance:
|
||||
leaderboard_panel_instance.show_panel()
|
||||
# Center it and apply some offset if needed
|
||||
|
||||
func _go_to_login() -> void:
|
||||
if get_tree():
|
||||
@@ -716,6 +733,10 @@ func _on_room_joined(room_data: Dictionary) -> void:
|
||||
func _on_room_left() -> void:
|
||||
_show_panel("main_menu")
|
||||
connection_status.text = "Left room"
|
||||
# Release bot names for reuse
|
||||
for key in _bot_names.keys():
|
||||
NameGenerator.release_bot_name(_bot_names[key])
|
||||
_bot_names.clear()
|
||||
|
||||
func _on_host_disconnected() -> void:
|
||||
# Keep the connection status updated in the UI
|
||||
@@ -854,10 +875,15 @@ func _update_player_slots() -> void:
|
||||
# Empty slot - show as bot placeholder
|
||||
slot.visible = true
|
||||
|
||||
# Update name to show as bot
|
||||
# Assign stable bot name for this slot (generate once, reuse)
|
||||
if not _bot_names.has(i):
|
||||
_bot_names[i] = NameGenerator.generate_bot_name()
|
||||
var bot_display_name: String = _bot_names[i]
|
||||
|
||||
# Update name to show bot with an icon prefix
|
||||
var name_label = slot.get_node_or_null("PlayerName%d" % slot_num)
|
||||
if name_label:
|
||||
name_label.text = "🤖 Bot %d" % slot_num
|
||||
name_label.text = "🤖 " + bot_display_name
|
||||
|
||||
# Use a character for bot preview
|
||||
var char_preview = slot.get_node_or_null("CharacterPreview%d" % slot_num)
|
||||
@@ -916,3 +942,13 @@ func _truncate_id(id: String) -> String:
|
||||
if id.length() > 16:
|
||||
return id.substr(0, 8) + "..." + id.substr(-4)
|
||||
return id
|
||||
|
||||
func _apply_loadout_character() -> void:
|
||||
"""Apply the player's saved loadout default character to LobbyManager before entering a room."""
|
||||
var saved_char: String = UserProfileManager.profile.get("loadout_character", "")
|
||||
if saved_char.is_empty():
|
||||
return
|
||||
var idx := LobbyManager.available_characters.find(saved_char)
|
||||
if idx != -1:
|
||||
LobbyManager.local_character_index = idx
|
||||
print("[Lobby] Loadout character applied: ", saved_char)
|
||||
|
||||
@@ -2,83 +2,202 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://d1e2f3g4h5i6j" path="res://scripts/ui/leaderboard_panel.gd" id="1"]
|
||||
[ext_resource type="Theme" uid="uid://da337sh5qxi0s" path="res://assets/themes/ui_theme.tres" id="2"]
|
||||
[ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="3_font"]
|
||||
[ext_resource type="PackedScene" uid="uid://1vk0mjnwkngi" path="res://assets/characters/Masbro.glb" id="4_masbro"]
|
||||
[ext_resource type="PackedScene" uid="uid://d4cul3w3wem5w" path="res://assets/characters/Gatot.glb" id="4_gatot"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmln7v6v5kvxg" path="res://assets/characters/Oldpop.glb" id="4_oldpop"]
|
||||
[ext_resource type="PackedScene" uid="uid://ejeamn0pyey4" path="res://assets/characters/Bob.glb" id="4_bob"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://c3pyopnwibckj" path="res://assets/characters/animations/animation-pack.res" id="5_animlib"]
|
||||
|
||||
[node name="LeaderboardPanel" type="PanelContainer"]
|
||||
custom_minimum_size = Vector2(500, 400)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -250.0
|
||||
offset_top = -200.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 200.0
|
||||
[sub_resource type="Environment" id="Environment_lb"]
|
||||
background_mode = 1
|
||||
background_color = Color(0.06, 0.07, 0.10, 1)
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(0.5, 0.55, 0.75, 1)
|
||||
ambient_light_energy = 0.7
|
||||
|
||||
[node name="LeaderboardPanel" 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="VBox" type="VBoxContainer" parent="."]
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.05, 0.06, 0.09, 0.97)
|
||||
|
||||
[node name="MainLayout" type="HBoxContainer" parent="."]
|
||||
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="LeftPanel" type="PanelContainer" parent="MainLayout"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 1.0
|
||||
custom_minimum_size = Vector2(500, 0)
|
||||
|
||||
[node name="LeftVBox" type="VBoxContainer" parent="MainLayout/LeftPanel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="VBox"]
|
||||
[node name="Header" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="VBox/Header"]
|
||||
[node name="BackBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/Header"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(44, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
text = "← BACK"
|
||||
|
||||
[node name="Title" type="Label" parent="MainLayout/LeftPanel/LeftVBox/Header"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "LEADERBOARD"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CloseBtn" type="Button" parent="VBox/Header"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
layout_mode = 2
|
||||
text = "X"
|
||||
|
||||
[node name="SortTabs" type="HBoxContainer" parent="VBox"]
|
||||
[node name="SortTabs" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
alignment = 1
|
||||
|
||||
[node name="SortScoreBtn" type="Button" parent="VBox/SortTabs"]
|
||||
[node name="SortScoreBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/SortTabs"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 36)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
text = "High Score"
|
||||
|
||||
[node name="SortWinRateBtn" type="Button" parent="VBox/SortTabs"]
|
||||
[node name="SortWinRateBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/SortTabs"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 36)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
text = "Win Rate"
|
||||
|
||||
[node name="SortGamesBtn" type="Button" parent="VBox/SortTabs"]
|
||||
[node name="SortGamesBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/SortTabs"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 36)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
text = "Games Played"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="VBox"]
|
||||
[node name="HSeparator" type="HSeparator" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="VBox"]
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LeaderboardList" type="VBoxContainer" parent="VBox/ScrollContainer"]
|
||||
[node name="LeaderboardList" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox/ScrollContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="VBox"]
|
||||
[node name="StatusLabel" type="Label" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
text = "Loading data..."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="RightPanel" type="SubViewportContainer" parent="MainLayout"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.8
|
||||
custom_minimum_size = Vector2(340, 0)
|
||||
stretch = true
|
||||
|
||||
[node name="PreviewViewport" type="SubViewport" parent="MainLayout/RightPanel"]
|
||||
unique_name_in_owner = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(500, 720)
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
environment = SubResource("Environment_lb")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(0.866025, -0.25, 0.433013, 0, 0.866025, 0.5, -0.5, -0.433013, 0.75, 0, 4, 0)
|
||||
light_energy = 1.4
|
||||
|
||||
[node name="FillLight" type="OmniLight3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 2, 2)
|
||||
light_color = Color(0.4, 0.5, 1.0, 1)
|
||||
light_energy = 0.5
|
||||
omni_range = 8.0
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 0, 1.6, 3.2)
|
||||
current = true
|
||||
fov = 40.0
|
||||
|
||||
[node name="CharacterRoot" type="Node3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Masbro" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_masbro")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Bob" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_bob")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.484627, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Gatot" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_gatot")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Oldpop" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_oldpop")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot"]
|
||||
root_node = NodePath("../Oldpop")
|
||||
libraries/animation-pack = ExtResource("5_animlib")
|
||||
current_animation = "animation-pack/idle"
|
||||
autoplay = "animation-pack/idle"
|
||||
|
||||
[node name="SelectedPlayerInfo" type="VBoxContainer" parent="MainLayout/RightPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -120.0
|
||||
offset_right = 340.0
|
||||
grow_vertical = 0
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="SelectedNameLabel" type="Label" parent="MainLayout/RightPanel/SelectedPlayerInfo"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = ""
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="SelectedRankLabel" type="Label" parent="MainLayout/RightPanel/SelectedPlayerInfo"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.647, 0.996, 0.224, 1)
|
||||
theme_override_fonts/font = ExtResource("3_font")
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = ""
|
||||
horizontal_alignment = 1
|
||||
|
||||
+204
-49
@@ -3,72 +3,124 @@
|
||||
[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"]
|
||||
[ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="3_e13i6"]
|
||||
[ext_resource type="PackedScene" uid="uid://1vk0mjnwkngi" path="res://assets/characters/Masbro.glb" id="4_masbro"]
|
||||
[ext_resource type="PackedScene" uid="uid://d4cul3w3wem5w" path="res://assets/characters/Gatot.glb" id="4_gatot"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmln7v6v5kvxg" path="res://assets/characters/Oldpop.glb" id="4_oldpop"]
|
||||
[ext_resource type="PackedScene" uid="uid://ejeamn0pyey4" path="res://assets/characters/Bob.glb" id="4_bob"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://c3pyopnwibckj" path="res://assets/characters/animations/animation-pack.res" id="5_animlib"]
|
||||
|
||||
[node name="ProfilePanel" type="PanelContainer" unique_id=229091481]
|
||||
offset_right = 380.0
|
||||
offset_bottom = 480.0
|
||||
[sub_resource type="Environment" id="Environment_preview"]
|
||||
background_mode = 1
|
||||
background_color = Color(0.08, 0.09, 0.12, 1)
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(0.6, 0.65, 0.8, 1)
|
||||
ambient_light_energy = 0.6
|
||||
|
||||
[node name="ProfilePanel" type="Control" unique_id=229091481]
|
||||
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="VBox" type="VBoxContainer" parent="." unique_id=953819957]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 14
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.05, 0.06, 0.09, 0.97)
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="VBox" unique_id=485959454]
|
||||
[node name="MainLayout" type="HBoxContainer" parent="."]
|
||||
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="LeftPanel" type="PanelContainer" parent="MainLayout"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 1.0
|
||||
custom_minimum_size = Vector2(420, 0)
|
||||
|
||||
[node name="LeftVBox" type="VBoxContainer" parent="MainLayout/LeftPanel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="VBox/Header" unique_id=19242315]
|
||||
[node name="BackBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/Header"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(44, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "← BACK"
|
||||
|
||||
[node name="Title" type="Label" parent="MainLayout/LeftPanel/LeftVBox/Header"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_colors/font_color = Color(0.41568628, 0.6392157, 0.14117648, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Profile"
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "PROFILE & LOADOUT"
|
||||
|
||||
[node name="CloseButton" type="Button" parent="VBox/Header" unique_id=448699205]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(36, 36)
|
||||
[node name="Separator0" type="HSeparator" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
text = "✕"
|
||||
|
||||
[node name="AvatarSection" type="HBoxContainer" parent="VBox" unique_id=501593330]
|
||||
[node name="AvatarSection" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
alignment = 1
|
||||
alignment = 0
|
||||
|
||||
[node name="AvatarDisplay" type="TextureRect" parent="VBox/AvatarSection" unique_id=173716070]
|
||||
[node name="AvatarDisplay" type="TextureRect" parent="MainLayout/LeftPanel/LeftVBox/AvatarSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(88, 88)
|
||||
custom_minimum_size = Vector2(80, 80)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="AvatarButtons" type="VBoxContainer" parent="VBox/AvatarSection" unique_id=1408685281]
|
||||
[node name="AvatarButtons" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox/AvatarSection"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="ChangeAvatarBtn" type="Button" parent="VBox/AvatarSection/AvatarButtons" unique_id=1502182238]
|
||||
[node name="AccountType" type="Label" parent="MainLayout/LeftPanel/LeftVBox/AvatarSection/AvatarButtons"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Account: Guest"
|
||||
|
||||
[node name="ChangeAvatarBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/AvatarSection/AvatarButtons"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Change Avatar"
|
||||
|
||||
[node name="DisplayNameSection" type="VBoxContainer" parent="VBox" unique_id=545753874]
|
||||
[node name="DisplayNameSection" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="Label" type="Label" parent="VBox/DisplayNameSection" unique_id=1868331382]
|
||||
[node name="Label" type="Label" parent="MainLayout/LeftPanel/LeftVBox/DisplayNameSection"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Display Name"
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="VBox/DisplayNameSection" unique_id=1124739186]
|
||||
[node name="HBox" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox/DisplayNameSection"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="DisplayNameInput" type="LineEdit" parent="VBox/DisplayNameSection/HBox" unique_id=527983746]
|
||||
[node name="DisplayNameInput" type="LineEdit" parent="MainLayout/LeftPanel/LeftVBox/DisplayNameSection/HBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
@@ -76,88 +128,191 @@ size_flags_horizontal = 3
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
max_length = 50
|
||||
|
||||
[node name="SaveNameBtn" type="Button" parent="VBox/DisplayNameSection/HBox" unique_id=843919725]
|
||||
[node name="SaveNameBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/DisplayNameSection/HBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(80, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Save"
|
||||
|
||||
[node name="Separator1" type="HSeparator" parent="VBox" unique_id=1702408710]
|
||||
[node name="Separator1" type="HSeparator" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="StatsSection" type="VBoxContainer" parent="VBox" unique_id=1972383442]
|
||||
[node name="LoadoutSection" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="LoadoutTitle" type="Label" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.41568628, 0.6392157, 0.14117648, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "DEFAULT CHARACTER (LOADOUT)"
|
||||
|
||||
[node name="LoadoutHint" type="Label" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.6, 0.6, 0.6, 1)
|
||||
theme_override_font_sizes/font_size = 11
|
||||
text = "This character will be auto-selected when you join or create a room."
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="CharacterSelector" type="HBoxContainer" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
alignment = 1
|
||||
|
||||
[node name="CharLeftBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection/CharacterSelector"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(44, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "◀"
|
||||
|
||||
[node name="LoadoutCharName" type="Label" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection/CharacterSelector"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 44)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Copper"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CharRightBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection/CharacterSelector"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(44, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "▶"
|
||||
|
||||
[node name="SetDefaultBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/LoadoutSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "✓ SET AS DEFAULT"
|
||||
|
||||
[node name="Separator2" type="HSeparator" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="StatsSection" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="StatsTitle" type="Label" parent="VBox/StatsSection" unique_id=1851168520]
|
||||
[node name="StatsTitle" type="Label" parent="MainLayout/LeftPanel/LeftVBox/StatsSection"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.41536003, 0.64, 0.14080001, 1)
|
||||
theme_override_colors/font_color = Color(0.41568628, 0.6392157, 0.14117648, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "Statistics"
|
||||
|
||||
[node name="GamesPlayed" type="Label" parent="VBox/StatsSection" unique_id=1727349753]
|
||||
[node name="GamesPlayed" type="Label" parent="MainLayout/LeftPanel/LeftVBox/StatsSection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.57, 0.32090998, 0.1767, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Games Played: 0"
|
||||
|
||||
[node name="WinRate" type="Label" parent="VBox/StatsSection" unique_id=1229711691]
|
||||
[node name="WinRate" type="Label" parent="MainLayout/LeftPanel/LeftVBox/StatsSection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.57, 0.32090998, 0.1767, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Win Rate: 0%"
|
||||
|
||||
[node name="HighScore" type="Label" parent="VBox/StatsSection" unique_id=443769119]
|
||||
[node name="HighScore" type="Label" parent="MainLayout/LeftPanel/LeftVBox/StatsSection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.57, 0.32090998, 0.1767, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "High Score: 0"
|
||||
|
||||
[node name="Separator2" type="HSeparator" parent="VBox" unique_id=307036203]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AccountSection" type="VBoxContainer" parent="VBox" unique_id=1297099357]
|
||||
[node name="AccountSection" type="VBoxContainer" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="AccountType" type="Label" parent="VBox/AccountSection" unique_id=332392487]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.69, 0.529, 0.357, 1)
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Account: Guest"
|
||||
|
||||
[node name="LinkAccountBtn" type="Button" parent="VBox/AccountSection" unique_id=1719857784]
|
||||
[node name="LinkAccountBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/AccountSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Link Email (Keep Progress)"
|
||||
|
||||
[node name="LogoutBtn" type="Button" parent="VBox/AccountSection" unique_id=1335420017]
|
||||
[node name="LogoutBtn" type="Button" parent="MainLayout/LeftPanel/LeftVBox/AccountSection"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("3_e13i6")
|
||||
text = "Logout"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="VBox" unique_id=2080837765]
|
||||
[node name="StatusLabel" type="Label" parent="MainLayout/LeftPanel/LeftVBox"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="AvatarSelectionPopup" type="PopupPanel" parent="." unique_id=14363298]
|
||||
[node name="RightPanel" type="SubViewportContainer" parent="MainLayout"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 1.2
|
||||
custom_minimum_size = Vector2(400, 0)
|
||||
stretch = true
|
||||
|
||||
[node name="PreviewViewport" type="SubViewport" parent="MainLayout/RightPanel"]
|
||||
unique_name_in_owner = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(600, 720)
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
environment = SubResource("Environment_preview")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(0.866025, -0.25, 0.433013, 0, 0.866025, 0.5, -0.5, -0.433013, 0.75, 0, 4, 0)
|
||||
light_energy = 1.4
|
||||
|
||||
[node name="FillLight" type="OmniLight3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 2, 2)
|
||||
light_color = Color(0.5, 0.6, 1.0, 1)
|
||||
light_energy = 0.5
|
||||
omni_range = 8.0
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 0, 1.6, 3.2)
|
||||
current = true
|
||||
fov = 40.0
|
||||
|
||||
[node name="CharacterRoot" type="Node3D" parent="MainLayout/RightPanel/PreviewViewport"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Masbro" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_masbro")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Bob" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_bob")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.484627, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Gatot" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_gatot")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
visible = false
|
||||
|
||||
[node name="Oldpop" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot" instance=ExtResource("4_oldpop")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.485, 0)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="MainLayout/RightPanel/PreviewViewport/CharacterRoot"]
|
||||
root_node = NodePath("../Oldpop")
|
||||
libraries/animation-pack = ExtResource("5_animlib")
|
||||
current_animation = "animation-pack/idle"
|
||||
autoplay = "animation-pack/idle"
|
||||
|
||||
[node name="AvatarSelectionPopup" type="PopupPanel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
title = "Select Avatar"
|
||||
size = Vector2i(320, 220)
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="AvatarSelectionPopup" unique_id=183560389]
|
||||
[node name="GridContainer" type="GridContainer" parent="AvatarSelectionPopup"]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
|
||||
Reference in New Issue
Block a user