From cb9b73dd761e38274d24fb269e0964e6a0dcf79c Mon Sep 17 00:00:00 2001 From: chen Date: Thu, 6 Aug 2026 22:17:49 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=8B=9B=E5=8B=9F=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=20UI=20=E8=B0=83=E6=95=B4=EF=BC=8CTopBar=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/game_config.cfg | 2 +- src/Core/MainGame.tscn | 4 ++-- src/UI/HUD/TopBarHUD.tscn | 14 ++------------ src/UI/Panels/RecruitPanel/RecruitPanel.tscn | 12 +++++++++--- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/resources/game_config.cfg b/resources/game_config.cfg index 8bf3d89..2fe7993 100644 --- a/resources/game_config.cfg +++ b/resources/game_config.cfg @@ -6,7 +6,7 @@ difficulty="normal" opening_applicant_count=5 opening_pick_count=3 -recruit_interval_years=0.1 +recruit_interval_years=1 recruit_applicant_count=3 ; 各难度资质权重(下品/中品/上品/天骄) diff --git a/src/Core/MainGame.tscn b/src/Core/MainGame.tscn index 9a3dd1c..65a58fc 100644 --- a/src/Core/MainGame.tscn +++ b/src/Core/MainGame.tscn @@ -2,14 +2,14 @@ [ext_resource type="Script" uid="uid://centrk8l54j7c" path="res://src/Core/MainGame.gd" id="1_8bu23"] [ext_resource type="PackedScene" uid="uid://dl0tb68vsw3c6" path="res://src/UI/HUD/TopBarHUD.tscn" id="1_g6xmk"] -[ext_resource type="PackedScene" path="res://src/UI/Panels/RecruitPanel/RecruitPanel.tscn" id="1_k5nrm"] +[ext_resource type="PackedScene" uid="uid://cahbpjpnmbcfv" path="res://src/UI/Panels/RecruitPanel/RecruitPanel.tscn" id="1_k5nrm"] [node name="MainGame" type="Node" unique_id=2053561265] -groups = ["game_scene"] script = ExtResource("1_8bu23") [node name="TopBarHud" parent="." unique_id=1115394694 instance=ExtResource("1_g6xmk")] [node name="RecruitPanel" parent="." unique_id=770000016 instance=ExtResource("1_k5nrm")] +layout_mode = 3 [connection signal="sign_return_mainmenu" from="TopBarHud" to="." method="_on_top_bar_hud_sign_return_mainmenu"] diff --git a/src/UI/HUD/TopBarHUD.tscn b/src/UI/HUD/TopBarHUD.tscn index 33060b4..07b7acf 100644 --- a/src/UI/HUD/TopBarHUD.tscn +++ b/src/UI/HUD/TopBarHUD.tscn @@ -35,6 +35,7 @@ unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 8 +size_flags_stretch_ratio = 2.0 label_settings = SubResource("LabelSettings_bn2o5") [node name="Label_Time" type="Label" parent="HBoxContainer" unique_id=671872515] @@ -64,6 +65,7 @@ unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 8 +size_flags_stretch_ratio = 2.0 label_settings = SubResource("LabelSettings_bn2o5") [node name="SpeedGroup" type="HBoxContainer" parent="HBoxContainer" unique_id=2144893126] @@ -136,18 +138,6 @@ size_flags_horizontal = 3 size_flags_vertical = 8 label_settings = SubResource("LabelSettings_bn2o5") -[node name="placeholder_5" type="Label" parent="HBoxContainer" unique_id=491155620] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 8 -label_settings = SubResource("LabelSettings_bn2o5") - -[node name="placeholder_6" type="Label" parent="HBoxContainer" unique_id=1738250574] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 8 -label_settings = SubResource("LabelSettings_bn2o5") - [node name="Button_StaffManagement" type="Button" parent="HBoxContainer" unique_id=568204305] layout_mode = 2 size_flags_horizontal = 3 diff --git a/src/UI/Panels/RecruitPanel/RecruitPanel.tscn b/src/UI/Panels/RecruitPanel/RecruitPanel.tscn index 7eb28ff..6c85dbc 100644 --- a/src/UI/Panels/RecruitPanel/RecruitPanel.tscn +++ b/src/UI/Panels/RecruitPanel/RecruitPanel.tscn @@ -3,7 +3,12 @@ [ext_resource type="FontFile" uid="uid://drt448qncx27p" path="res://assets/fonts/dingliezhuhaifont-20240831GengXinBan)-2.ttf" id="2_font"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dialog"] -bg_color = Color(0.11, 0.08, 0.13, 0.97) +bg_color = Color(0.07, 0.13, 0.12, 0.97) +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +border_color = Color(0.4, 0.72, 0.6, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 @@ -23,7 +28,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -color = Color(0, 0, 0, 0.6) +color = Color(0.02, 0.05, 0.05, 0.65) [node name="CenterContainer" type="CenterContainer" parent="." unique_id=770000003] anchors_preset = 15 @@ -48,13 +53,14 @@ theme_override_constants/separation = 12 unique_name_in_owner = true theme_override_fonts/font = ExtResource("2_font") theme_override_font_sizes/font_size = 30 +theme_override_colors/font_color = Color(0.82, 0.95, 0.88, 1) text = "弟子入宗" [node name="HintLabel" type="Label" parent="CenterContainer/Panel/MarginContainer/VBoxContainer" unique_id=770000008] unique_name_in_owner = true theme_override_fonts/font = ExtResource("2_font") theme_override_font_sizes/font_size = 20 -theme_override_colors/font_color = Color(0.78, 0.75, 0.82, 1) +theme_override_colors/font_color = Color(0.6, 0.78, 0.7, 1) text = "" [node name="ScrollContainer" type="ScrollContainer" parent="CenterContainer/Panel/MarginContainer/VBoxContainer" unique_id=770000009]