Phones: interface scale capped at 1.7; settings fields for wave 2
The user lowered the cap from 1.8 so the smallest iPhones (SE, 13 mini) keep a canvas about 635 px tall. GameSettings gains swap_sticks, camera_distance (FollowCamera.PHONE_DISTANCE) and haptics, unsaved for now, so #38's apply_settings and #41's settings can be built in parallel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f072bac176
commit
5392ae09af
4 changed files with 16 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
extends RefCounted
|
||||
## The interface scale and the safe area (MobilePort, GameSettings, #35):
|
||||
## * scale_for: phones about 1.6 (clamped to 1.8 for the smallest), iPads and desktop 1, the
|
||||
## * scale_for: phones about 1.6 (clamped to 1.7 for the smallest), iPads and desktop 1, the
|
||||
## same in portrait; a missing or impossible density falls back to the size class.
|
||||
## * ui_scale: 1 on desktop whatever the Interface size; on a phone, the screen's scale times
|
||||
## the Interface size (clamped to 0.8-1.3). The desktop preview plays a phone or an iPad by
|
||||
|
|
@ -61,8 +61,8 @@ func _devices() -> void:
|
|||
# name, pixels, dpi, px/pt, low, high
|
||||
["iPhone 15", Vector2(2556, 1179), 460.0, 3.0, 1.6, 1.75],
|
||||
["iPhone 15 Pro Max", Vector2(2796, 1290), 460.0, 3.0, 1.5, 1.6],
|
||||
["iPhone 13 mini", Vector2(2340, 1080), 476.0, 3.0, 1.8, 1.8],
|
||||
["iPhone SE", Vector2(1334, 750), 326.0, 2.0, 1.8, 1.8],
|
||||
["iPhone 13 mini", Vector2(2340, 1080), 476.0, 3.0, 1.7, 1.7],
|
||||
["iPhone SE", Vector2(1334, 750), 326.0, 2.0, 1.7, 1.7],
|
||||
["iPad (10th)", Vector2(2360, 1640), 264.0, 2.0, 1.0, 1.0],
|
||||
["iPad mini", Vector2(2266, 1488), 326.0, 2.0, 1.0, 1.0],
|
||||
["iPad Pro 13\"", Vector2(2752, 2064), 264.0, 2.0, 1.0, 1.0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue