- Fix a bug that prevented the alert sound from playing in timed Story Mode challenges.
- Extend the visual alert (colored time) to the last 15 seconds (previously 5). The sound alert remains limited to the last 5 seconds.
- Switch from yellow to orange for the timer when 5 seconds are left and the sound alert starts playing.
- Significant code simplification (tested for non-regression in soccer, FFA, story mode timed challenge)
* WIP RPC support
* Might have windows support now, don't peek
* Windows support
* RichPresence: __SWITCH__ => DISABLE_RPC (for MOBILE_STK support)
* RichPresence: Handle JSON strings according to spec, support for addons icon
* RichPresence: use translated difficulty name
* RichPresence: disable when client_id=-1
* RichPresence: thread connection, show server name on RPC
* RichPresence: destroy on close
* RichPresence: don't compile methods at all if DISABLE_RPC
* RichPresence: fix windows compile (untested)
* RichPresence: fix for mac
* RichPresence: Linux needs MSG_NOSIGNAL still
* RichPresence: fix memory leaks, don't spam update while not connected
* RichPresence: free thread on terminate
* RichPresence: handle initial registration
* RichPresence: fix compiler warning
The player kart, difficulty, game mode, and reverse are no longer static values
Also ensure that there is a value pressed when exiting demo via a keypress
* Add in-game high score selection screens, based on the ghost replay screens
Its functionality is basic for now, mainly to let players have a central place to view
their high scores
Other things to improve:
* Allow sorting the high score entries by criteria
* Allow deleting high score nodes and possibly entries
* Use better icons
* The string for the high scores title in the track info screen can now be translated
* Refine in-game high score selection screens
Includes:
* High score info dialog now shows track and setup information
* A race can be started with the displayed setup, using the current player and kart
* Icon to access the screen now placed between the tutorial and achievements buttons
* It is possible to delete a specific high score group or all of the high score groups
* Change the order of some columns to make them easier to hide for non-linear modes
* The list will now filter out enpty high score groups
* Replace bomb icon (as used in the help menu) with the full object version from STK 0.8
It has been edited to remove most of the transparency in the object itself
* Implement column clicking in the high score selection screen, and minor GUI fixes
Note that high score entry sorting is not yet working properly
Includes:
* Top right buttons replaced by button bar containing them; fixes unreliable clicking
* High score manager has some one-line functions moved into its header file
* High scores can be sorted by some criteria
* Sorting is done before every time high scores are saved
* Fix header define names for the high score info dialog
* Fix high score sorting, reorganize its associated code
* More refinements to the high score selection screen
Includes:
* Clearing high scores no longer causes memory leaks
* The manual refresh button has been removed, as it has been deemed useless
* Remove unused header files for the high scores information dialog header
* The high scores box in the track information screen no longer has '='
* Fix pressing escape key in the high score information dialog crashing the game
Also remove unused widget variables and unnecessary function overrides
* Do not write high scores for races that have 0 laps and/or have no real karts
* Allow passing a parameter to prevent high scores from temporarily being written
This setting lasts only as long as the game runs; it is useful during track and
kart animation testing, where unwanted high score entries should not be written
* Force update sources.cmake, as new source files are being added for high scores screens
* Fix memory leak and strings
Co-authored-by: Benau <Benau@users.noreply.github.com>
* Open the confirm dialog if exiting the grand prix editor with changes by escape key
* When launching the tutorial, use the last used device instead of the first keyboard
* When launching story mode, use the last used device instead of the first keyboard
* Make the kart color selection dialog more consistent with other dialogs
Includes:
* Add an icon button bar with containing actions to apply changes or to cancel them
* The kart only shows its straight frame, without animation; it is slightly smaller
* Adjust the vertical space between widgets, to try keeping the kart size larger
* Use a button bar for the video settings and custom camera settings dialog
* log the goal on server once a player scored in soccer
* show a message once a player made a goal in soccer
* bug fix, add comments
* remove server log