#37: platform back button, no Quit on phones, flat labels, camera
- Android back: application/config/quit_on_go_back=false; Main.go_back() (from NOTIFICATION_WM_GO_BACK_REQUEST, phones only) closes the shop or pouch panel or leaves build mode, else pauses; paused it closes the question, then settings, then resumes (shared with the pause action); at the main menu it closes the question or settings, else quits. - Phones hide the main menu's Quit and the pause menu's Quit the game. - ScreenLabels.ensure() makes the one ScreenLabels (ToonLook's on desktop; Main's on phones, which watch()es the tree for Label3Ds). Label sizes grow with the window's content_scale_factor (1 on desktop). - FollowCamera starts at PHONE_DISTANCE (12 m) on phones. - MobilePort.forced for tests; game/tests/mobile/platform_test.gd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f0291133fd
commit
c47e67891e
10 changed files with 368 additions and 23 deletions
|
|
@ -2,7 +2,8 @@ class_name MainMenu
|
|||
extends Control
|
||||
## The title screen over the farm (Main slowly circles a camera around it): the title, then
|
||||
## Continue (with which morning it resumes at, or why the save can't be continued), New
|
||||
## vacation, Play with a friend (co-op, CoopMenu; not on phones), Settings, and Quit, and a notice line (e.g.
|
||||
## vacation, Play with a friend (co-op, CoopMenu; not on phones), Settings, and Quit (not on
|
||||
## phones either), and a notice line (e.g.
|
||||
## why a co-op game ended). Mouse, keyboard, and gamepad work through focus.
|
||||
|
||||
signal continue_requested
|
||||
|
|
@ -62,6 +63,7 @@ func _ready() -> void:
|
|||
settings_button.pressed.connect(func() -> void: settings_requested.emit())
|
||||
quit_button = _button(box, "Quit")
|
||||
quit_button.pressed.connect(func() -> void: quit_requested.emit())
|
||||
quit_button.visible = not MobilePort.active() # phones: the system closes apps (Android's back here, Main)
|
||||
notice = Label.new()
|
||||
notice.add_theme_font_size_override("font_size", 22)
|
||||
notice.add_theme_color_override("font_color", Color(1.0, 0.75, 0.5))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue