Skip to content

Add ESC collect for reward dialogues and improve game status UI#21

Merged
MBurchard merged 2 commits intomainfrom
feature/esc-collect
Mar 26, 2026
Merged

Add ESC collect for reward dialogues and improve game status UI#21
MBurchard merged 2 commits intomainfrom
feature/esc-collect

Conversation

@MBurchard
Copy link
Copy Markdown
Owner

@MBurchard MBurchard commented Mar 26, 2026

Summary

  • Add ESC key support for reward/collect dialogues: hooks ScreenManager.Update() for key detection, tracks AnimatedRewardsScreenViewController instances via Awake/OnDestroy, and calls OnCollectClicked() to claim rewards instead of just dismissing
  • Replace game running status indicator with emoji (🚀/💤) and explicit text ("Game is running" / "Game is not running")

Test plan

  • macOS: ESC on quest reward dialogue triggers collect and closes
  • Windows: Same test with ESC on reward dialogue
  • Game status shows 🚀 when running, 💤 when not

- Hook ScreenManager.Update() for per-frame key detection via Input.GetKeyDownInt, with LateUpdate
  fallback
- Track AnimatedRewardsScreenViewController instances through Awake/OnDestroy hooks for efficient
  per-frame lookup
- On ESC, call OnCollectClicked() to claim rewards and close the dialogue, not just
  GoBackToLastSection() which dismisses without collecting
- Works for both ClaimOnShow (already claimed, ESC just closes) and ClaimOnCollect (ESC triggers
  the actual claim)
@MBurchard MBurchard merged commit 1a4687f into main Mar 26, 2026
1 check passed
@MBurchard MBurchard deleted the feature/esc-collect branch March 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant