feat(input): guard Guest Book taps and add double-tap placement
Guest Book: only open a card on a short stationary tap, ignore drags and flings, and guard the detail Close button after opening. Board: add a persisted double-tap placement mode with deferred single taps, while hold stays the default and right-click works in both modes.
This commit is contained in:
1 parent
bed81a2e05
commit
af4951baf8
8 files changed
+344
-11
No files matched your search
@@ -142,6 +142,13 @@ static func safe_bottom() -> int:
|
||||
return 24 if OS.has_feature("mobile") else 14
|
||||
|
||||
|
||||
## Short control hint that follows the saved placement mode.
|
||||
static func place_hint() -> String:
|
||||
if bool(SaveGame.get_setting("double_tap_place")):
|
||||
return "Tap = X · Double-tap or right-click = check in"
|
||||
return "Tap = X · Hold or right-click = check in"
|
||||
|
||||
|
||||
static func _button_style(color: Color) -> StyleBoxFlat:
|
||||
var s := StyleBoxFlat.new()
|
||||
s.bg_color = color
|
||||
|
||||
Reference in new issue
Block a user