Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c91586b4a1 | ||
|
|
7abd1226cb | ||
|
|
3587c7bd64 | ||
|
|
ea0f80664f |
No files matched your search
@@ -2,6 +2,21 @@
|
|||||||
|
|
||||||
All notable alpha milestones for Ratdoku.
|
All notable alpha milestones for Ratdoku.
|
||||||
|
|
||||||
|
## v0.5.3-alpha — Crisp Icons
|
||||||
|
|
||||||
|
- Icon SVGs now import at 120px intrinsic size instead of 24px, so buttons stay sharp on high-density phones.
|
||||||
|
- Round buttons expand the high-res icon and use content margins to keep the original visual icon size.
|
||||||
|
- Added QA that checks every icon texture is at least 96px and that round buttons use expansion and margins.
|
||||||
|
- Android debug APK rebuilt at version `0.5.3` (version code 11).
|
||||||
|
|
||||||
|
## 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
|
## 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`.
|
- Fixed a crash when selecting a profile frame: the frame grid no longer frees the card that is still emitting `pressed`.
|
||||||
|
|||||||
@@ -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.
|
- **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.
|
- **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.
|
- **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.
|
- **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.
|
- **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:
|
It is a **debug-signed, arm64-v8a** APK:
|
||||||
|
|
||||||
- Package: `com.ratdoku.game`
|
- Package: `com.ratdoku.game`
|
||||||
- Version: `0.5.1` (version code 9)
|
- Version: `0.5.3` (version code 11)
|
||||||
- Min SDK: 24 (Android 7.0)
|
- Min SDK: 24 (Android 7.0)
|
||||||
- Target SDK: 36
|
- Target SDK: 36
|
||||||
- Size: about 41 MB
|
- Size: about 41 MB
|
||||||
- Portrait orientation
|
- Portrait orientation
|
||||||
- Build label: `v0.5.1-alpha · build 2026-12-02`
|
- Build label: `v0.5.3-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:
|
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
|
## 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.3-alpha** (“Crisp Icons”) with the build label on Home and in Settings.
|
||||||
|
|
||||||
Gitea repository:
|
Gitea repository:
|
||||||
|
|
||||||
@@ -217,14 +217,16 @@ 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.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.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.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
|
||||||
|
- **v0.5.3-alpha** — high-resolution UI icons that stay sharp on high-density screens
|
||||||
|
|
||||||
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.3-alpha
|
||||||
|
|
||||||
The v0.5.1-alpha APK is also at:
|
The v0.5.3-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.3-alpha/Ratdoku-v0.5.3-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.3-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`).
|
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 +242,5 @@ The version is set in three places: `project.godot` (`config/version`), `scripts
|
|||||||
- Settings, gallery, rulebook, unlock flow
|
- Settings, gallery, rulebook, unlock flow
|
||||||
- Daily room with streaks, Profile screen, selectable frames (save version 3)
|
- Daily room with streaks, Profile screen, selectable frames (save version 3)
|
||||||
- Installable Android debug APK
|
- 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
|
- No audio yet, no release keystore/AAB yet
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 264 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 319 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 395 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 402 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 238 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 662 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 316 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 358 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 414 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 373 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 420 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 299 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 588 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 578 B After Width: | Height: | Size: 580 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 311 B |
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
|
|||||||
architectures/arm64-v8a=true
|
architectures/arm64-v8a=true
|
||||||
architectures/x86=false
|
architectures/x86=false
|
||||||
architectures/x86_64=false
|
architectures/x86_64=false
|
||||||
version/code=9
|
version/code=11
|
||||||
version/name="0.5.1"
|
version/name="0.5.3"
|
||||||
package/unique_name="com.ratdoku.game"
|
package/unique_name="com.ratdoku.game"
|
||||||
package/name="Ratdoku"
|
package/name="Ratdoku"
|
||||||
package/signed=true
|
package/signed=true
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ config_version=5
|
|||||||
|
|
||||||
config/name="Ratdoku"
|
config/name="Ratdoku"
|
||||||
run/main_scene="res://scenes/Main.tscn"
|
run/main_scene="res://scenes/Main.tscn"
|
||||||
config/version="0.5.1-alpha"
|
config/version="0.5.3-alpha"
|
||||||
config/features=PackedStringArray("4.7", "GL Compatibility")
|
config/features=PackedStringArray("4.7", "GL Compatibility")
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
boot_splash/show_image=false
|
||||||
|
boot_splash/bg_color=Color(0.984314, 0.945098, 0.87451, 1)
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,14 @@ var hold_panel: PanelContainer
|
|||||||
var game_actions: HBoxContainer
|
var game_actions: HBoxContainer
|
||||||
var reset_row: Control
|
var reset_row: Control
|
||||||
var resume_button: Button
|
var resume_button: Button
|
||||||
var restart_dialog: ConfirmationDialog
|
|
||||||
var reset_dialog: ConfirmationDialog
|
|
||||||
var reset_status: Label
|
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:
|
func _ready() -> void:
|
||||||
set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
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))
|
column.add_child(UI.label(Version.BUILD_LABEL, 9, Palette.MUTED))
|
||||||
|
|
||||||
restart_dialog = ConfirmationDialog.new()
|
_build_confirm()
|
||||||
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)
|
|
||||||
|
|
||||||
reset_dialog = ConfirmationDialog.new()
|
|
||||||
reset_dialog.title = "Reset progress?"
|
func _build_confirm() -> void:
|
||||||
reset_dialog.dialog_text = "This clears completed rooms and unlocked guests. Settings stay."
|
confirm_layer = ColorRect.new()
|
||||||
reset_dialog.confirmed.connect(_on_reset_confirmed)
|
confirm_layer.color = Color(0.18, 0.12, 0.08, 0.62)
|
||||||
add_child(reset_dialog)
|
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:
|
func open_sheet(mode: String) -> void:
|
||||||
@@ -302,7 +369,12 @@ func _close() -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_restart() -> 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:
|
func _on_lobby() -> void:
|
||||||
@@ -311,7 +383,38 @@ func _on_lobby() -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_reset() -> 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:
|
func _on_reset_confirmed() -> void:
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ static func round_button(icon_path: String, size: int = 48) -> Button:
|
|||||||
var b := Button.new()
|
var b := Button.new()
|
||||||
b.custom_minimum_size = Vector2(size, size)
|
b.custom_minimum_size = Vector2(size, size)
|
||||||
b.icon = load(icon_path)
|
b.icon = load(icon_path)
|
||||||
b.expand_icon = false
|
b.expand_icon = true
|
||||||
b.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
b.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||||
b.alignment = HORIZONTAL_ALIGNMENT_CENTER
|
b.alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||||
b.add_theme_stylebox_override("normal", _round_style(Palette.PAPER))
|
b.add_theme_stylebox_override("normal", _round_style(Palette.PAPER))
|
||||||
@@ -186,6 +186,12 @@ static func _round_style(color: Color) -> StyleBoxFlat:
|
|||||||
s.corner_radius_top_right = 26
|
s.corner_radius_top_right = 26
|
||||||
s.corner_radius_bottom_left = 26
|
s.corner_radius_bottom_left = 26
|
||||||
s.corner_radius_bottom_right = 26
|
s.corner_radius_bottom_right = 26
|
||||||
|
# Keep high-resolution icons near their original visual size inside the
|
||||||
|
# round button instead of letting expand_icon fill the whole control.
|
||||||
|
s.content_margin_left = 10
|
||||||
|
s.content_margin_right = 10
|
||||||
|
s.content_margin_top = 10
|
||||||
|
s.content_margin_bottom = 10
|
||||||
s.shadow_color = Color(0.29, 0.20, 0.14, 0.12)
|
s.shadow_color = Color(0.29, 0.20, 0.14, 0.12)
|
||||||
s.shadow_size = 4
|
s.shadow_size = 4
|
||||||
s.shadow_offset = Vector2(0, 2)
|
s.shadow_offset = Vector2(0, 2)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class_name Version
|
class_name Version
|
||||||
extends RefCounted
|
extends RefCounted
|
||||||
|
|
||||||
const NUMBER := "0.5.1-alpha"
|
const NUMBER := "0.5.3-alpha"
|
||||||
const CODENAME := "QA & Stability"
|
const CODENAME := "Crisp Icons"
|
||||||
const BUILD_DATE := "2026-12-02"
|
const BUILD_DATE := "2026-12-02"
|
||||||
const BUILD_LABEL := "v0.5.1-alpha · build 2026-12-02"
|
const BUILD_LABEL := "v0.5.3-alpha · build 2026-12-02"
|
||||||
@@ -43,11 +43,47 @@ func _run() -> void:
|
|||||||
_test_daily(save)
|
_test_daily(save)
|
||||||
_test_frames(save)
|
_test_frames(save)
|
||||||
_test_game_data(save)
|
_test_game_data(save)
|
||||||
|
_test_icons()
|
||||||
|
|
||||||
_reset_to_clean(save)
|
_reset_to_clean(save)
|
||||||
_finish()
|
_finish()
|
||||||
|
|
||||||
|
|
||||||
|
func _test_icons() -> void:
|
||||||
|
_note("5. icon assets")
|
||||||
|
# Load at runtime so UI.gd does not compile before the autoload exists.
|
||||||
|
var ui_script = load("res://scripts/UI.gd")
|
||||||
|
_check(ui_script != null, "UI script missing")
|
||||||
|
if ui_script == null:
|
||||||
|
return
|
||||||
|
|
||||||
|
var dir := DirAccess.open("res://assets/icons")
|
||||||
|
_check(dir != null, "icons directory missing")
|
||||||
|
if dir == null:
|
||||||
|
return
|
||||||
|
|
||||||
|
var count := 0
|
||||||
|
for file in dir.get_files():
|
||||||
|
if not file.ends_with(".svg"):
|
||||||
|
continue
|
||||||
|
count += 1
|
||||||
|
var texture = load("res://assets/icons/" + file)
|
||||||
|
_check(texture != null, "icon failed to load: %s" % file)
|
||||||
|
if texture != null:
|
||||||
|
var size: Vector2 = texture.get_size()
|
||||||
|
_check(size.x >= 96 and size.y >= 96, "icon too small: %s (%dx%d)" % [file, size.x, size.y])
|
||||||
|
_check(count >= 10, "expected the full icon set")
|
||||||
|
|
||||||
|
var button = ui_script.round_button("res://assets/icons/arrow-left.svg", 44)
|
||||||
|
_check(button.expand_icon, "round buttons should expand high-res icons")
|
||||||
|
var style := button.get_theme_stylebox("normal") as StyleBoxFlat
|
||||||
|
_check(style != null and style.content_margin_left >= 8, "round buttons should use margins to keep icon size")
|
||||||
|
var small_icon = ui_script.icon("res://assets/icons/settings.svg", 18)
|
||||||
|
_check(small_icon.texture.get_size().x >= 96, "UI.icon should use high-res textures")
|
||||||
|
button.free()
|
||||||
|
small_icon.free()
|
||||||
|
|
||||||
|
|
||||||
func _finish() -> void:
|
func _finish() -> void:
|
||||||
if failures == 0:
|
if failures == 0:
|
||||||
print("QA CORE: PASS")
|
print("QA CORE: PASS")
|
||||||
|
|||||||
@@ -101,6 +101,29 @@ func _test_settings(main, save) -> void:
|
|||||||
toggles["double_tap_place"].button_pressed = true
|
toggles["double_tap_place"].button_pressed = true
|
||||||
_check(bool(save.get_setting("double_tap_place")), "double-tap toggle should update SaveGame")
|
_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")
|
_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()
|
main.close_settings()
|
||||||
await process_frame
|
await process_frame
|
||||||
_check(not main.settings_sheet.visible, "settings sheet should close from home")
|
_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.resume_button.text == "Resume", "game settings should use Resume")
|
||||||
_check(main.settings_sheet.game_actions.visible, "game settings should show Restart/Lobby")
|
_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")
|
_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()
|
main.close_settings()
|
||||||
await process_frame
|
await process_frame
|
||||||
_check(not main.settings_sheet.visible, "settings sheet should close from game")
|
_check(not main.settings_sheet.visible, "settings sheet should close from game")
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ func _run() -> void:
|
|||||||
main.open_settings("home")
|
main.open_settings("home")
|
||||||
await _settle()
|
await _settle()
|
||||||
_save("res://screenshots/settings.png")
|
_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.close_settings()
|
||||||
|
|
||||||
main.show_screen("guest_book")
|
main.show_screen("guest_book")
|
||||||
|
|||||||