Compare commits

...
Author SHA1 Message Date
Ratdoku Builder 3587c7bd64 chore(release): v0.5.2-alpha
Bump version name to 0.5.2 and Android version code to 10. Disable the Godot boot splash and document the themed confirmation cards.
2026-12-02 23:13:48 -06:00
Ratdoku Builder ea0f80664f fix(ui): theme reset and restart confirmations
Replaced native confirmation dialogs with an in-app card using app colours, fonts, wrapped body text, and full-width Cancel/destructive buttons. Tapping outside cancels. Added UI QA coverage and a reset-dialog screenshot.
2026-12-02 23:13:47 -06:00
8 changed files with 176 additions and 28 deletions

No files matched your search

+8
View File
@@ -2,6 +2,14 @@
All notable alpha milestones for Ratdoku.
## v0.5.2-alpha — Clean Slate
- Replaced the native reset/restart dialog with a themed in-app confirmation card: cream panel, Fredoka heading, wrapped body, and full-width Cancel / destructive action buttons.
- The confirmation panel fits the 360dp screen, and tapping outside cancels.
- Disabled the Godot boot splash and set the startup background to the app's cream colour.
- Added UI QA checks for both confirmation dialogs and a reset-dialog screenshot.
- Android debug APK rebuilt at version `0.5.2` (version code 10).
## v0.5.1-alpha — QA & Stability
- Fixed a crash when selecting a profile frame: the frame grid no longer frees the card that is still emitting `pressed`.
+10 -8
View File
@@ -40,7 +40,7 @@ The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains
- **Home** — top hub with framed Crumb avatar, guest progress, and settings; daily room card; Continue/Check in; Guest Book; House Rules.
- **Game** — top bar, rule strip for the first three rooms, room legend, board, timer, undo/hint, in-level settings, win overlay.
- **The Guest Book** — 25 guests: five residents unlocked from the start, the other 20 unlocked one per room. Locked cards show a very faint portrait under `???` and their room number. Tapping a card opens a detail sheet; swiping anywhere in the gallery scrolls it, including over cards.
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, double-tap placement (on by default), hold time, how to play, restart/back, reset progress.
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, double-tap placement (on by default), hold time, how to play, restart/back, reset progress. Destructive actions use a themed in-app confirmation card.
- **Profile** — Crumb's framed portrait, rooms completed, current and best daily streaks, and a selectable frame grid.
- **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
@@ -146,12 +146,12 @@ build/Ratdoku.apk
It is a **debug-signed, arm64-v8a** APK:
- Package: `com.ratdoku.game`
- Version: `0.5.1` (version code 9)
- Version: `0.5.2` (version code 10)
- Min SDK: 24 (Android 7.0)
- Target SDK: 36
- Size: about 41 MB
- Portrait orientation
- Build label: `v0.5.1-alpha · build 2026-12-02`
- Build label: `v0.5.2-alpha · build 2026-12-02`
To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging:
@@ -200,7 +200,7 @@ Run the whole QA suite (class scan, every test script, log-error scan, optional
## Versioning and releases
The current development build is **v0.5.1-alpha** (“QA & Stability”) with the build label on Home and in Settings.
The current development build is **v0.5.2-alpha** (“Clean Slate”) with the build label on Home and in Settings.
Gitea repository:
@@ -217,14 +217,15 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
- **v0.4.3-alpha** — double-tap placement is the default, with a one-time migration for older saves
- **v0.5.0-alpha** — daily room with streaks, Profile screen, and selectable profile frames
- **v0.5.1-alpha** — profile frame selection crash fix, QA suites, and log-guarded test runner
- **v0.5.2-alpha** — themed reset/restart confirmation and no Godot boot splash
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.1-alpha
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.2-alpha
The v0.5.1-alpha APK is also at:
The v0.5.2-alpha APK is also at:
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.1-alpha/Ratdoku-v0.5.1-alpha.apk`
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.2-alpha/Ratdoku-v0.5.2-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.1-alpha`.
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.2-alpha`.
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
@@ -240,4 +241,5 @@ The version is set in three places: `project.godot` (`config/version`), `scripts
- Settings, gallery, rulebook, unlock flow
- Daily room with streaks, Profile screen, selectable frames (save version 3)
- Installable Android debug APK
- No Godot boot splash; the app opens straight to the cream-themed game
- No audio yet, no release keystore/AAB yet
+2 -2
View File
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=9
version/name="0.5.1"
version/code=10
version/name="0.5.2"
package/unique_name="com.ratdoku.game"
package/name="Ratdoku"
package/signed=true
+3 -1
View File
@@ -12,9 +12,11 @@ config_version=5
config/name="Ratdoku"
run/main_scene="res://scenes/Main.tscn"
config/version="0.5.1-alpha"
config/version="0.5.2-alpha"
config/features=PackedStringArray("4.7", "GL Compatibility")
config/icon="res://icon.png"
boot_splash/show_image=false
boot_splash/bg_color=Color(0.984314, 0.945098, 0.87451, 1)
[autoload]
+117 -14
View File
@@ -13,10 +13,14 @@ var hold_panel: PanelContainer
var game_actions: HBoxContainer
var reset_row: Control
var resume_button: Button
var restart_dialog: ConfirmationDialog
var reset_dialog: ConfirmationDialog
var reset_status: Label
var confirm_layer: ColorRect
var confirm_title: Label
var confirm_body: Label
var confirm_button: Button
var confirm_callback := Callable()
func _ready() -> void:
set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
@@ -128,17 +132,80 @@ func _ready() -> void:
column.add_child(UI.label(Version.BUILD_LABEL, 9, Palette.MUTED))
restart_dialog = ConfirmationDialog.new()
restart_dialog.title = "Restart room?"
restart_dialog.dialog_text = "This clears the current board and timer."
restart_dialog.confirmed.connect(func() -> void: restart_requested.emit())
add_child(restart_dialog)
_build_confirm()
reset_dialog = ConfirmationDialog.new()
reset_dialog.title = "Reset progress?"
reset_dialog.dialog_text = "This clears completed rooms and unlocked guests. Settings stay."
reset_dialog.confirmed.connect(_on_reset_confirmed)
add_child(reset_dialog)
func _build_confirm() -> void:
confirm_layer = ColorRect.new()
confirm_layer.color = Color(0.18, 0.12, 0.08, 0.62)
confirm_layer.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
confirm_layer.mouse_filter = Control.MOUSE_FILTER_STOP
confirm_layer.gui_input.connect(_on_confirm_scrim_input)
confirm_layer.visible = false
add_child(confirm_layer)
var center := CenterContainer.new()
center.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
center.mouse_filter = Control.MOUSE_FILTER_IGNORE
confirm_layer.add_child(center)
var panel := UI.panel(Palette.CREAM, 24, 16)
var max_width: int = max(240, int(get_viewport_rect().size.x) - 32)
panel.custom_minimum_size = Vector2(min(320, max_width), 0)
panel.mouse_filter = Control.MOUSE_FILTER_STOP
center.add_child(panel)
var box := VBoxContainer.new()
box.add_theme_constant_override("separation", 10)
panel.add_child(box)
confirm_title = UI.heading("Reset progress?", 20)
confirm_title.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
box.add_child(confirm_title)
confirm_body = UI.label("", 13, Palette.MUTED)
confirm_body.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
box.add_child(confirm_body)
var actions := HBoxContainer.new()
actions.add_theme_constant_override("separation", 8)
box.add_child(actions)
var cancel := UI.button("Cancel", false, 46)
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
cancel.pressed.connect(_hide_confirm)
actions.add_child(cancel)
confirm_button = UI.button("Reset", false, 46)
confirm_button.size_flags_horizontal = Control.SIZE_EXPAND_FILL
_apply_red_style(confirm_button)
confirm_button.pressed.connect(_on_confirm_pressed)
actions.add_child(confirm_button)
func _apply_red_style(button: Button) -> void:
button.add_theme_stylebox_override("normal", _red_box(Palette.RED))
button.add_theme_stylebox_override("hover", _red_box(Palette.RED.lightened(0.07)))
button.add_theme_stylebox_override("pressed", _red_box(Palette.RED.darkened(0.10)))
button.add_theme_stylebox_override("focus", _red_box(Palette.RED))
button.add_theme_color_override("font_color", Palette.WHITE)
button.add_theme_color_override("font_hover_color", Palette.WHITE)
button.add_theme_color_override("font_pressed_color", Palette.WHITE)
button.add_theme_color_override("font_focus_color", Palette.WHITE)
func _red_box(color: Color) -> StyleBoxFlat:
var style := StyleBoxFlat.new()
style.bg_color = color
style.corner_radius_top_left = 26
style.corner_radius_top_right = 26
style.corner_radius_bottom_left = 26
style.corner_radius_bottom_right = 26
style.content_margin_left = 16
style.content_margin_right = 16
style.content_margin_top = 10
style.content_margin_bottom = 10
return style
func open_sheet(mode: String) -> void:
@@ -302,7 +369,12 @@ func _close() -> void:
func _on_restart() -> void:
restart_dialog.popup_centered()
_show_confirm(
"Restart room?",
"This clears the current board and timer.",
"Restart",
func() -> void: restart_requested.emit()
)
func _on_lobby() -> void:
@@ -311,7 +383,38 @@ func _on_lobby() -> void:
func _on_reset() -> void:
reset_dialog.popup_centered()
_show_confirm(
"Reset progress?",
"This clears completed rooms and unlocked guests. Settings stay.",
"Reset",
_on_reset_confirmed
)
func _show_confirm(title: String, body: String, action: String, callback: Callable) -> void:
confirm_title.text = title
confirm_body.text = body
confirm_button.text = action
confirm_callback = callback
confirm_layer.visible = true
confirm_layer.move_to_front()
func _hide_confirm() -> void:
confirm_layer.visible = false
confirm_callback = Callable()
func _on_confirm_scrim_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
_hide_confirm()
func _on_confirm_pressed() -> void:
var callback := confirm_callback
_hide_confirm()
if callback.is_valid():
callback.call()
func _on_reset_confirmed() -> void:
+3 -3
View File
@@ -1,7 +1,7 @@
class_name Version
extends RefCounted
const NUMBER := "0.5.1-alpha"
const CODENAME := "QA & Stability"
const NUMBER := "0.5.2-alpha"
const CODENAME := "Clean Slate"
const BUILD_DATE := "2026-12-02"
const BUILD_LABEL := "v0.5.1-alpha · build 2026-12-02"
const BUILD_LABEL := "v0.5.2-alpha · build 2026-12-02"
+29
View File
@@ -101,6 +101,29 @@ func _test_settings(main, save) -> void:
toggles["double_tap_place"].button_pressed = true
_check(bool(save.get_setting("double_tap_place")), "double-tap toggle should update SaveGame")
_check(not main.settings_sheet.hold_slider.editable, "hold slider should be disabled with double-tap on")
# Themed confirmation replaces the native popup on reset.
var sheet = main.settings_sheet
sheet._on_reset()
await process_frame
_check(sheet.confirm_layer.visible, "reset confirmation should be visible")
_check(sheet.confirm_title.text == "Reset progress?", "reset confirmation title")
_check(sheet.confirm_button.text == "Reset", "reset confirmation action text")
var panel: Control = sheet.confirm_layer.get_child(0).get_child(0)
var viewport_width: int = int(ProjectSettings.get_setting("display/window/size/viewport_width"))
_check(panel.custom_minimum_size.x <= viewport_width - 16, "confirmation panel should fit the screen")
var outside := InputEventMouseButton.new()
outside.button_index = MOUSE_BUTTON_LEFT
outside.pressed = true
sheet._on_confirm_scrim_input(outside)
_check(not sheet.confirm_layer.visible, "tapping outside should dismiss confirmation")
save.data["completed_rooms"].append("room-confirm")
sheet._on_reset()
await process_frame
sheet.confirm_button.pressed.emit()
await process_frame
_check((save.data.get("completed_rooms") as Array).is_empty(), "confirming reset should clear progress")
main.close_settings()
await process_frame
_check(not main.settings_sheet.visible, "settings sheet should close from home")
@@ -112,6 +135,12 @@ func _test_settings(main, save) -> void:
_check(main.settings_sheet.resume_button.text == "Resume", "game settings should use Resume")
_check(main.settings_sheet.game_actions.visible, "game settings should show Restart/Lobby")
_check(main.game.ui_paused, "game should pause while settings are open")
main.settings_sheet._on_restart()
await process_frame
_check(main.settings_sheet.confirm_layer.visible, "restart confirmation should be visible")
_check(main.settings_sheet.confirm_title.text == "Restart room?", "restart confirmation title")
_check(main.settings_sheet.confirm_button.text == "Restart", "restart confirmation action text")
main.settings_sheet._hide_confirm()
main.close_settings()
await process_frame
_check(not main.settings_sheet.visible, "settings sheet should close from game")
+4
View File
@@ -32,6 +32,10 @@ func _run() -> void:
main.open_settings("home")
await _settle()
_save("res://screenshots/settings.png")
main.settings_sheet._on_reset()
await _settle()
_save("res://screenshots/reset_confirm.png")
main.settings_sheet._hide_confirm()
main.close_settings()
main.show_screen("guest_book")