Commit Graph

19331 Commits

Author SHA1 Message Date
Alayan-stk-2
42e1e4eade
Small balance tweaks 2018-06-23 03:45:26 +02:00
Alayan-stk-2
9340caf951
Revised kart characteristics 2018-06-23 02:17:33 +02:00
Alayan-stk-2
1988cfe0be
Add nitro multiplier and revamp parachutes and air friction 2018-06-23 02:14:29 +02:00
Alayan-stk-2
be98a6c4c3 Add vertical tabs (#3314)
* Add vertical tabs to ribbon widget types

* Update GUI engine for vertical tabs

* Add the ability to get a ribbon's active children number

* Add full looping for vertical tabs
2018-06-19 21:00:10 -04:00
Alayan-stk-2
750320fbeb Fix the previous number of points being 0 after relaunching STK (#3320)
* On launch, also update the number of previous points so it is not 0

* Do the first call after the loading of the challenges status

* Remove prints
2018-06-19 20:20:21 -04: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
Alayan-stk-2
205d4b5626 Fix start/exit buttons not working in networking lobby (#3318) 2018-06-19 22:54:16 +02:00
Deve
c889503d7b Fixed wrong comment 2018-06-19 21:59:09 +02:00
Alayan-stk-2
e7f3f2b969 Fix #3316 (#3317) 2018-06-19 21:50:20 +02:00
Deve
b430a0e5bf Huge improvement of apk file size thanks to Alayan.
The apk is now 20 MB smaller.

It may need some testing to see if there are no artifacts, but as far as I see there is no difference in quality.
2018-06-19 21:40:26 +02:00
Alayan-stk-2
4cb6ea4871 Optimize image size in the GUI folder (#3315)
* Optimize image size in GUI, save 1.2 MB

* Optimize android GUI images

* Optimize networking menu images
2018-06-19 19:19:24 +02:00
hiker
e6417bcf03 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-19 18:30:19 +10:00
hiker
60c9994e29 Fixed documentation and typo, thanks to Alayan. 2018-06-19 18:27:33 +10:00
hiker
714665f444 Improved 'randomness' of item selection while keeping exploitability
very low. Added documentation, moved item-distribution logging to
get more detailed information.
2018-06-19 10:19:10 +10:00
hiker
46b62de07e Fixed compiler warning. 2018-06-19 09:19:32 +10:00
Alayan-stk-2
3450984c3e Multi directional GUI navigation (#3307)
* Allow full up/down/left/right navigation

* Update list and ribbon widgets to work well with the new navigation

* Fix windows compilation

* Improve navigation algorithm to fix the observed limitations

* Make windows compilator happy

* Fix keyboard navigation issues in networking lobby

And make some parts more proportional to screen size
2018-06-18 19:08:34 -04:00
Alayan-stk-2
bd16045525 New dark skin (coal) (#3293)
* License for new coal skin

* Coal skin elements

* New coal skin

* Better contrast for coal skin select

* Lighter white text.

* Improved contrasts for actionable UI elements

* Make the theme back to a darker background while improving contrast again

* Ranking formula refinements (#3288)

* Reduce the maximum scaling time from 600s to 500s

8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.

* New helper function for ranking computations

* Make short races less important for ranking points

And long races more important

* Use double for calculation

* Fix as alayan suggested

* Fix possible empty race event manager instance

* Show remote player in the past

* Allow to set commandline arguments on android

* Fix #3242

* More on #3242

* FIx #2912

* Better checkboxes (#3291)

* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin

* Try to create external/internal directory if it's not available.

Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.

* Always set blend func in GLES 2.0.

It's often changed in STK engine and the value stored in irrlicht variable may be invalid.

Fixes #3296

* Avoid a crash when user name is empty

* 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).

* Fix #3100 (#3299)

* Fix #3100

* Fix server only compilation

* Fix stupidly long line full of whitespace (#3303)

* Don't use pkg-config on macOS

Fixes #3305

* Fix #3309

* Great improvements to skin data (#3312)

* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image

* Move black focus halo to the common folder

* Remove duplicate image, use common folder

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete tooltip.png

* Delete glasscheckbox_checked_deactivated.png

* Use common folder, support vertical tabs, and small tweaks

* Optimize image size, add vertical tabs, add custom bottom bar
2018-06-18 19:02:35 -04:00
Deve
2e3ae1c3f8 Allow to set min and max drivers version in graphics restrictions 2018-06-18 22:32:41 +02:00
hiker
2859265545 Applied Alayan's fix for properly handling weight 0, some minor
other fixes, added two unit tests.
2018-06-18 22:24:52 +10:00
hiker
7c6d3c9e42 Fixed compiler warnings. 2018-06-18 18:19:29 +10:00
hiker
296bd89129 Replaced tabs with white-spaces 2018-06-18 15:13:36 +10:00
hiker
41ed9fc332 Removed execute permission. 2018-06-18 13:55:55 +10:00
Alayan-stk-2
2fbcd73c93 Great improvements to skin data (#3312)
* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image
2018-06-17 21:40:01 -04:00
hiker
8d12c5aa07 Updated changelog and credits. 2018-06-18 08:54:11 +10:00
hiker
34bfb2d868 Simplified loop structure, fixed other minox code issues. 2018-06-18 08:47:31 +10:00
hiker
de44b2aaf9 Made configuration files with missing or too many entries abort STK. 2018-06-18 08:14:30 +10:00
hiker
48aca2f70f Started to address comments from the reviewer. 2018-06-17 23:48:47 +10:00
hiker
8cf52b4c7c Updated documentation. 2018-06-17 11:43:35 +10:00
hiker
6bcd1b4c58 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-17 01:05:07 +10:00
hiker
5207e9a38b Improved implementation of powerup collection weight. 2018-06-17 01:03:37 +10:00
hiker
87da438bf3 Fixed comment. 2018-06-17 01:01:44 +10:00
Benau
bd6492f5cf Fix #3309 2018-06-16 13:55:20 +08:00
Deve
e14ea99acd
Don't use pkg-config on macOS
Fixes #3305
2018-06-15 21:06:29 +02:00
Alayan-stk-2
96a07be6bc Fix stupidly long line full of whitespace (#3303) 2018-06-13 19:46:20 -04: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
Deve
e44266b526 Always set blend func in GLES 2.0.
It's often changed in STK engine and the value stored in irrlicht variable may be invalid.

Fixes #3296
2018-06-12 22:25:46 +02:00
Deve
19736c2a51 Try to create external/internal directory if it's not available.
Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.
2018-06-11 22:23:48 +02:00
Alayan-stk-2
be5b389d94 Better checkboxes (#3291)
* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin
2018-06-11 22:02:46 +02:00
auria.mg
81aedd6582 FIx #2912 2018-06-10 19:09:36 -04: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
90f3a2389e Allow to set commandline arguments on android 2018-06-10 23:25:51 +02:00
Benau
e823babb90 Show remote player in the past 2018-06-09 20:16:56 +08:00
Benau
f329314bf6 Fix possible empty race event manager instance 2018-06-09 19:04:15 +08:00
Benau
6433e1eae0 Fix as alayan suggested 2018-06-09 18:57:26 +08:00
Benau
9133275677 Use double for calculation 2018-06-09 18:53:44 +08:00
Alayan-stk-2
7c14fd28ba Ranking formula refinements (#3288)
* Reduce the maximum scaling time from 600s to 500s

8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.

* New helper function for ranking computations

* Make short races less important for ranking points

And long races more important
2018-06-09 08:43:19 +00: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