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
+5
-1
@@ -7,6 +7,7 @@ signal rules_pressed
|
||||
|
||||
var progress_pill: Button
|
||||
var primary: Button
|
||||
var hint_label: Label
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -79,7 +80,8 @@ func _ready() -> void:
|
||||
|
||||
column.add_child(UI.label("Crumb, innkeeper", 12, Palette.MUTED))
|
||||
column.add_child(UI.label("Every guest gets a room of their own.", 15))
|
||||
column.add_child(UI.label("Tap = X · Hold or right-click = check in", 11, Palette.MUTED))
|
||||
hint_label = UI.label(UI.place_hint(), 11, Palette.MUTED)
|
||||
column.add_child(hint_label)
|
||||
|
||||
var bottom_space := Control.new()
|
||||
bottom_space.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
@@ -113,10 +115,12 @@ func _ready() -> void:
|
||||
column.add_child(UI.label(Version.BUILD_LABEL, 9, Palette.MUTED))
|
||||
|
||||
SaveGame.progress_changed.connect(refresh)
|
||||
SaveGame.settings_changed.connect(refresh)
|
||||
refresh()
|
||||
|
||||
|
||||
func refresh() -> void:
|
||||
hint_label.text = UI.place_hint()
|
||||
var guests := Guests.all()
|
||||
var unlocked := SaveGame.unlocked_count(guests)
|
||||
progress_pill.text = "%d / %d guests" % [unlocked, guests.size()]
|
||||
|
||||
Reference in new issue
Block a user