version 1.0.0 - #34
Merged
Merged
Conversation
…s Menu. Removed copy button in Host menu -> AppMessage CopyToClipboard removed. Finished rules menu.
DEBUG : Allow for 1 player to start the game Fix : Grey borders of images are gone Fix : Lobby_menu.png was actually a jpeg ... now png Mailmap: Add 2 more konrad's emails
`cargo run --features wiz_debug` as a flag
… version-1.0.0
work with 1.85.0)
Owner
Author
|
Since the development and testing in this branch were made concurrently, there is no need for a review. But I'm asking copilot for just in case |
Owner
Author
|
Server side CI check failed because alsa is missing, no time to change that, locally all the checks passed |
There was a problem hiding this comment.
Pull request overview
This PR bumps the project to v1.0.0 / Rust 2024 and introduces major gameplay UI upgrades (avatars, scoreboard, audio), along with new animation behavior and assorted refactors across client/server.
Changes:
- Add avatars + shard animations to the table UI and introduce a new scoreboard UI (including game-end board).
- Add a Rodio-based audio system (music + SFX) with an Options menu for volume control.
- Refactor gameplay rendering into a
GameViewand update related message routing/animation helpers.
Reviewed changes
Copilot reviewed 38 out of 93 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ui_element_traits.rs | Adds ResizableDynHeight trait used by the scoreboard layout. |
| src/server.rs | Assigns random avatar kinds to players and minor cleanup. |
| src/main.rs | Small comment change (typo introduced). |
| src/gameplay_ui/mod.rs | Introduces GameView and routes gameplay messages; adds end-game overlay behavior. |
| src/gameplay_ui/table/mod.rs | Adds avatar rendering and avatar-related messages/SFX. |
| src/gameplay_ui/table/avatar.rs | New avatar UI element with animations, shards, and click interactions. |
| src/gameplay_ui/scoreboard.rs | New scoreboard UI + bidding/trump selection panels and end-game board view. |
| src/gameplay_ui/table/middle/card_stack/* | New played-cards history interactions/animations and SFX hooks. |
| src/gameplay_ui/table/middle/card_deck/* | Refactors glow + trump-card animations and adds SFX. |
| src/gameplay_ui/hand/* | Refactors hand/card interaction to be message-based (Card) rather than index-based; adds SFX and turn gating. |
| src/client/audio.rs | New audio subsystem (music + SFX loading/playback + volume control). |
| src/client/views/* | Adds Options menu, rewires gameplay rendering, adds disconnect banner. |
| src/api.rs | Adds Avatar types, TextColor helper, Card::img_path()/glow_path(), and ServerMessage::ConnectionClosed. |
| src/animation.rs | Renames/adjusts animation core fields and adds new “reached” callbacks + infinite-start helpers. |
| rust-toolchain.toml | Pins toolchain to 1.90.0. |
| Cargo.toml | Version bump to 1.0.0, edition 2024, adds rodio. |
| DOCUMENTATION.md / README.md / REQUIREMENTS.md | Documentation updates for running/building and project requirements. |
Comments suppressed due to low confidence (9)
src/main.rs:1
- Typo in comment: "widndow" should be "window".
src/gameplay_ui/table/mod.rs:88 self.find_avatar(player).unwrap()will panic if anAvatarMessage::PlayShardis received for an id that isn't present inself.avatars(e.g., desync/reconnect timing). Please handle theNonecase gracefully (skip SFX, log, etc.) instead of unwrapping.
src/gameplay_ui/table/middle/card_deck/glow_card.rs:70CardStackGlow'sglow_animationis never started, soglow_animation.next_frame()won't animate and the glow opacity stays static. Consider starting it innew()(e.g., viastart_infinite()) or when a glow is first shown.
src/api.rs:361Card::glow_path()returns the literal string "NOT VALID" for wizards. This will still be passed toiced::widget::image(...)and may result in failed asset loading/log spam (or worse, depending on image loading behavior). Prefer returning an empty string/Optionand skipping the glow image when no glow should be shown.
REQUIREMENTS.md:27- Docs/tooling disagree on required Rust toolchain version: REQUIREMENTS.md says rustc 1.85.0, but the repo pins 1.90.0 in rust-toolchain.toml and DOCUMENTATION.md mentions enforcing 1.90.0. Please align these (either update the requirement doc or pin to 1.85.0).
- [ ] **(C1) The project must be compilable with rustc stable 1.85.0 (edition=2024).**
DOCUMENTATION.md:43
- Grammar issue: "Unit are located" should be "Unit tests are located" (or similar).
Unit are located in `src/gamelogic/game.rs` (UI testing was done differently).
src/ui_element_traits.rs:55
- Doc comments for the new
ResizableDynHeighttrait contain multiple typos (e.g., "Implmenet", "interference", "an resize", "occures"), which makes the API docs harder to read. Please correct the spelling/grammar.
src/gameplay_ui/table/mod.rs:59 build_avatarsappends toself.avatarswithout clearing it first. IfStartGame(or similar) can be triggered more than once (reconnect/new game), this will duplicate avatars and break indexing/layout. Consider clearingself.avatarsbefore pushing, or rebuilding from scratch.
src/client/views/menu.rs:39- The disconnected banner sets
.color(red)and then calls.white(), which overrides the red color and makes the warning not red. Remove the.white()call (or apply.white()only where no explicit color is set).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.