调整了dialogue UI的大小
This commit is contained in:
parent
34b7633f1e
commit
01ecc56dd4
@ -52,17 +52,17 @@ grow_vertical = 2
|
|||||||
script = ExtResource("1_ilhgc")
|
script = ExtResource("1_ilhgc")
|
||||||
|
|
||||||
[node name="Part_1" type="NinePatchRect" parent="."]
|
[node name="Part_1" type="NinePatchRect" parent="."]
|
||||||
custom_minimum_size = Vector2(360, 40)
|
custom_minimum_size = Vector2(500, 44)
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -180.0
|
offset_left = -250.0
|
||||||
offset_top = -159.0
|
offset_top = -203.0
|
||||||
offset_right = 180.0
|
offset_right = 250.0
|
||||||
offset_bottom = -119.0
|
offset_bottom = -159.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("2_ilhgc")
|
texture = ExtResource("2_ilhgc")
|
||||||
@ -79,29 +79,29 @@ anchor_left = 0.5
|
|||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -27.0
|
offset_left = -40.5
|
||||||
offset_top = -13.0
|
offset_top = -11.7813
|
||||||
offset_right = 27.0
|
offset_right = 40.5
|
||||||
offset_bottom = 13.0
|
offset_bottom = 15.7813
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||||
theme_override_fonts/font = ExtResource("3_ilhgc")
|
theme_override_fonts/font = ExtResource("3_ilhgc")
|
||||||
theme_override_font_sizes/font_size = 22
|
theme_override_font_sizes/font_size = 27
|
||||||
text = "对话框"
|
text = "对话框"
|
||||||
|
|
||||||
[node name="Part_2" type="NinePatchRect" parent="."]
|
[node name="Part_2" type="NinePatchRect" parent="."]
|
||||||
custom_minimum_size = Vector2(360, 200)
|
custom_minimum_size = Vector2(500, 310)
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -180.0
|
offset_left = -250.0
|
||||||
offset_top = -119.0
|
offset_top = -159.0
|
||||||
offset_right = 180.0
|
offset_right = 250.0
|
||||||
offset_bottom = 81.0
|
offset_bottom = 151.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("2_ilhgc")
|
texture = ExtResource("2_ilhgc")
|
||||||
@ -112,17 +112,17 @@ patch_margin_right = 8
|
|||||||
patch_margin_bottom = 32
|
patch_margin_bottom = 32
|
||||||
|
|
||||||
[node name="Part_3" type="NinePatchRect" parent="Part_2"]
|
[node name="Part_3" type="NinePatchRect" parent="Part_2"]
|
||||||
custom_minimum_size = Vector2(320, 100)
|
custom_minimum_size = Vector2(460, 100)
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -140.0
|
offset_left = -230.0
|
||||||
offset_top = -88.0
|
offset_top = -135.0
|
||||||
offset_right = 140.0
|
offset_right = 230.0
|
||||||
offset_bottom = 52.0
|
offset_bottom = 98.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("2_ilhgc")
|
texture = ExtResource("2_ilhgc")
|
||||||
@ -140,15 +140,16 @@ anchor_left = 0.5
|
|||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -131.0
|
offset_left = -206.0
|
||||||
offset_top = -57.0
|
offset_top = -96.5
|
||||||
offset_right = 129.0
|
offset_right = 208.0
|
||||||
offset_bottom = 53.0
|
offset_bottom = 83.5
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/line_spacing = 7
|
||||||
theme_override_fonts/font = ExtResource("3_ilhgc")
|
theme_override_fonts/font = ExtResource("3_ilhgc")
|
||||||
theme_override_font_sizes/font_size = 18
|
theme_override_font_sizes/font_size = 20
|
||||||
text = "游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。"
|
text = "游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。游戏杂志最新刊已发行。"
|
||||||
autowrap_mode = 1
|
autowrap_mode = 1
|
||||||
|
|
||||||
@ -190,3 +191,4 @@ offset_right = -11.0
|
|||||||
offset_bottom = -4.0
|
offset_bottom = -4.0
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
|
stretch_mode = 5
|
||||||
|
|||||||
@ -38,7 +38,7 @@ func _on_page_activated():
|
|||||||
super._on_page_activated() # 调用父类的激活逻辑
|
super._on_page_activated() # 调用父类的激活逻辑
|
||||||
|
|
||||||
if GameState.get_value("is_on_task"):
|
if GameState.get_value("is_on_task"):
|
||||||
self.show()
|
self_modulate.a = 0.0
|
||||||
go_to_child_page(dialogue_secretary)
|
go_to_child_page(dialogue_secretary)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -284,4 +284,8 @@ func _on_confirm_pressed() -> void:
|
|||||||
|
|
||||||
# 设置选中的NPC为关键环节负责人
|
# 设置选中的NPC为关键环节负责人
|
||||||
set_main_data("关键环节负责人", selected_npc_key)
|
set_main_data("关键环节负责人", selected_npc_key)
|
||||||
|
GameState.set_value("dialogue_npc", selected_npc_key)
|
||||||
|
|
||||||
|
#设置任务状态开启
|
||||||
|
GameState.set_value("is_on_task",true)
|
||||||
go_next() # 进入下一个UI流程
|
go_next() # 进入下一个UI流程
|
||||||
|
|||||||
@ -145,7 +145,6 @@ func _on_page_workflow_end_requested(is_confirm_and_trigger_action: bool):
|
|||||||
|
|
||||||
current_active_page = null
|
current_active_page = null
|
||||||
GameState.set_value(gamestate_data_key,shared_workflow_data)
|
GameState.set_value(gamestate_data_key,shared_workflow_data)
|
||||||
GameState.set_value("is_on_task",true)
|
|
||||||
GameState.resume_game()
|
GameState.resume_game()
|
||||||
self.hide()
|
self.hide()
|
||||||
print("Main: UI Workflow finished and Main hidden.")
|
print("Main: UI Workflow finished and Main hidden.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user