Commit Graph

728 Commits

Author SHA1 Message Date
Richard Qian
f136c6fe36
In-game high scores management (#4483)
* 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>
2021-02-12 11:12:43 +08:00
Richard Qian
9fdec3067e Fix a minor issue for the comment with difficulty not showing SuperTux mode 2021-02-11 12:06:33 -06:00
Benau
5d5f01b4b5 Add backward distance in camera setting gui 2021-02-06 09:13:36 +08:00
Deve
a7a1c8abca Some work with scale rtts.
IMO auto scale doesn't have much sense on desktop computers, because advanced lighting was enabled by default for a long time and graphics level 3 should be fast enough as it is. And still now rtts scale it's easily configurable in options.

I fixed deactivated "render resolution" spinner when you enter graphics options when advanced lighting is disabled.

I also added a function that reads dpi on android and it sets rtts scale based on this value. SDL is not initialized yet in this place, so getDisplayDPI() is not possible.
2021-01-19 23:58:51 +01:00
QwertyChouskie
6d3ee0ce31 Add Render resolution (scale_rtts) slider with auto-mode
Auto mode adjusts based on your display's DPI in order to hit a target DPI.  Currently it will default to Always Full for render resolution, but High Quality or even Quality might make a good default, community testing is needed.
2021-01-19 00:12:20 +01:00
riso
ce13648721 camera settings 2020-12-23 21:39:30 -06:00
Richard Qian
0db8d50359
More configurable music (loop end support, different race result music) (#4445)
* Allow setting [again] track reverse mode via command line

* Make composer field in music information files optional

* Add support for loop end of music

* Remove print statements used for checking current music play time

* Support playing different music on race results screen

Also make them configurable in stk_config.xml

* Allow configuring grand prix win/lose and feature unlocked music in stk_config.xml

* Fix coding indentation style

* Fix warning when scrolling track screenshots in grand prix results

* Display the rank a player kart finishes in if not in 1st place
2020-12-21 02:14:52 +01:00
Benau
0e1732c45d Implement auto acceleration for steering wheel from mobile control 2020-12-08 08:51:30 +08:00
Benau
85984d143a Only count approved addons for indicator 2020-12-01 16:17:47 +08:00
Benau
8eb318675d Allow saving custom camera settings 2020-11-19 12:17:01 +08:00
dulsi
e2d4936056
Add gamerzilla support to achievements. (#4386)
* Add gamerzilla support to achievements.

* Move all gamerzilla code into one file. Should we want to support another achievement system like Steam, it can be isolated to the WebAchievementsStatus class.

* Add WebAchievementsStatus files.

* Add version number to achievements file. Update graphics. Generate achievement list from internal system.
2020-10-31 11:32:40 +08:00
Benau
618eb87df0 Use TCP stun for more reliable IP type detection 2020-09-03 13:24:49 +08:00
Benau
bdbf961e76 Allow showing online addon kart as tux when live join is on 2020-08-23 16:38:59 +08:00
Benau
c091574c64 Update default stun list 2020-08-16 14:16:26 +08:00
Benau
fe8a6fb6a9 Update default value of screen keyboard status after SDL2 is used 2020-07-15 00:21:38 +08:00
Benau
f202bcd48c Remove unused code 2020-07-12 10:26:37 +08:00
Luffah
0a6a487b29
add camera settings in option screen (#4273)
* add camera settings in option screen

* Remove camera settings (distance, backward/forward angles, smoothing) from kart characteristics

Co-authored-by: luffah <luffah@runbox.com>
2020-07-10 11:39:19 +08:00
Benau
d1ab5f8aaf Allow remembering network splitscreen option when opening STK 2020-06-16 09:46:56 +08:00
Benau
c77a695f35 Add back the default stun servers list to user config
Now we can remove stun server in c8d9383d6a
2020-05-07 15:23:12 +08:00
Benau
1bd34e338e Allow showing or hiding soccer player list with F7 in artist debug mode 2020-04-29 01:09:33 +08:00
luffah
914f1a6a77 add user option (config.xml) to substitute look back camera by a camera that follows the ball in soccer mode 2020-04-16 18:50:35 +02:00
luffah
2ca815ace4 add top view for spectator mode & remove gui item view for this camera mode 2020-04-16 16:24:56 +02:00
David Carlier
12afc23e4e NetBSD build few updates. 2020-04-05 16:10:34 +01:00
Benau
364936e37b Allow getting stun server list using SRV records 2020-03-15 10:05:13 +08:00
Benau
6a3e606c2d Turn race manager into a singleton get for 2 processes 2020-02-28 09:42:44 +08:00
Benau
26dbf67d53 Ask if user want to play tutorial when new profile is created 2020-02-02 16:32:57 +08:00
Benau
1e9dab821c Allow pre-set IP type in config.xml 2020-01-31 13:20:11 +08:00
Benau
e18bcd62e6 Add IPv6 LAN server discovery
Broadcasting to windows doesn't work as the windows firewall seems
to block all IPv6 multicast
2020-01-27 13:48:57 +08:00
Benau
fcdec55bc1 Add tools for advanced IPv4 and IPv6 detection 2020-01-19 10:13:17 +08:00
Benau
7b3559ba69 Add IPv4 only stun for later usage 2020-01-19 01:00:48 +08:00
David Carlier
d97a1ce1ef removing compilation warning explicitly showing enum origin
to avoid confusions even though they have same values.
FreeBSD recognised as os in stats point of view.
2020-01-18 13:32:50 +00:00
Benau
44d2127800 Always use default name Player in mobile STK 2019-12-29 10:44:13 +08:00
Benau
4cb3383c4a Remove the unneeded manage memory option in request 2019-12-01 01:19:51 +08:00
Benau
13975cc5db Use std::shared_ptr for Request to avoid leaking 2019-11-30 16:01:31 +08:00
Benau
8799369066 Rename config name which is not compatible with 1.0 2019-11-28 16:44:01 +08:00
Alayan
658345c9ff Improve in-race chat
* Limit in-race chat to 3 lines instead of 5
* Add an option to disable in-race chat (while keeping lobby chat)
2019-11-07 22:25:04 +01:00
Alayan-stk-2
770d02b19b
Compute and display a story mode timer (#4121)
This is the result of my previous work, with a port of the timer version that was developed for a 1.0 mod. It has been used by several players so no major issue should exist, though UI and other elements may require adjustment to smooth some rough edges.

It features both a casual story mode timer storing the total time to complete the story mode (on by default) and a "speedrun" timer (off by default). The casual timer is paused whenever the player exits story mode, and supports play over multiple sessions. It is only displayed in the overworld and during challenges ; while the speedrun timer is permanently displayed.

Fix #2907
2019-11-01 13:25:27 +01:00
Benau
62d8a17152 Allow setting default config value inside stk-code
Share the restore code with android and iOS
2019-10-22 01:43:09 +08:00
Benau
1a7a8bdc14 Make karts powerup in gui an option 2019-10-18 12:03:36 +08:00
Luffah
aa9b2e7008 Add an option to put the minimap on the center of screen. (#4087)
* Add an option to put the minimap in the center of screen.
2019-10-17 21:03:46 +02:00
Deve
fc8f6a218e Add possibility to use half vsync 2019-09-28 01:43:26 +02:00
riso
0547e1e469 Add options to control the number of red/blue AI in soccer mode (#4063)
* 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
2019-09-23 21:59:17 +08:00
Benau
48ba0aaf27 Rearrange skin structure for usage in addons folder 2019-09-21 11:33:11 +08:00
Benau
285e4e7be5 Remove stun servers not supporting ipv6 2019-08-19 00:12:28 +08:00
Benau
ef68f8377a Move creation of music information after downloading assets 2019-07-24 01:35:40 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
5537959b19 Update hardware stats for iOS 2019-07-16 13:42:16 +08:00
Benau
4f1361b71f Fix encoding for default username 2019-06-29 09:38:36 +08:00
Benau
b3200937da Allow getting unicode environment variables in windows 2019-06-29 00:31:30 +08:00
Benau
cbf55b6ecf Make all ofstream creation utf8 path aware 2019-06-28 22:54:02 +08:00