From a023d6ff9469977f7566e3a26c12bcf91ce2a6e0 Mon Sep 17 00:00:00 2001 From: dingo Date: Wed, 25 Mar 2026 23:02:42 -0400 Subject: [PATCH] ui improvements --- Client/origin-client/project.godot | 4 +- .../scenes/free_play/LobbyRoomScreen.tscn | 78 ++++++++-------- .../scenes/login/LoginScreen.tscn | 88 ++++++++++++------- 3 files changed, 94 insertions(+), 76 deletions(-) diff --git a/Client/origin-client/project.godot b/Client/origin-client/project.godot index 337d344..7729d31 100644 --- a/Client/origin-client/project.godot +++ b/Client/origin-client/project.godot @@ -32,8 +32,8 @@ HighlightConfig="*res://autoloads/HighlightConfig.gd" [display] -window/size/viewport_width=1280 -window/size/viewport_height=720 +window/size/viewport_width=1440 +window/size/viewport_height=768 window/stretch/mode="canvas_items" window/stretch/aspect="expand" diff --git a/Client/origin-client/scenes/free_play/LobbyRoomScreen.tscn b/Client/origin-client/scenes/free_play/LobbyRoomScreen.tscn index bca90df..72322b7 100644 --- a/Client/origin-client/scenes/free_play/LobbyRoomScreen.tscn +++ b/Client/origin-client/scenes/free_play/LobbyRoomScreen.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=2 format=3] +[gd_scene load_steps=2 format=3 uid="uid://7gy02ovp5l0v"] -[ext_resource type="Script" path="res://scenes/free_play/lobby_room_screen.gd" id="1_lrs"] +[ext_resource type="Script" uid="uid://ba1ux64fml50t" path="res://scenes/free_play/lobby_room_screen.gd" id="1_lrs"] [node name="LobbyRoomScreen" type="Control"] layout_mode = 3 @@ -18,7 +18,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -color = Color(0.094, 0.094, 0.137, 1.0) +color = Color(0.094, 0.094, 0.137, 1) [node name="Layout" type="VBoxContainer" parent="."] layout_mode = 1 @@ -30,8 +30,8 @@ grow_vertical = 2 theme_override_constants/separation = 0 [node name="Header" type="HBoxContainer" parent="Layout"] -layout_mode = 2 custom_minimum_size = Vector2(0, 56) +layout_mode = 2 [node name="HeaderMargin" type="MarginContainer" parent="Layout/Header"] layout_mode = 2 @@ -47,21 +47,21 @@ size_flags_horizontal = 3 unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -text = "LOBBY" theme_override_font_sizes/font_size = 20 +text = "LOBBY" [node name="LeaveBtn" type="Button" parent="Layout/Header/HeaderMargin/HeaderInner"] layout_mode = 2 -text = "Leave" theme_override_font_sizes/font_size = 14 +text = "Leave" [node name="Separator" type="HSeparator" parent="Layout"] layout_mode = 2 [node name="VoteBanner" type="PanelContainer" parent="Layout"] unique_name_in_owner = true -layout_mode = 2 visible = false +layout_mode = 2 [node name="VoteInner" type="HBoxContainer" parent="Layout/VoteBanner"] layout_mode = 2 @@ -85,8 +85,8 @@ text = "No" [node name="SuggestionBanner" type="PanelContainer" parent="Layout"] unique_name_in_owner = true -layout_mode = 2 visible = false +layout_mode = 2 [node name="SuggestionInner" type="VBoxContainer" parent="Layout/SuggestionBanner"] layout_mode = 2 @@ -100,11 +100,10 @@ text = "Guest suggested rule changes:" [node name="SuggestionRulesLabel" type="Label" parent="Layout/SuggestionBanner/SuggestionInner"] unique_name_in_owner = true +modulate = Color(0.85, 0.85, 0.85, 1) layout_mode = 2 size_flags_horizontal = 3 autowrap_mode = 3 -modulate = Color(0.85, 0.85, 0.85, 1.0) -text = "" [node name="SuggestionBtns" type="HBoxContainer" parent="Layout/SuggestionBanner/SuggestionInner"] layout_mode = 2 @@ -136,8 +135,8 @@ theme_override_constants/separation = 12 [node name="LeftMargin" type="MarginContainer" parent="Layout/MainSplit/LeftPanel/LeftContent"] layout_mode = 2 theme_override_constants/margin_left = 16 -theme_override_constants/margin_right = 16 theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 theme_override_constants/margin_bottom = 16 [node name="LeftInner" type="VBoxContainer" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin"] @@ -145,55 +144,54 @@ layout_mode = 2 theme_override_constants/separation = 14 [node name="HostSection" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "HOST" -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 11 +text = "HOST" [node name="HostNameLabel" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true layout_mode = 2 -text = "Host: …" theme_override_font_sizes/font_size = 15 +text = "Host: …" [node name="HostDeckLabel" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true +modulate = Color(0.75, 0.75, 0.75, 1) layout_mode = 2 text = "Deck: (none)" -modulate = Color(0.75, 0.75, 0.75, 1.0) [node name="HostReadyIndicator" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true +modulate = Color(0.6, 0.6, 0.6, 1) layout_mode = 2 text = "Not ready" -modulate = Color(0.6, 0.6, 0.6, 1.0) [node name="GuestSep" type="HSeparator" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] layout_mode = 2 [node name="GuestSection" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "GUEST" -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 11 +text = "GUEST" [node name="GuestNameLabel" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true layout_mode = 2 -text = "Waiting for guest…" theme_override_font_sizes/font_size = 15 +text = "Waiting for guest…" [node name="GuestDeckLabel" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true +modulate = Color(0.75, 0.75, 0.75, 1) layout_mode = 2 -text = "" -modulate = Color(0.75, 0.75, 0.75, 1.0) [node name="GuestReadyIndicator" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true +modulate = Color(0.6, 0.6, 0.6, 1) layout_mode = 2 text = "Not ready" -modulate = Color(0.6, 0.6, 0.6, 1.0) [node name="ActionSep" type="HSeparator" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] layout_mode = 2 @@ -204,10 +202,10 @@ layout_mode = 2 text = "Change Deck" [node name="FirstTurnSection" type="Label" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "WHO GOES FIRST?" -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 11 +text = "WHO GOES FIRST?" [node name="FirstTurnBtns" type="HBoxContainer" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] layout_mode = 2 @@ -217,30 +215,30 @@ theme_override_constants/separation = 8 unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -text = "Me" toggle_mode = true +text = "Me" [node name="FirstOppBtn" type="Button" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner/FirstTurnBtns"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -text = "Opponent" toggle_mode = true +text = "Opponent" [node name="FirstRandomBtn" type="Button" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner/FirstTurnBtns"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -text = "Random" toggle_mode = true button_pressed = true +text = "Random" [node name="ReadyBtn" type="Button" parent="Layout/MainSplit/LeftPanel/LeftContent/LeftMargin/LeftInner"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 52) -text = "✓ Ready" +layout_mode = 2 theme_override_font_sizes/font_size = 16 +text = "✓ Ready" [node name="RightPanel" type="ScrollContainer" parent="Layout/MainSplit"] layout_mode = 2 @@ -252,8 +250,8 @@ size_flags_horizontal = 3 [node name="RightMargin" type="MarginContainer" parent="Layout/MainSplit/RightPanel/RightContent"] layout_mode = 2 theme_override_constants/margin_left = 16 -theme_override_constants/margin_right = 16 theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 theme_override_constants/margin_bottom = 16 [node name="RightInner" type="VBoxContainer" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin"] @@ -261,16 +259,16 @@ layout_mode = 2 theme_override_constants/separation = 12 [node name="RulesTitle" type="Label" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin/RightInner"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "RULES" -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 11 +text = "RULES" [node name="RulesLabel" type="Label" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin/RightInner"] unique_name_in_owner = true +modulate = Color(0.85, 0.85, 0.85, 1) layout_mode = 2 text = "(default rules)" -modulate = Color(0.85, 0.85, 0.85, 1.0) autowrap_mode = 3 [node name="EditRulesBtn" type="Button" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin/RightInner"] @@ -282,10 +280,10 @@ text = "Edit / Suggest Rules" layout_mode = 2 [node name="PresetsTitle" type="Label" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin/RightInner"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "PRESETS" -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 11 +text = "PRESETS" [node name="PresetBtns" type="HBoxContainer" parent="Layout/MainSplit/RightPanel/RightContent/RightMargin/RightInner"] layout_mode = 2 @@ -303,13 +301,12 @@ text = "Load Preset" [node name="DeckPickerDialog" type="AcceptDialog" parent="."] unique_name_in_owner = true -visible = false title = "Choose Deck" initial_position = 4 -min_size = Vector2(300, 280) +size = Vector2i(300, 280) +min_size = Vector2i(300, 280) [node name="DeckPickerScroll" type="ScrollContainer" parent="DeckPickerDialog"] -layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -324,13 +321,12 @@ theme_override_constants/separation = 6 [node name="PresetListDialog" type="AcceptDialog" parent="."] unique_name_in_owner = true -visible = false title = "Load Preset" initial_position = 4 -min_size = Vector2(300, 280) +size = Vector2i(300, 280) +min_size = Vector2i(300, 280) [node name="PresetListScroll" type="ScrollContainer" parent="PresetListDialog"] -layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 diff --git a/Client/origin-client/scenes/login/LoginScreen.tscn b/Client/origin-client/scenes/login/LoginScreen.tscn index 24f8797..a171cea 100644 --- a/Client/origin-client/scenes/login/LoginScreen.tscn +++ b/Client/origin-client/scenes/login/LoginScreen.tscn @@ -1,6 +1,8 @@ -[gd_scene load_steps=2 format=3] +[gd_scene load_steps=3 format=3 uid="uid://i63qd4bw4ak0"] -[ext_resource type="Script" path="res://scenes/login/login_screen.gd" id="1_login"] +[ext_resource type="Script" uid="uid://yqc7mxil4y06" path="res://scenes/login/login_screen.gd" id="1_login"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_k3del"] [node name="LoginScreen" type="Control"] layout_mode = 3 @@ -18,7 +20,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -color = Color(0.094, 0.094, 0.137, 1.0) +color = Color(0.094, 0.094, 0.137, 1) [node name="Center" type="CenterContainer" parent="."] layout_mode = 1 @@ -29,10 +31,12 @@ grow_horizontal = 2 grow_vertical = 2 [node name="Panel" type="PanelContainer" parent="Center"] -layout_mode = 2 custom_minimum_size = Vector2(360, 0) +layout_mode = 2 [node name="Margin" type="MarginContainer" parent="Center/Panel"] +self_modulate = Color(0.41568628, 0.7607843, 0.9372549, 1) +material = SubResource("ShaderMaterial_k3del") layout_mode = 2 theme_override_constants/margin_left = 28 theme_override_constants/margin_top = 28 @@ -45,97 +49,115 @@ theme_override_constants/separation = 14 [node name="Title" type="Label" parent="Center/Panel/Margin/VBox"] layout_mode = 2 -text = "ORIGIN" -horizontal_alignment = 1 +theme_override_colors/font_outline_color = Color(0.12949139, 0.36538354, 1, 1) theme_override_font_sizes/font_size = 30 +text = "Origin:" +horizontal_alignment = 1 [node name="Subtitle" type="Label" parent="Center/Panel/Margin/VBox"] +modulate = Color(0.6, 0.6, 0.65, 1) layout_mode = 2 -text = "Stone of Ruin" -horizontal_alignment = 1 -modulate = Color(0.6, 0.6, 0.65, 1.0) theme_override_font_sizes/font_size = 13 +text = "Stone of Revival" +horizontal_alignment = 1 [node name="Spacer" type="Control" parent="Center/Panel/Margin/VBox"] -layout_mode = 2 custom_minimum_size = Vector2(0, 6) +layout_mode = 2 [node name="Tabs" type="TabContainer" parent="Center/Panel/Margin/VBox"] layout_mode = 2 size_flags_vertical = 3 +tab_alignment = 1 +current_tab = 0 [node name="Login" type="VBoxContainer" parent="Center/Panel/Margin/VBox/Tabs"] layout_mode = 2 theme_override_constants/separation = 8 +metadata/_tab_index = 0 + +[node name="Spacer" type="Control" parent="Center/Panel/Margin/VBox/Tabs/Login"] +custom_minimum_size = Vector2(0, 6) +layout_mode = 2 [node name="EmailLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Login"] layout_mode = 2 -text = "Email" +text = "Channeler Email" +horizontal_alignment = 1 [node name="EmailInput" type="LineEdit" parent="Center/Panel/Margin/VBox/Tabs/Login"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 44) +layout_mode = 2 +theme_override_font_sizes/font_size = 15 placeholder_text = "your@email.com" virtual_keyboard_type = 5 -theme_override_font_sizes/font_size = 15 [node name="PasswordLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Login"] layout_mode = 2 -text = "Password" +tooltip_text = "Password" +text = "Memory Seal" +horizontal_alignment = 1 [node name="PasswordInput" type="LineEdit" parent="Center/Panel/Margin/VBox/Tabs/Login"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 44) +layout_mode = 2 +theme_override_font_sizes/font_size = 15 placeholder_text = "••••••••" secret = true -theme_override_font_sizes/font_size = 15 [node name="RememberMe" type="CheckBox" parent="Center/Panel/Margin/VBox/Tabs/Login"] unique_name_in_owner = true layout_mode = 2 -text = "Remember me" theme_override_font_sizes/font_size = 13 +theme_override_colors/checkbox_checked_color = Color(1, 1, 1, 1) +theme_override_colors/checkbox_unchecked_color = Color(1, 1, 1, 1) +text = "Remember me" [node name="LoginSpacer" type="Control" parent="Center/Panel/Margin/VBox/Tabs/Login"] -layout_mode = 2 custom_minimum_size = Vector2(0, 4) +layout_mode = 2 [node name="LoginBtn" type="Button" parent="Center/Panel/Margin/VBox/Tabs/Login"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 48) -text = "Sign In" +layout_mode = 2 theme_override_font_sizes/font_size = 15 +text = "Enter the Realm" [node name="Register" type="VBoxContainer" parent="Center/Panel/Margin/VBox/Tabs"] +visible = false layout_mode = 2 theme_override_constants/separation = 8 +metadata/_tab_index = 1 [node name="RegEmailLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Register"] layout_mode = 2 -text = "Email" +text = "Channeler Email" +horizontal_alignment = 1 [node name="RegEmailInput" type="LineEdit" parent="Center/Panel/Margin/VBox/Tabs/Register"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 44) +layout_mode = 2 +theme_override_font_sizes/font_size = 15 placeholder_text = "your@email.com" virtual_keyboard_type = 5 -theme_override_font_sizes/font_size = 15 [node name="RegPasswordLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Register"] layout_mode = 2 -text = "Password" +tooltip_text = "Password" +text = "Memory Seal" +horizontal_alignment = 1 [node name="RegPasswordInput" type="LineEdit" parent="Center/Panel/Margin/VBox/Tabs/Register"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 44) +layout_mode = 2 +theme_override_font_sizes/font_size = 15 placeholder_text = "••••••••" secret = true -theme_override_font_sizes/font_size = 15 [node name="RegNameLabel" type="Label" parent="Center/Panel/Margin/VBox/Tabs/Register"] layout_mode = 2 @@ -143,26 +165,26 @@ text = "Display Name" [node name="RegNameInput" type="LineEdit" parent="Center/Panel/Margin/VBox/Tabs/Register"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 44) -placeholder_text = "YourName" +layout_mode = 2 theme_override_font_sizes/font_size = 15 +placeholder_text = "YourName" [node name="RegSpacer" type="Control" parent="Center/Panel/Margin/VBox/Tabs/Register"] -layout_mode = 2 custom_minimum_size = Vector2(0, 4) +layout_mode = 2 [node name="RegisterBtn" type="Button" parent="Center/Panel/Margin/VBox/Tabs/Register"] unique_name_in_owner = true -layout_mode = 2 custom_minimum_size = Vector2(0, 48) -text = "Create Account" +layout_mode = 2 theme_override_font_sizes/font_size = 15 +text = "Create Account" [node name="StatusLabel" type="Label" parent="Center/Panel/Margin/VBox"] unique_name_in_owner = true +modulate = Color(0.8, 0.8, 0.8, 1) layout_mode = 2 +theme_override_font_sizes/font_size = 13 horizontal_alignment = 1 autowrap_mode = 3 -modulate = Color(0.8, 0.8, 0.8, 1.0) -theme_override_font_sizes/font_size = 13