9 Commits

Author SHA1 Message Date
Kieran Kihn
1b52c87b0e feat(ui): add scroll support for hand cards 2025-12-18 23:34:24 +08:00
Kieran Kihn
150e29c25c feat(ui): add dynamic scaling support
- Introduced `scale` property across components for responsive design.
- Adjusted dimensions and positions dynamically based on scale.
- Enhanced flexibility for varying display resolutions.
2025-12-18 11:42:29 +08:00
Kieran Kihn
6276dbdea3 fix(ui): reset selected-card-index on card draw button click 2025-12-17 23:37:36 +08:00
Kieran Kihn
b0212161ac fix(ui): simplify GamePage animation logic
- Replaced `cycle` property with constant `base-angle`.
- Removed `Timer` and associated counter logic.
- Enabled infinite animation with `iteration-count: -1`.
2025-12-11 11:18:10 +08:00
Kieran Kihn
3fa3dbcb2a fix(ui): bind turn state to TouchArea and player component
- Enabled `TouchArea` based on the current player's turn.
- Updated player component to reflect dynamic turn state.
2025-12-10 22:30:44 +08:00
Kieran Kihn
955aa0956d feat(ui): add AFTER_GAME state and restart flow in GameUI
- Introduced `AFTER_GAME` state to handle post-game logic.
- Updated `GameUI` to show restart prompt when the game ends.
- Modified `StartPage` and `MainWindow` to support restart behavior.
- Adjusted `endGame` method to transition to `AFTER_GAME`.
2025-12-10 22:30:25 +08:00
Kieran Kihn
df6bbee5d7 feat(ui): add GamePage with player actions and game state display
- Integrated `GamePage` into `MainWindow` for active game state.
- Added player actions: play card, draw card, and call UNO.
- Implemented discard pile, game direction, and current color indicators.
- Designed player hand and opponent details with interactive components.
2025-12-10 21:47:01 +08:00
Kieran Kihn
79c4170aa8 refactor(ui): reorder properties in StartPage and ConnectPage for consistency 2025-12-10 21:46:44 +08:00
Kieran Kihn
592ae1ad23 refactor(ui): update Slint UI paths and update CMakeList.txt accordingly 2025-12-09 20:17:12 +08:00