* 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>
* Add options to control the number of red/blue AI in soccer mode (offline)
* fix a bug related to the upper bound when AI num=0 and trying to lower the number
* forgot to fix this
* remove the Balanced/Custom spinner
* improve the AI number spinner's behavior at lower bound
* Hide blue ai number setting if not soccer
* move getting red/blue players number to function TrackInfoScreen::getRedBluePlayerNumber()
* Tab to Space
* rename local variable m_xxx to num_xxx
* bug fix
* improve the default AI number: try the previously used one, if cannot use the previous, recalculate the AI number using balanced
* added widget to track info screen to select between Free-For-All and Three Strikes Battle
* setting AI to zero and setting time target to 2 minutes for testing
* setting also hitcapture limit to prevent immediate race end
* setting m_count_down_reached_zero to false in ffa reset to allow starting a new race after the previous ended through time limit
* integrated necessary adjustments and made possible to set time target
* removed unused spinner variable
* use translations
* centralized is_soccer and show_ffa_spinner variables
* setting target value spinner visible/invisible depending on ffa game type
* using no hittarget and fix for this in free for all mode
* set use_highscores to false for FFA
* disabling AI for FFA
* disable hit limit icon for FFA if no hit limit is set ( = 0 )
* changed icon and name of three strikes battle to only battle in race setup screen
* set AI to Battle AI if mode is FFA
* added config parameters for FFA
* added define which can be used to enable FFA AI
* resolved merge conflict
* moved ffa options higher
* fix for setting ai karts
* improved m_show_ffa_spinner and m_is_soccer
* removed code for disabling widgets for FFA AI
* implemented requested changes
* moved soccer race options to track info screen
* using one spinner for both target mode values
* merged pointamount-spinner with lap-spinner and renamed it to target-value-spinner
* fixed identation
* small fix in track_info screen
* storing target value when value was changed
* making sure tartet spinners are invisible when not needed; small adjustments
* some test with solving space issues on small resolutions
* Revert "some test with solving space issues on small resolutions"
This reverts commit f6b6526681.
* test with collapsing widgets
* removed deleting childs of widgets in track_info_screen
* readded deleted spacer
* collapsing target type widgets is now working
* made target type spinner wider to have enough space for text in it on small resolutions
* re-added setting target value to invisible/visible
* using new collapsing widget function in track info screen for target type widgets