feat: guest-of-day mascot and Windows export preset
The Home mascot now features a deterministic guest of the day, tap-cycles unlocked guests with a story teaser, and scales cleanly at large text sizes. Screens stay centered at 360dp on wide aspect ratios. Adds a Windows Desktop export preset.
This commit is contained in:
1 parent
9e2776f7c4
commit
25c918e6a2
5 files changed
+149
-22
No files matched your search
+14
-2
@@ -88,7 +88,7 @@ func _ready() -> void:
|
||||
|
||||
settings_sheet = SettingsSheetScene.instantiate()
|
||||
add_child(settings_sheet)
|
||||
settings_sheet.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
_center_control(settings_sheet)
|
||||
settings_sheet.visible = false
|
||||
settings_sheet.closed.connect(close_settings)
|
||||
settings_sheet.restart_requested.connect(_on_restart_requested)
|
||||
@@ -149,9 +149,21 @@ func _update_music() -> void:
|
||||
music_player.stop()
|
||||
|
||||
|
||||
## Keep the 360dp design centered on wide screens instead of stretching it.
|
||||
func _center_control(control: Control) -> void:
|
||||
control.anchor_left = 0.5
|
||||
control.anchor_right = 0.5
|
||||
control.anchor_top = 0.0
|
||||
control.anchor_bottom = 1.0
|
||||
control.offset_left = -180
|
||||
control.offset_right = 180
|
||||
control.offset_top = 0
|
||||
control.offset_bottom = 0
|
||||
|
||||
|
||||
func _add_screen(screen: Control) -> void:
|
||||
add_child(screen)
|
||||
screen.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
_center_control(screen)
|
||||
screen.visible = false
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user