opensuspect-legacy
opensuspect-legacy copied to clipboard
Vote screen and revamped chatbox
- Refactored the chatbox so the same messages can be seen in multiple places (uses playermanager.gd as a proxy)
- Created a rudimentary vote UI with an integrated chatbox. The vote UI is capable of allowing players to vote for each other, but nothing is done with these votes yet.
- Added an interactpoint below the spawn in the test map to access the vote UI
- Chat button in lobby updated to use a resource
TODO
- Integrate player icons into the buttons
- Add general responsiveness (showing who's voted already, showing who's voted for who, adding a timer, etc.)
- Implement a skip option
NOTES
- Vote UI stuff is stored in
res://assets/ui/lobbyui/voteui/ - Chatbox is now basically a popup wrapper for chatboxbase, which is where all of the chatbox specific functions have been moved. It was split apart so that the chatbox could be copy pasted into other UIs (notably the vote UI). It is stored in
res://assets/ui/common/elements/chatboxbase/ - Chat related functions were added to the player manager so that a chatbox could be instanced anywhere and still work.
HOW TO REVIEW:
- Test multiplayer (client and host)
- Check build status
- Check UI
- Check the code
- Check build artifacts
Marked this ready for review as this code might as well be in the game already. The vote UI is not done, but it is nice to have even as a placeholder.