Commit Graph

3306 Commits

Author SHA1 Message Date
Benau
ec123df108 Remove player list when leaving the lobby screen to avoid crash 2019-01-02 01:19:35 +08:00
Benau
5410a34f9e Make kart selection screen usable with live join 2018-12-31 14:40:00 +08:00
Benau
d9f1d18d9b Use placeholder tux for reserved players 2018-12-30 16:37:13 +08:00
Mrxx99
2546c1280a Collapsing widget function (#3664)
* added function to collapse a widget more easily

* improved setCollapsed and added overload to specify the uncollapsed height

* used new collapse functions in online track_screen
2018-12-29 18:24:58 -05:00
Deve
a78602a2b5 Restore selected track when changing tracks group in voting screen 2018-12-26 00:48:10 +01:00
Benau
e7ef80720a Don't draw more laps than max laps in network race 2018-12-25 13:31:08 +08:00
Benau
bff2a5f9f2 Use Y/N for voting screen 2018-12-25 10:50:44 +08:00
Benau
d6946198c5 Make flag a rewinder
It remove the capturing delay and allow ctf in local splitscreen
2018-12-24 16:01:21 +08:00
Kevin Zheng
85fc39c356 Use floating trigonometric functions 2018-12-22 22:43:06 -06:00
Benau
c42c5b7d82 Fix android compilation 2018-12-22 11:28:32 +08:00
Benau
86198881f4 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-22 10:35:09 +08:00
Benau
f3bb19125c Add network debugging info with speed stats 2018-12-22 09:12:24 +08:00
Benau
a85dbcc0f7 Add the possibility to correct invalid reverse at server side 2018-12-21 21:55:55 +08:00
Benau
2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00
Benau
e4e03e6209 Highlight selected vote by player
Animation is disabled atm because not working very well
2018-12-21 19:40:52 +08:00
Benau
9029621b59 Use majority agreement for voting 2018-12-21 18:12:58 +08:00
Benau
0e17839136 Show remaining time in progress bar 2018-12-21 12:52:51 +08:00
Benau
1799fe834f Remove auto voting with auto connect
This is not needed anymore with current setup
2018-12-20 16:16:03 +08:00
Benau
57765c98bf Fix possible crash when unloaded 2018-12-20 14:55:06 +08:00
Benau
d54a5028d2 Allow voting to agree with someone by selection id of list 2018-12-19 16:47:44 +08:00
Benau
e91c9aa95a Add plop sound effect for 1st vote if this screen is on 2018-12-19 14:07:10 +08:00
Benau
cfdd66f770 Center icon for ffa / ctf 2018-12-19 13:43:17 +08:00
Deve
9a304b8483 Some minor improvements in online tracks screen 2018-12-18 23:05:36 +01:00
Benau
13f0276aac Update player votes with icon 2018-12-18 01:57:04 +08:00
Benau
f53060e0df Add icon header to the list 2018-12-17 16:38:38 +08:00
Benau
a3a36e33a6 Clean up tracks screen and lobbies 2018-12-17 15:23:19 +08:00
Benau
a98baf847f Allow using icon in list header 2018-12-17 13:00:15 +08:00
Deve
efd502c808 Use larger list for android in two more places 2018-12-17 00:36:12 +01:00
Deve
093f815d2c Restore larger row height for android 2018-12-16 21:57:19 +01:00
hiker
0eca431627 Tried to fix compilation problems due to merging. 2018-12-16 02:36:16 +11:00
hiker
4269ac6294 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-16 02:06:50 +11:00
hiker
4bd57b9f67 Remved VoteOverview screen, and migrated voting related code
to TracksScreen. No display of votes yet.
2018-12-16 01:34:51 +11:00
Alayan
8f55f24984 Make the addons list slightly more compact 2018-12-15 10:24:23 +01:00
Alayan
19b0c1a465 Several improvements to the server selection screen 2018-12-15 08:05:37 +01:00
Benau
81efd3fce4 Fix #3646 2018-12-15 11:27:48 +08:00
Deve
ac809f429c Use a context for column names translations in server selection screen.
It allows to use shorter text while not breaking translations in other places.
2018-12-14 21:53:34 +01:00
Alayan-stk-2
b0055f2089
Improve english 2018-12-14 15:30:42 +01:00
Benau
176af22c8d Add the framework for displaying estimated game started info 2018-12-14 19:22:59 +08:00
Benau
8f5ee309a8 Add live changing handicap 2018-12-13 16:36:16 +08:00
Benau
7e7c07a116 Move reset active players to main thread 2018-12-12 16:41:40 +08:00
Alayan
4b459b6988 Fix #3642 2018-12-12 05:02:54 +01:00
hiker
89cc549ebc Support floating point values for the progress bar. 2018-12-10 22:13:13 +11:00
hiker
386dc279fd Make all unused boxes in the voting GUI invisible. 2018-12-10 18:26:18 +11:00
hiker
4b74c673fe Fix crash for player with last vote (which means VoteOverview
is articially pushed).
2018-12-10 11:07:14 +11:00
hiker
282e178468 Fix compilation problem (apparently forgot to save when I comitted
the file).
2018-12-10 10:51:01 +11:00
hiker
8b387241ad Avoid crash if a player selects 'submit' before selecting a track. 2018-12-10 10:23:22 +11:00
hiker
b413cc7328 Only sent vote when submit is clicked (otherwise voting could ended
by a player clicking on a track, without the opportunity to select
2018-12-10 08:26:30 +11:00
hiker
c37b735bb9 Reset 'left over' highlights from previous voting screen. 2018-12-10 08:24:57 +11:00
hiker
ed29c280b3 Added initial voting animation while loading the track. 2018-12-10 00:29:14 +11:00
Deve
f85f345bdf Fixed a crash when opening user screen after changing advanced lighting 2018-12-08 21:33:39 +01:00
Benau
083e1180fb Add the GUI to update server config in lobby 2018-12-07 00:54:48 +08:00
Benau
7fa92366ed Make possible to remove disconnected player vote 2018-12-07 00:28:49 +08:00
hiker
c0816995ac Code cleanup. 2018-12-06 18:39:59 +11:00
Benau
3d64340137 Add the framework in server lobby for live update config 2018-12-05 14:19:01 +08:00
hiker
edad214001 Allow the gui to be updates while loading a track, and use this
to show a simple (and still stuttering) animation while loading
a track,
2018-12-05 09:51:41 +11:00
hiker
b0cc2eb441 Added an 'ok' badge to the selected track. 2018-12-04 00:27:12 +11:00
hiker
da7a77963e And another compiler fix. 2018-12-01 10:16:07 +11:00
hiker
585e346b75 More compiler fixes - gee, why is VS accepting all of this?? 2018-12-01 10:11:36 +11:00
hiker
31f55f14ae Another compiler fix. 2018-12-01 10:08:18 +11:00
hiker
890107da71 More compiler error fixes. 2018-12-01 10:05:03 +11:00
hiker
d6d879d2ed Show votes in vote overview screen. This is NOT fully working,
and contains debug output.
2018-12-01 09:32:21 +11:00
Benau
8b825bf7df Fix meter missing in race gui for GLES 2 2018-11-30 18:47:15 +08:00
Deve
443919b6b7 Update chat and counter even if there is dialog window opened 2018-11-28 23:55:29 +01:00
hiker
bd0641f12a Store voting data in lobby protocol so it is available on client
and server. Voting behaviour is now to start the race as soon as
all votes are in.
2018-11-28 08:13:59 +11:00
Deve
a59cbdffe5 Fixed spinner widgets focus in kart selection 2018-11-25 22:21:48 +01:00
Benau
940170cf61 Fix #3617 2018-11-25 13:20:17 +08:00
Alayan-stk-2
26b660531a
Fix outdated information about the location of the internet option 2018-11-24 19:21:46 +01:00
Benau
6f50c234a3 Fix #3452 2018-11-25 02:00:33 +08:00
auria.mg
8998f095f3 Merge branch 'DisableInternetConnection' 2018-11-23 19:26:46 -05:00
auria.mg
2781f5e8a5 Amend previous fix 2018-11-23 19:12:05 -05:00
auria.mg
562fe8a4c8 Fix STK hanging on shutdown when networking disabled 2018-11-23 19:07:58 -05:00
auria.mg
9d51713300 Fix logout when disabling internet 2018-11-23 18:52:17 -05:00
Deve
88906c7530 Don't show change resolution button on android 2018-11-23 22:37:44 +01:00
Benau
689376dd0f Make FFA and CTF minor mode 2018-11-24 01:41:36 +08:00
Benau
4313fad196 Update translation 2018-11-23 23:48:06 +08:00
auria.mg
3ff0724cb4 Fix cases where stk connects to the internet while the user forbid it, see #3319 2018-11-22 20:32:38 -05:00
Alayan
8995027d42 Fix typos 2018-11-23 00:44:24 +01:00
Alayan
05e27df214 Fix #3513 2018-11-23 00:42:09 +01:00
Deve
7a2ae14d7c Always restore assign mode when closing the screen 2018-11-22 20:16:49 +01:00
hiker
fa7d3eef73 Added 'voting result' screen, though it does not have any functionality atm. 2018-11-22 09:17:58 +11:00
Deve
8771f0b9d7 Fixed possible crash when using splitscreen with network multiplayer 2018-11-21 22:12:02 +01:00
Benau
d73e0d9413 Fix compiler warning 2018-11-22 02:46:42 +08:00
Benau
f14daeca26 Push to lobby for enter server ip address dialog too 2018-11-22 02:42:37 +08:00
Ryan
271b032ef3 Achievement sorting (#3533)
The comparison for goals and progress still has to be changed from alphanumerical to a progress status.
2018-11-21 15:33:26 +01:00
hiker
772e2fb3f5 Fixed ghost-recording, which uses the network track screen. 2018-11-20 09:46:35 +11:00
hiker
0e2beceb9d Added progress bar (showing remaining time) to kart selection screen. 2018-11-20 09:32:31 +11:00
Benau
d80691fb7b Allow network ai to auto go back lobby quickly 2018-11-19 12:22:23 +08:00
Deve
337e577d6f Assume that there are always 2 text lines in touch gui.
It fixes overlapping text in CTF/Soccer.
2018-11-18 21:42:42 +01:00
Benau
f1c164ca6e Merge remote-tracking branch 'origin/master' into dev 2018-11-19 00:38:18 +08:00
Deve
0c57d55a9d Allow to change player name in kart selection with keyboard or gamepad.
Currently spinner widgets use select button instead of left/right buttons to change values, so that we can't handle player confirmation when spinner is hovered.
2018-11-18 00:03:08 +01:00
Alayan-stk-2
93ae275927
Fix #3542 2018-11-17 02:07:06 +01:00
Benau
e77eb2ccf6 Allow server owner to force soccer time / goal limits 2018-11-17 00:48:48 +08:00
Benau
eb0000f8e0 Move arena / soccer scores (limit) to have their own place 2018-11-16 22:58:27 +08:00
Benau
f94e226e22 Add ready status to player icon 2018-11-16 20:56:21 +08:00
hiker
0221e2f6d1 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-16 23:48:47 +11:00
hiker
0da03e14ca Use a central timeout controller (in LobbyProtocol) to be used by
both client and server. Voting time now starts from the moment the
kart screen is shown (not on first player having finished voting).
Improved coding style.
2018-11-16 16:57:23 +11:00
Benau
264b79ef0d Replace exit button with server configuration for future usage 2018-11-16 12:48:53 +08:00
Alayan
d8c9fd7fb6 Split UI options into general options (new default tab) and UI options 2018-11-16 03:20:39 +01:00
hiker
cf52ff16b7 Fixed compiler warnings. 2018-11-16 09:36:26 +11:00
Benau
7b4a4e3727 Fix connect to server message overshoot in text box 2018-11-14 16:02:12 +08:00
Benau
5e711088bf Use better english as alayan suggested 2018-11-14 16:01:36 +08:00
Benau
721270c5a9 Fix #3566 2018-11-14 15:03:33 +08:00
Alayan
acd749d75f Fix #3518 2018-11-13 22:21:44 +01:00
hiker
4a4bc7248c Merge remote-tracking branch 'origin/lossless_compression' into dev 2018-11-13 23:04:38 +11:00
hiker
463301091b Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-13 22:22:20 +11:00
hiker
5c14ce86d7 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-13 17:55:56 +11:00
Benau
1cb1923239 Fix #3554 2018-11-13 14:15:34 +08:00
Alayan
b4df116661 Fix #3556 2018-11-13 02:14:23 +01:00
Benau
fe805abc09 Fix #3546 2018-11-12 12:11:08 +08:00
Benau
7b3540e4ee Fix #3545 2018-11-12 11:37:34 +08:00
Deve
0128a729a0 Don't tell about unlocked karts/tracks when they are unlocked globally 2018-11-12 00:44:05 +01:00
Deve
90fb3f2c55 Make sure that achievements depth is never greater than 2.
Current GUI doesn't allow it and it has no sense anyway.
2018-11-11 01:41:49 +01:00
Deve
bf26e4add3 Some fixes for achievements screen.
Give a bit more space for text, use separate table for main goal, avoid overlapped text in main goal table etc.
2018-11-11 01:38:27 +01:00
Alayan-stk-2
01c79c746f
Simplify getTexture calls 2018-11-07 15:12:39 +01:00
Mrxx99
998d27dc5f added lap icon to the the kart icons in RaceUI that have finished the race already (#3538)
* added lap icon to the the kart icons in RaceUI that have finished the race already

* fixed identation

* implemented Aurias feedback
2018-11-05 18:22:59 -05:00
Deve
6ae89331c0 Fixed word wrap in achievements description and make close button slightly bigger. 2018-11-03 23:25:50 +01:00
Benau
1c8f2afd28 Don't show thunderbird when waiting for others 2018-11-03 16:31:51 +08:00
Deve
f05172b93f Use higher sensitivity for y axis on touch device 2018-11-02 22:10:41 +01:00
hiker
724a5d94ba Merge branch 'master' of github.com:supertuxkart/stk-code 2018-10-31 23:20:53 +11:00
Benau
8fb4f4886e Fix server only build 2018-10-31 02:31:39 +08:00
Benau
a65eb2f774 Fix nitro bar missing in non glsl 2018-10-31 01:59:37 +08:00
Benau
9e2084b63c Hide kart color slider button if not GLSL 2018-10-31 01:24:05 +08:00
Benau
cc580cec8b Focus on cancel button to avoid bad misclick result 2018-10-30 14:01:04 +08:00
Benau
b5ba68ae71 Show disabled chat message in the lobby chat box 2018-10-30 01:06:13 +08:00
Deve
4ece4a6c00 Change param name to avoid conflict 2018-10-28 22:27:34 +01:00
Deve
a3eecaedc1 Give a little sense for story mode on android.
At least close big door until all available challenges are completed.
2018-10-28 21:55:48 +01:00
Benau
8c8a0f8452 Fix timer paused if user dialog opened 2018-10-29 01:48:58 +08:00
Benau
89aea95b00 Bring back the quit button for continuing grand prix 2018-10-26 15:22:14 +08:00
Deve
be137155af Fix for opening screen keyboard with gamepad on login screen 2018-10-25 22:42:45 +02:00
Benau
20ea6d4a5f Show network tips only once per game 2018-10-25 14:24:35 +08:00
Benau
610c976ce2 Fix #3530 2018-10-25 14:15:33 +08:00
Deve
b4524e1db6 Fixed missing columns in edit gp screen 2018-10-23 00:55:43 +02:00
Deve
5b1a016b13 Avoid ugly empty space in addons screen.
It's not used for anything and simple to restore if needed.
2018-10-23 00:27:34 +02:00
Deve
dae5bb221f Make minimap bigger for arenas on android 2018-10-20 21:53:18 +02:00
Benau
5ff7db155d Fix broken network kart selection screen if no addon karts available 2018-10-20 16:22:51 +08:00
Deve
e4b8c9eac2 Avoid a crash in friends list.
Not my fault, but indeed it was crashing when you enabled sorting and then opened friends list in your friend profile.
2018-10-19 22:44:53 +02:00
Sergii Pylypenko
572132be46 Implemented gyroscope controls, no camera rotation and no filtering algorithm yet 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
64e0c6312e Added MULTITOUCH_CONTROLS_... enum for m_multitouch_controls config option 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
9f923fdfaa Gyroscope option in config dialogs 2018-10-19 16:41:38 +03:00
Benau
10956a9517 Use dialog for login reminder 2018-10-18 09:06:17 +08:00
Deve
d9abe219ef Use less aggressive touch device scale on small devices.
After some tests both 4.3" phone and 6.4" phone return the same screen size, so we can't really base that much on it.
2018-10-17 21:13:43 +02:00
Deve
2dd8c0f55b Always update remember-user checkbox when user was selected 2018-10-16 21:41:26 +02:00
Deve
1d8bcf02d8 Improve sorting friends by status.
Sort in order New Request -> Pending -> Online -> Offline
2018-10-15 23:34:49 +02:00
Alayan
f32b6059e6 Display different message when the player win a grand prix 2018-10-13 20:59:14 +02:00
Alayan
78b1d5c672 Fix #3449 2018-10-13 20:28:35 +02:00
Deve
14b04ebc18 Update friends list only when it's already fetched 2018-10-12 21:43:27 +02:00
Alayan
c84db6a571 Add skin-specific color emphasis for list items 2018-10-12 20:44:38 +02:00
Alayan
2e6b7fd8ac Fix #3435 with a warning for too small resolutions 2018-10-12 15:17:34 +02:00
hiker
17ab076858 Fixed various compiler warnings for 64-bit windows compilation. 2018-10-11 23:27:08 +11:00
Alayan
d4363f3604 Use black outlines and the special digit font for trophies/points numbers in the overworld UI 2018-10-11 04:18:34 +02:00
Alayan
2461e8a032 Reduce code duplication 2018-10-11 03:49:39 +02:00
Alayan
fb38f1f389 Fix inconsistency in the achievement dialog 2018-10-10 23:30:55 +02:00
Alayan
7471d215db Check and remember if a challenge's supertux requirement (esp. time) have been met at a lower difficulty 2018-10-10 22:50:27 +02:00
Alayan-stk-2
15132c9ef6
Fix a spelling error 2018-10-10 02:11:27 +02:00
Deve
b5cde81b48 Some fixes for player icons in touch gui 2018-10-10 00:26:40 +02:00
Alayan
b4cb7321d6 Add a thin outline for lap time/battle lives 2018-10-08 16:18:13 +02:00
Alayan
027705f9b1 Avoid important messages blocking view 2018-10-08 15:20:36 +02:00
auria.mg
0cb89e1a4f Fix crash in karts sorting caused by inconsistent comparison predicate 2018-10-07 20:48:18 -04:00
Deve
2888f6ee2d Get correct track groups for soccer/battle mode 2018-10-07 21:45:48 +02:00
Benau
aec3fb9e17 Update string 2018-10-07 13:14:59 +08:00
Benau
38d13adc07 Use a custom dialog to show the details of an achievement's progress 2018-10-07 11:33:38 +08:00
Alayan
cd3bf122e6 Display the number of goals fullfiled, and if only one goal, its value progress 2018-10-06 18:26:57 -04:00
Alayan
a4d81beda4 Store achievements in a goal tree ; update achievements progress entirely depending on config 2018-10-06 18:26:57 -04:00
Deve
41ea4b1997 Draw local players icons above AI/remote players on the minimap. 2018-10-06 22:31:37 +02:00
Alayan
3c98c35439 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-10-06 15:58:38 +02:00
Alayan
bf4dd67562 Improve a formulation 2018-10-06 15:58:02 +02:00
Deve
055a14bbaf Use team color to highlight karts on minimap in soccer/ctf 2018-10-05 23:42:26 +02:00
Alayan
1202a34a59 Add black borders to most text in the race UI 2018-10-05 19:47:44 +02:00
Benau
697af6b08c Fix server only build 2018-10-06 01:12:39 +08:00
Alayan
6445fb059d Split DrawGlobalPlayerIcons 2018-10-05 17:42:54 +02:00
Deve
0c5b1a3999 Always show current reolution in options 2018-10-04 21:55:00 +02:00
Deve
fedf93c928 Tweak range of touch device gui scale 2018-10-03 21:13:01 +02:00
Deve
da4f6cf8cf Fixed memory leak 2018-10-02 22:16:37 +02:00
Benau
a2d4763201 Hide minimap when hide all for artist debug mode 2018-09-30 16:30:27 +08:00
Benau
767651124a Always specify --server-password so that empty password can disable private server 2018-09-30 01:08:46 +08:00
Deve
93298023b4 Don't display powerup count indicator after finish online race 2018-09-29 08:14:55 +02:00
Benau
97e5e63e7c Split plunger drawing in race GUI to update graphics
Avoid overwriting the values by rewind
2018-09-28 19:27:05 +08:00
Alayan
091d9bf130 Fix display overlap between live difference and lap indicator at some resolutions 2018-09-25 23:10:31 +02:00
Alayan-stk-2
1c6890f77e Race UI improvements (#3465)
* Add a flag icon next to the lap counter

* Fix flag icon scaling across resolutions

* Add an option controlling minimap display

* Allow to display all the karts in the icon list if the minimap is hidden/on the right

* Remove useless scaling

* Fix minimap issues in splitscreen

* Align the spinners in the UI options

* Check for touch settings instead of a compile-time Android check

* Fix server-only compilation

* Make UI options checkboxes have the same size than checkboxes elsewhere

* Add translation cues for minimap options

* Don't look up icon paths every frame
2018-09-23 21:15:51 -04:00
Benau
0c3691cf18 Fix alayan crash 2018-09-24 08:38:25 +08:00
Deve
eed9d200d3 Revert "Revert "Fixed android compilation""
This reverts commit 8f6daefc73.
2018-09-22 20:43:05 +02:00
Alayan
902e64c7f5 Redesign track info screen to work with 5 highscores, battle mode and hi-dpi 2018-09-22 03:31:07 +02:00
Alayan
82408aab2f Restore 5 highscores 2018-09-22 01:55:28 +02:00
Alayan
6af8f70b48 Add support for challenges in reverse mode 2018-09-19 18:13:42 +02:00
Benau
951c48292a Fix #3446 2018-09-19 09:19:34 +08:00
auria.mg
afe2b6f2f4 Fix crash when searching for users fails. Does not fix the search, only fixes STK crashing when errors occur 2018-09-18 19:20:19 -04:00
Alayan
4d9407653a Fix #3383 2018-09-17 12:40:51 +02:00
Alayan
02a3de4dd8 Fix #3439 2018-09-17 03:46:20 +02:00
Alayan-stk-2
e269c5a72d
Fix #3442 2018-09-17 02:32:46 +02:00
Alayan
b98024f11e Use skin-specific credit color. Fix #3433 2018-09-17 01:53:07 +02:00
Alayan
137a7e671f Move online screns to their own folders to reduce clutter 2018-09-16 23:55:40 +02:00
Alayan
4d68d324a2 Move options screns to their own folder to reduce clutter 2018-09-16 23:35:40 +02:00
Deve
2cb9f1e714 Fixed compilation 2018-09-16 23:11:20 +02:00
Deve
fc04eeade7 Merge remote-tracking branch 'Alayan/DisableKeyboardConfig' 2018-09-16 23:06:54 +02:00
Alayan
03839b7cfe Move GUI files to categorized folders and update all references 2018-09-16 16:37:42 +02:00
Alayan-stk-2
1fc58ef445
Fix #3434 2018-09-16 03:37:26 +02:00
Alayan-stk-2
4bbc494de4
Fix #3445 2018-09-16 01:50:39 +02:00
Deve
2026eb6a69 Ghost replay tables are quite complex, so give them a context for more flexible translations 2018-09-15 23:45:27 +02:00
Alayan-stk-2
9a82e168de
Make sure there is always one enabled keyboard config 2018-09-15 19:33:29 +02:00
Alayan-stk-2
3c89e20733
Add support for disabled keyboard config icon 2018-09-15 18:58:22 +02:00