Commit Graph

2982 Commits

Author SHA1 Message Date
Alayan-stk-2
80555f4905 Display soccer timer after a goal (#3411)
* Use shouldDrawTimer overrides for tutorial and soccer worlds

* Add isActiveRacePhase

* Update shouldDrawTimer

* Remove duplicate check

It also allows displaying time in soccer after a goal
2018-08-29 18:33:01 -04:00
Benau
8fc2bdcc3f Show game started info in server screen with icon 2018-08-28 14:43:48 +08:00
Alayan-stk-2
8e17965465 Add default 1280x720 resolution in case irrlicht don't report it (#3405) 2018-08-27 19:31:21 -04:00
Benau
61e37bc60f Use zero for unused values in vote for FFA and CTF 2018-08-27 15:41:15 +08:00
Benau
0f39add432 Convert time-related code in network to 64bit to avoid overflow 2018-08-27 13:49:11 +08:00
Benau
e5925a53b7 Use the network timer synchronizer to start game 2018-08-27 09:16:35 +08:00
auria.mg
817b576399 Fix crash when leaving ghost replay screen 2018-08-26 21:07:56 -04:00
hiker
b3af6a0473 Fixed compiler warnings. 2018-08-27 08:53:58 +10:00
Deve
94400b12d6 Set multitouch device scale depending on actual screen size 2018-08-25 23:42:05 +02:00
Alayan-stk-2
4484bd961a Add kart icons to the ghost replay list (#3392)
* Add a hide multiplayer replays checkbox

* Hide player number column ; add kart icon column

Enabling the icon display creates issues in the list widget layout, however.

* Fix formatting issue when an icon is displayed in only some cells

* Display "?" icon when kart model is unknown

This can happen with uninstalled addons, old replays with removed official karts, etc

* Add helper functions for icons in replay info dialog

* Add kart icons to replay info dialog

* Delete m_icon_bank in tearDown
2018-08-24 19:34:42 -04:00
Deve
38ed061d71 Fixed up/down button for inverted buttons 2018-08-25 00:45:37 +02:00
Deve
9d3c9f8f0d Use smaller margin for up/down button 2018-08-25 00:11:05 +02:00
Benau
8363dd42d3 Fix server owner name sorting 2018-08-23 09:01:11 +08:00
Benau
bc83e181ff Remove more space before ? 2018-08-23 07:48:45 +08:00
Alayan-stk-2
024e17aa97 Display time-trial and egg hunt times up to the ms (#3391)
* Add function to get time display precision for current race mode

* Display time-trials times and highscores up to the ms

* Add comment
2018-08-22 19:36:21 -04:00
Deve
9908b83f05 Fixed random kart in overworld 2018-08-22 21:10:28 +02:00
Benau
d984409c6b Remove --online and clarify global networking 2018-08-21 09:52:54 +08:00
Alayan-stk-2
8039a18aec Fix #2776 (#3386) 2018-08-20 20:51:04 -04:00
Benau
73ac4f165b Add indication for collected flags in GUI and map 2018-08-21 01:31:49 +08:00
Benau
2fa233179c Remember num laps only in race mode 2018-08-20 15:14:08 +08:00
Alayan-stk-2
da2294d8ac Fix #3306 (#3384) 2018-08-18 21:32:05 -04:00
Deve
3fe2340628 Use --no-sound for created server 2018-08-18 23:34:54 +02:00
Deve
474a243890 Enable server creation on Android 2018-08-17 22:36:56 +02:00
Benau
5104ffe0eb Remove unneeded . for fetching ranking message 2018-08-17 14:08:42 +08:00
Benau
9905ebe09d Add the required GUI code for CTF 2018-08-17 12:54:38 +08:00
Benau
a2af7127e7 Reset the font scale after drawing with it 2018-08-16 15:25:58 +08:00
Benau
03728708cd Rename soccer team to kart team for CTF 2018-08-15 15:13:55 +08:00
Benau
8aab1c0a69 Use Free-For-All for name instead 2018-08-13 09:00:37 +08:00
Benau
64595a7b18 Initial work on FFA in network 2018-08-13 00:59:20 +08:00
Benau
c8c0e599db Try to remember server creation option 2018-08-12 12:46:45 +08:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
3e95feeb0b Translate network message in main thread 2018-08-10 16:38:38 +08:00
Alayan-stk-2
83ff426c53
Fix default sorting 2018-08-08 03:15:47 +02:00
Alayan-stk-2
f5a308f94b Fix list sorting (#3368)
* Manage if the sort should be default, ascending or descending from the base widget

* Update all list sorting to be in sync with the list widget sort buttons
2018-08-05 18:03:37 -04:00
Alayan-stk-2
3b3990a196 Use a stable sort for replay list sorting (#3364)
* Use a stable sort for replay list sorting

* Add default multi-criteria sorting for ghost replays list
2018-08-04 20:37:29 -04:00
Benau
7538f36bed Remove compiler warnings 2018-07-26 08:54:38 +08:00
Benau
f88ad497e9 Fix ticks time mixed up 2018-07-26 01:02:41 +08:00
Deve
ea13d97f6b Allow to specify minimum number of players in command line 2018-07-22 22:48:45 +02:00
Benau
c4ae3dff69 Set the min max values for each mode properly 2018-07-20 01:42:31 +08:00
Benau
639883ca48 Display the number of players required to start a game for owner-less server 2018-07-19 15:26:15 +08:00
Benau
7ebd1fabd9 Add exception handling to prevent player hacking network string 2018-07-19 14:23:35 +08:00
Benau
6423925718 Hide the low-level extra server info from command line 2018-07-19 01:08:26 +08:00
Benau
5e7ec89002 Fix more override warnings 2018-07-19 00:35:56 +08:00
Benau
b979d0db71 Fix change team icon path 2018-07-14 15:55:03 +08:00
Benau
06bcb13590 Allow changing soccer team in lan or private servers 2018-07-14 15:16:54 +08:00
Benau
9fbfe0588f Make network tracks screen usable for all game modes 2018-07-14 00:40:53 +08:00
Benau
23e5dace40 Allow starting soccer mode in network with goals limit 2018-07-13 21:29:26 +08:00
Benau
7e2d25d4a9 Disable in game menu to avoid timer desync if not racing in network game 2018-07-12 07:16:37 +08:00
Deve
8885119974 Don't crash if some textures are missing 2018-07-08 23:00:16 +02:00
Benau
9c3aae554e Remove fribidi and tinygettext in server only build 2018-07-07 01:22:26 +08:00
Benau
106d4c3c08 Fix #3340 2018-07-07 00:25:08 +08:00
Benau
d184c82daa Fix #3341 2018-07-06 23:50:16 +08:00
Benau
8931d90813 Merge remote-tracking branch 'origin/master' into curved 2018-07-06 23:49:04 +08:00
Benau
7a1355d415 Use smoothed transformation in minimap 2018-07-06 22:40:57 +08:00
Benau
e1dfe2e7e0 Show ping of remote players in lobby 2018-07-04 00:54:40 +08:00
Benau
674faad226 Fix #3259 2018-07-02 15:40:27 +08:00
Deve
ddd63771be Avoid empty header in edit gp screen.
Fixes #3329
2018-06-25 23:38:30 +02:00
Alayan-stk-2
ebc7940985 New options menu (#3323)
* Updated options UI file, new icon for language tab

Also updates the license file.

* Update the options screens to support the new layout

And add a language change screen.

* Don't overwrite the updates which happened in master.

* Add missing (new) password reset button

* Focus the list of actions binding rather than the tabbar in device options
2018-06-21 19:50:16 -04:00
Alayan-stk-2
1025bfe298 New help menu (#3322)
* Add vertical tabs to ribbon widget types

* Update GUI engine for vertical tabs

* New icons for the help menu

The slipstream icon is not great, it's here to have something now. It should be replaced by something better looking and more in STK's visual style.

* Updated help GUI

The git changelog is a bit misleading here, because the order of the items in the help menu has been revised too.

1)General (same)
2)Game modes (before : 3)
3)Powerups (before : 2)
4)Bananas (before : 5)
5)Story Mode
6)Kart classes
7)Multiplayer

* Update help screen code to handle the additional tabs

The hugely repetitive structure of one cpp/hpp per tab is kept here.

* Optimized version of new icons

Except for the slipstreaming one, as it should be replaced by a better one anyway.
2018-06-20 20:57:40 -04:00
hiker
4903252931 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-06-21 00:32:28 +10:00
QwertyChouskie
5d34488adc Donate and reset password buttons (#3252)
* First version of donation link and password reset buttons
The register screen still needs to be tweaked, though the GUI engine seems to be limted here.
Maybe dynamicly delete/re-create the widget?

* Fix mingw compilation

* Remove dead code

* minor cleanup

* Error handling, tweaks

* Fix ifdef for macOS

* Disable donate button on Android

* Use stk-config

* Implement LinkHelper::isSupported, fixes
2018-06-19 19:59:54 -04:00
hiker
5a74ed92e6 Fixed compiler warnings, and many coding style issues. 2018-06-20 08:22:23 +10:00
Alayan-stk-2
205d4b5626 Fix start/exit buttons not working in networking lobby (#3318) 2018-06-19 22:54:16 +02:00
hiker
7c6d3c9e42 Fixed compiler warnings. 2018-06-18 18:19:29 +10:00
Alayan-stk-2
e4b131fc78 Fix #3100 (#3299)
* Fix #3100

* Fix server only compilation
2018-06-13 19:43:18 -04:00
Alayan-stk-2
aee9e7ffa1 Unlock cutscene improvements (#3298)
* Don't display unlocked features out of screen when there are 4 to 6-7

And more regular spacing between them

* Remove outdated workaround

* Store the previous number of story mode point

* Allow to get the previous points from player profile

* Fix points estimation for finding unlocked tracks

- Updated to reflect that the player's points are now updated before this function
- Use the real previous number of points rather than trying to estimate the point change (otherwise, the points computation method would have to be duplicated here to not have a bug with GPs who give more points than single race challenges).
2018-06-12 20:36:33 -04:00
Deve
7d9adf5b93 Avoid a crash when user name is empty 2018-06-12 23:01:13 +02:00
auria.mg
e9becd283b More on #3242 2018-06-10 18:57:25 -04:00
auria.mg
fc89a1c244 Fix #3242 2018-06-10 18:45:37 -04:00
Deve
05572b0084 Disable addons manager for server-only build.
No need to spam with downloading icons for add-ons.
2018-06-09 00:38:10 +02:00
Deve
4db01b3c24 Avoid skipping soccer setup screen when using gamepad 2018-06-07 23:17:47 +02:00
Deve
4efafe5b2f Set focus when opening addons loading dialog 2018-06-07 22:55:00 +02:00
Deve
d2806161bb Allow to exit soccer setup screen with cancel button 2018-06-07 22:04:23 +02:00
Benau
495b80fb04 Remove newline from translation 2018-06-08 01:29:06 +08:00
Benau
9a32c075eb Use ngettext as translator suggests 2018-06-08 01:26:56 +08:00
Benau
96b27e427c Use a simpler english 2018-06-07 08:32:47 +08:00
Deve
a39c934d2b Fade background when general text field dialog is opened.
Fixes #3240
2018-06-06 22:11:10 +02:00
Benau
5e3a482588 Let player connecting in the middle of count down know 2018-06-07 01:34:25 +08:00
Deve
5e798ad6d4 Restore max texture size when reloading skin.
Fixes #3111
2018-06-05 23:55:31 +02:00
Benau
5da5a1972f Add auto start with timeout and player threshold for owner less server 2018-06-06 01:06:44 +08:00
Benau
2f00196420 Clarify voting phase 2018-06-04 14:23:29 +08:00
Benau
aa1bb720e3 No joinning of password-proected server if no password is given 2018-06-04 09:41:50 +08:00
Benau
2fbf0ab49f Avoid unnecessary slow down and mutex locking in server lobby 2018-06-04 09:28:38 +08:00
Benau
2fe50ba0c4 Make connect to server message stay longer if needed in lobby 2018-06-03 15:24:36 +08:00
Benau
490b865ddd Allow using %f with translated message 2018-06-03 15:15:25 +08:00
Benau
e122d045cc Allow showing player ranking in network user dialog 2018-06-03 15:08:52 +08:00
Benau
b43a5e4d18 Add AES encryption and validation for wan player 2018-06-02 12:28:29 +08:00
Deve
04170f5855 Avoid a crash on exit.
Still NetworkingLobby::unloaded() probably shouldn't be executed if networking screen is never opened, but initialize variables doesn't hurt anyway
2018-05-21 21:51:04 +02:00
Deve
5d840f6bf7 Move android stkgui files to its own directory 2018-05-21 21:30:24 +02:00
Benau
1a975f9ef4 Offer a way to know accurate ping to server within 3 seconds 2018-05-22 01:31:08 +08:00
Benau
34b8a07d80 Add proper line breaking 2018-05-21 11:19:18 +08:00
Benau
fdc299e073 Add player rankings in achievements 2018-05-20 01:15:39 +08:00
Benau
d2bf17e71a Show owner name as Official if official server hoster account is used 2018-05-16 16:07:08 +08:00
Alayan-stk-2
f5245a679e Fix #3236 (#3253)
* Don't generate IRC alerts

* Fix #3236

* Update .appveyor.yml
2018-05-15 19:16:56 -04:00
Alayan-stk-2
7f84dd39a6 Numerous improvements related to ghost replays (#3244)
* Update GUI files for replay improvements

* Updated replay capabilities

* Improve timer formatting possibilities

Mainly, the ability to choose to display or not minutes, and to choose how many digits are shown after seconds (from 0 : second as smallest timestep - to 3 : ms as smallest timestep)

Also displays "mm:ss.ms" rather than "mm:ss:ms".

* Some new list widget possibilities

Like the ability to update the header while the list is displayed (useful to add or remove columns)

* Update ghost kart for the new replay data

* Also update the ghost controller

* Live differences with ghost replays in linear worlds

* Replay-related UI changes

Big changes to the replay selection screen, and small change to the race UI (add the live timer in ghost races) and the race result UI (add the option to directly race against a newly saved ghost).

* Improves the replay action modal dialog

* Fix time-to-ticks regression

* Several requested improvements

* Improved ghost icon

Also updates the license

* GUI changes and improvements to accomodate multi-mode support

* Additional recorded data

* More functions to get the current race state

* Update replay variables to match what is used

* Updated replay-related config values

* Add ghost kart support to easter egg hunt mode

* Transparent attachments for ghost karts

* Use new stored data (color, item type)

Also :
- Interpolate speed for smoother display in watch-only mode
- Coding style improvements

* Fix coding style issues and add UI support for modes

* Fix coding style issues & support for easter egg mode

* Remove leftover prints

* Use getDifficultyName to remove hardcoded values

* Fix attach_ticks and coding style fixes

* Make the position of the timers fully relative

Otherwise, they would tend to touch each other in some resolutions

Also add a comment about the 59.9995f

* Make the list filling code clearer

Also use getDifficultyName

Most of the line changes shown by git correspond to moving around some bits or adjusting indentation.

* Remove a TODO as requested

* Fix dialog being dismissed too soon

* Remove a fixme

* Small clean up

* Fix logging

* Partial #3249 fix
2018-05-13 20:51:52 -04:00
Deve
0b79d9c1d1 Remove a line that is not needed anymore.
Now spinner widget is drawn correctly and min value >= 1 restriction exists in xml file anyway. In this way it shows correct value when particles effects are manually set to 0 in config.xml.
2018-05-13 22:03:15 +02:00
Benau
52e2a64893 Add ring for local player controller in minimap 2018-05-11 13:26:30 +08:00
hiker
85eb59c6af
Merge pull request #3232 from STK-helper/MiniMap
Increase minimap size and reduce its aliasing
2018-05-09 15:39:19 +10:00
Alayan-stk-2
473732b952
Add comment to clarify a if/else 2018-05-07 02:34:52 +02:00
Alayan-stk-2
7ee3d6576e
Use the new config options for display 2018-05-05 22:18:02 +02:00