diff --git a/assets/ccs_cases_2/images/computer/computer-base.png b/assets/ccs_cases_2/images/computer/computer-base.png index 4596f72..2637664 100644 Binary files a/assets/ccs_cases_2/images/computer/computer-base.png and b/assets/ccs_cases_2/images/computer/computer-base.png differ diff --git a/scenes/ccs_cases_2/doctor_office.tscn b/scenes/ccs_cases_2/doctor_office.tscn index fd57627..39b7cb5 100644 --- a/scenes/ccs_cases_2/doctor_office.tscn +++ b/scenes/ccs_cases_2/doctor_office.tscn @@ -274,9 +274,9 @@ stretch_mode = 5 [node name="Close" type="Button" parent="ComputerOverlay"] layout_mode = 0 -offset_left = 1208.0 +offset_left = 1512.0 offset_top = 20.0 -offset_right = 1272.0 +offset_right = 1576.0 offset_bottom = 84.0 mouse_default_cursor_shape = 2 tooltip_text = "Close computer" diff --git a/scripts/ui/ccs_cases_2/doctor_office.gd b/scripts/ui/ccs_cases_2/doctor_office.gd index 9c14cf1..580ccac 100644 --- a/scripts/ui/ccs_cases_2/doctor_office.gd +++ b/scripts/ui/ccs_cases_2/doctor_office.gd @@ -454,8 +454,8 @@ func show_debrief(debrief: Dictionary, score: Dictionary) -> void: debrief_panel = PanelContainer.new() debrief_panel.name = "InterviewDebrief" debrief_panel.z_index = 50 - debrief_panel.position = Vector2(315.0, 100.0) debrief_panel.size = Vector2(870.0, 600.0) + debrief_panel.position = (size - debrief_panel.size) * 0.5 var panel_style := StyleBoxFlat.new() panel_style.bg_color = Color(0.96, 0.95, 0.91, 0.97) panel_style.border_color = Color(0.12, 0.22, 0.28, 0.8) diff --git a/scripts/ui/ccs_cases_2_screen.gd b/scripts/ui/ccs_cases_2_screen.gd index 29f5ae7..b00aeb0 100644 --- a/scripts/ui/ccs_cases_2_screen.gd +++ b/scripts/ui/ccs_cases_2_screen.gd @@ -3,7 +3,7 @@ extends Control const Brand := preload("res://scripts/ui/medmind_style.gd") const Style := preload("res://scripts/ui/ui_style.gd") const DOCTOR_SCENE := preload("res://scenes/ccs_cases_2/doctor_office.tscn") -const DESIGN_SIZE := Vector2(1500.0, 800.0) +const DESIGN_SIZE := Vector2(1600.0, 900.0) const FOCUSED_INTERVIEW_CASE_ID := "ccs-gastro-duodenal-ulcer-office-001" const RETIRED_INTERVIEW_TOPIC_IDS := [ "abdominal_symptoms", "bleeding_alarm_features", "medications", diff --git a/tests/ccs_cases_2_ui_test.gd b/tests/ccs_cases_2_ui_test.gd index 3621eeb..be8db7e 100644 --- a/tests/ccs_cases_2_ui_test.gd +++ b/tests/ccs_cases_2_ui_test.gd @@ -95,6 +95,7 @@ func _run() -> void: _assert(screen.close_transient_overlay(), "Escape routing should close the computer before the pause menu") _assert(not screen.active_scene.is_computer_open(), "closing the transient overlay should restore the doctor office") _assert(not screen.close_transient_overlay(), "a second Escape should be available to open the pause menu") + _assert(is_equal_approx(screen.DESIGN_SIZE.x / screen.DESIGN_SIZE.y, 16.0 / 9.0), "the graphical CCS stage should use a true 16:9 design canvas") _assert(is_equal_approx(screen.stage_root.scale.x, screen.stage_root.scale.y), "the graphical stage should preserve its aspect ratio") var stale_graphical_attempt := _sample_attempt(false) stale_graphical_attempt.experienceMode = "graphical_interview"