feat(input): make double-tap placement the default
New saves start in double-tap mode. Version 1 saves migrate once to double-tap and are rewritten as version 2, while the settings toggle still persists a later choice. Smoke tests now force hold mode for their hold checks; UI tests cover the fresh default and the migration.
This commit is contained in:
1 parent
15e79ae38c
commit
82c5691d2e
3 files changed
+47
-4
No files matched your search
@@ -93,6 +93,13 @@ func _run() -> void:
|
||||
print("FAIL mapping: expected (3,4), got %s" % str(mapped))
|
||||
|
||||
# Tap marks X, right-click checks in, and hold checks in without a tap.
|
||||
# This section exercises hold mode explicitly; double-tap has its own
|
||||
# checks in ui_test.gd.
|
||||
var save = root.get_node_or_null("SaveGame")
|
||||
var previous_mode := true
|
||||
if save != null:
|
||||
previous_mode = bool(save.get_setting("double_tap_place"))
|
||||
save.set_setting("double_tap_place", false)
|
||||
board.set_level(first)
|
||||
board._update_layout()
|
||||
var tap_cell := _find_empty_cell(board)
|
||||
@@ -122,6 +129,9 @@ func _run() -> void:
|
||||
all_ok = false
|
||||
print("FAIL hold release: guest was removed")
|
||||
|
||||
if save != null:
|
||||
save.set_setting("double_tap_place", previous_mode)
|
||||
|
||||
print("SMOKE TEST: %s" % ("PASS" if all_ok else "FAIL"))
|
||||
quit(0 if all_ok else 1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user