Scale CCS experience to 16:9

This commit is contained in:
hz
2026-08-07 19:04:16 -05:00
parent e50a97ba91
commit 91690b2fe9
5 changed files with 5 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 981 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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",
+1
View File
@@ -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"