Commit Graph

1055 Commits

Author SHA1 Message Date
QwertyChouskie
a68e652fa6 Skin padding implementation (#4195)
* Implement box model spacing for skin elements

* Account for padding when spacing out on-screen keyboard

* Fix padding for Tutorial button on Help screen

* Reduce spacing between tabs
(Also removed a couple duplicated files.)

* Change verticalTab margin as per Benau's request
Uses `vborder_out_portion`, which is how it was done before.

* Remove duplicate files

* Adjust spacings after PNGs were adjusted in a previous commit

* Improve spacing of verticalTabs

* Slightly increase the tabbar width in the Options screens

* Slightly increase the tabbar width in the help screens
2020-01-13 13:02:50 +08:00
Deve
8e19e96a9e Add easier way to change touch controls type 2019-12-29 00:04:45 +01:00
Benau
82cbf3b09f Fix not enough space for uninstall full game assets button 2019-12-25 13:29:56 +08:00
Benau
fb6bedc101 Enable word wrap in screens where text could be too long 2019-12-25 12:21:27 +08:00
Benau
1e99d8cbbb Improve addons screen layout 2019-12-18 14:29:27 +08:00
Alayan
ad8ef2df11 Fix #3376
The UI layout should be improved, but functionality and translatable strings are there as needed.
2019-12-18 04:25:18 +01:00
DoggoOfSpeed
5273dac899 Fix #4149 (#4171) 2019-12-14 08:48:50 +08:00
Benau
0c10389333 Fix overflowed list in addons screen 2019-12-11 01:13:16 +08:00
GuillaumeBft
1115118a13 Show only possessed checkbox in addons screen #3376 (#4162)
* Show only possessed checkbox in addons screen

* add var w_show_possessed

* Update addons_screen.stkgui
2019-12-11 00:12:45 +08:00
杜茂森
340ec706b0 UI fix bundle XIII (#4138)
* UI fixes && Icon support for powerups

* Better loading icon size

* Fix #4145

* Fix a small bug

* Add alternative icon support & avoid duplicating icons
2019-11-28 16:13:00 +08:00
Benau
10a125c407 Fix string after icon name update 2019-11-27 12:23:47 +08:00
Deve
426be8f3c1 Add continue button to cutscenes 2019-11-24 00:55:57 +01:00
Alayan
325f19d30b Improve the layout of the GP info screen 2019-11-10 23:17:50 +01:00
Deve
fb4ecf6a00 Better fix for icon button alignment 2019-11-10 10:25:19 +01:00
Benau
f4da9718c5 Fix gui warnings 2019-11-08 16:24:58 +08:00
Deve
435e8c3747 Revert "Allow to use "extremely large" font size."
This reverts commit 4f9070ee53.
2019-11-07 22:57:13 +01:00
Alayan
f693e32bd6 Improve the general option screens with large font size 2019-11-07 22:44:27 +01: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
Deve
4f9070ee53 Allow to use "extremely large" font size.
It looks fine in most places.
2019-11-07 22:01:25 +01:00
Deve
b5f3fafaac Slightly increase button size for android 2019-11-07 21:33:58 +01:00
杜茂森
f169ed82a3 UI fix bundle XII (#4114)
* Change arena addon icon

* Categorize UI

* Give small margin

* Better icon size in help

* Several screen fix

* Fix bug

* Better GP line size

* Give more space to texts

* Better size
2019-11-07 19:01:28 +01:00
Benau
9d75b706d5 Remove warnings 2019-11-07 14:40:10 +08: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
033933d3a2 Hide ipv6 button in LAN server selection 2019-11-01 10:49:31 +08:00
Du maosen
6dd5800701 Fix#4117 (#4119)
* Fix #4117
2019-10-29 16:14:12 +01:00
Benau
7caa24859c Update translation strings 2019-10-29 12:43:50 +08:00
Benau
ac7310602e Hide donation button until there is a gift package 2019-10-28 16:58:44 +08:00
Alayan
50988c6c60 Fix #3687 2019-10-26 02:28:42 +02:00
Deve
4be93daa83 Add small left margin to all back buttons 2019-10-24 22:25:49 +02:00
Alayan
102498f130 Separate DoF and motion blur from the main graphics preset 2019-10-24 15:56:42 +02:00
Alayan
b4b346e7a6 Fix #4103 2019-10-21 22:49:54 +02:00
Deve
9dde7aee95 Use default height for spinners in gui options.
Also move them to the left side to give more space for labels.
2019-10-18 18:12:03 +02:00
Deve
ade98f730b Move vsync spinner above "custom" button 2019-10-18 18:10:28 +02:00
Benau
1a7a8bdc14 Make karts powerup in gui an option 2019-10-18 12:03:36 +08:00
Benau
e93bc64ef3 Use Splitscreen Multiplayer to avoid lan game confusion 2019-10-09 15:29:52 +08:00
Benau
396e55a39d Show android robot icon for bots in lobby 2019-10-09 15:28:09 +08:00
Benau
9e0da6a283 Update translation source 2019-10-08 09:15:01 +08:00
Deve
70469dafb5 Use shorter name for user interface tab 2019-10-06 23:20:30 +02:00
Deve
72e364a38d Some GUI tweaks 2019-10-05 23:48:44 +02:00
Deve
755b8a2f1b Slightly increase back button size and more consistent header pos/size 2019-10-05 23:44:14 +02:00
riso
657e02efe4 Clean icon name (Improve PR#4073) (#4081)
* fix icon names

* add file mode_weapon.png
2019-10-06 01:14:09 +08:00
MiM
1de0693402 resolution issue #4070 (#4073) 2019-10-03 13:40:43 +08:00
Du maosen
71fec6780c Icon button for race result (#4071)
* Icons for race result

* Fix bugs && improvements

* Tabs to spaces

* Fix bugs && improvements
2019-09-30 15:33:07 +08:00
Deve
98d8aca91a Add half vsync to gui 2019-09-28 22:19:03 +02:00
Du maosen
8316d91469 Some improvements for soccer AI spinner (#4069)
* Improve code

* Bigger space in track info

* Bug fix && improvements

* Bug fix && improvements

* Bug fix && improvements
2019-09-26 10:12:24 +08: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
riso
0e4f875443 Clean IPV4/ipv4 to IPv4, IPV6/ipv6 to IPv6 2019-09-03 14:24:03 -05:00
Benau
850d270260 Allow choosing IPV6 connection in server selection screen 2019-08-21 12:00:50 +08:00
Benau
1551bdaaaa Add gyroscope icon and use it in init android dialog 2019-08-17 00:47:56 +08:00
Benau
ce2c442402 Add accelerator with handle icons 2019-08-17 00:13:57 +08:00
Benau
41a74817f7 Allow steering wheel following touchscreen control with acceleration indicator 2019-08-16 21:56:21 +08:00
Benau
96ebdcce46 Remove unused stkgui 2019-08-13 01:11:01 +08:00
Benau
4200f0ca59 Allow install full game assets from stk server 2019-08-08 16:38:53 +08:00
dumaosen
bee235a65c UI fix bundle XI (#4018)
* Prettier server conf

* Better icon size for race result

* Delete useless min value
2019-07-24 01:44:53 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
3e51fadc09 Improve english 2019-07-18 15:47:47 +08:00
Alayan
40a8411090 Restore replay list density, and keep a consistent tab size 2019-07-17 20:12:10 +02:00
dumaosen
2818a1870e Delete nobest (#3987)
* Delete nobest

* Make supertux locked
2019-07-06 09:58:20 +08:00
dumaosen
5d676387bc
Add a spacer under title 2019-06-27 06:32:03 +08:00
dumaosen
deba0b41ef Bigger icons 2019-06-26 22:19:12 +08:00
dumaosen
da84b8598b Smarter space 2019-06-26 22:06:23 +08:00
dumaosen
9ebca51c1a Revert height and width 2019-06-26 22:03:20 +08:00
dumaosen
e9522743f4 Make icons biger 2019-06-26 22:00:11 +08:00
dumaosen
53f6235125 Make widgets center 2019-06-26 21:58:02 +08:00
dumaosen
ad9a8c9c26 Make more space 2019-06-26 21:51:03 +08:00
dumaosen
85e46c06db Make title center 2019-06-26 21:46:53 +08:00
dumaosen
49e4a35b3e Add a space between icons and box 2019-06-26 21:45:31 +08:00
Benau
d0fac726d3 Allow to use emoji ingame 2019-06-20 10:34:47 +08:00
Benau
7165449da8 Add emoji keyboard 2019-06-20 01:24:55 +08:00
Benau
a7b096ab9b Add translation help for select challenge dialog 2019-06-16 00:58:09 +08:00
dumaosen
4f6e3793b8 fix #3923 && replace fonts size to font size (#3960)
* Replace fonts size into font size

* replace fonts size to font size

* Replace fonts size into font size

* #3923 && replace fonts size to font size

* delete min & max

* add font size spinner in loadedfromfile

* Delete wrap around

* Fix a bug

* Wider range in artist debug mode

* Better word
2019-06-16 00:33:57 +08:00
Benau
caa0554127 Reserve enough space for newline text 2019-06-15 11:09:31 +08:00
Benau
70a17007b6 Use separate info in server dialog 2019-06-14 21:57:56 +08:00
Benau
fdf92e108d Improve spacing in track info screen 2019-06-14 20:50:24 +08:00
Benau
e969a5a352 Reserve enough space for general textfield dialog for RTL text alignment 2019-06-14 13:26:33 +08:00
dumaosen
b7dc5dd6f2 New interface of challenge selection (#3957)
* New interface

* New interface

* New interface

* Replace tabs into 4 spaces && fix a bug

* Change the solution

* Fix a bug
2019-06-13 20:49:25 +02:00
dumaosen
6cc75a106b UI fix bundle VII (#3949)
* Smarter size

* Better size

* Smarter row size

* Smarter size

* Fix #3792

* Bigger title && use 4 spaces

* Fix #3792

* Better credits

* Smarter size

* Less lines to preserve space

* Smarter icon size

* Better size

* Completely fix #3792

Using buttonbar in every line can avoid scaling problems

* Completely fix #3792

* Completely fix #3792

* Add space under the screen

* Make space smaller

* Smarter ratingbar size

* Better size

* More reasonable size for powerup texts

* Better spacer under the screen

* Sparter space under buttons

* Smarter space under buttons

* Smarter space

* Smaeter space under icons

* Smarter space under buttons

* Smarter space

* Smarter space under butons

* Smarter space

* Smarter space under buttons

* Smarter space

* Smarter space under buttons

* Smarter space

* Smarter stars size

* Fix an extra line

* change buttonbar back into ribbon

* dont declare the width of the buttons

It may cause some characters partly showed or hidden in some lang
2019-06-08 22:01:54 +02:00
dumaosen
dd9d5c89e1 Use icons in general_text_field (#3944)
* Use icons in general_text_field

* Use icons for general_text_field

* Add </buttonbar>

* Use 4 spaces
2019-05-29 01:14:01 +08:00
Benau
240546ac00 Fix waiting message for big font size 2019-05-28 11:37:50 +08:00
dumaosen
2d3ae6aefc UI fix bundle V (#3921)
* Use font height

* Smarter space

* Smarter space

* Better space to avoid bad looking ui

* Smarter space

* Use font height

* Better height

* Better skill bar look

* Better skill bars look
2019-05-17 21:42:45 +02:00
Deve
ec485bae4c Add font size to options 2019-05-16 22:16:36 +02:00
Deve
80be3a936a Some gui fixes 2019-05-15 22:54:39 +02:00
Deve
10a580ebd3 Give slightly more space for options in tracks screen 2019-05-15 22:37:56 +02:00
Deve
5b133c21c9 Make hiscores list scrollable 2019-05-15 22:27:29 +02:00
dumaosen
dff77dd808 GenIII for scaling issues fix (#3917)
* Use foont height

* Use font height

* Bigger size

* Use font height

* Use font height

* Use font height

* Use font height

* Better height

* Use font height

* Use font height

* Bigger size
2019-05-15 12:13:50 +02:00
Benau
206a3d8aec Add server location to dialog 2019-05-14 15:16:21 +08:00
Deve
e972c7d40f Draw user button over logo to avoid hover conflict 2019-05-13 23:48:11 +02:00
dumaosen
da4ac0a976 A better solution for those scaling issues in high or creepy resolutions gen II (#3910)
* Fix scaling issues

* Fonts size adjustion support

* Add fonts size support && Fix scaling issue

* Use fonts height

* Fix scaling issues

* Add my name onto CREDITS

* Fix scaling issues

* Fix scaling issues

* Use space instead of tab

* Use space instead of tab

* Fix bad scale

* Use font height
2019-05-13 23:39:43 +02:00
Benau
480ce07ae0 Show player location if available from server 2019-05-11 01:47:45 +08:00
Alayan
321404db9e Fix #3852, several other improvements to the server info dialog 2019-04-18 19:40:55 +02:00
Benau
0cbb8e4385 Use a prettier tag for recommended servers 2019-04-11 14:09:14 +08:00
Benau
3de23aba0f Update for ingame chat 2019-04-07 10:22:35 +08:00
Alayan
dcb341a210 Fix #3765 2019-03-01 00:00:21 +01:00
Mrxx99
b55ec5cfb8 FFA for offline play (#3708)
* 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
2019-02-20 19:18:02 -05:00
Alayan-stk-2
2033c923f8
Improve english for the startup boost help 2019-02-18 16:11:47 +01:00
Deve
56743e002c Explain startup boost in help 2019-02-15 21:59:05 +01:00
Alayan-stk-2
f42fdc7cb8
Update to reflect change from "official" to "trusted" servers 2019-02-10 02:34:38 +01:00
Deve
7062245d88 Change order of the internet options, so that there is no ugly space when internet connection is disabled 2019-02-09 01:10:43 +01:00
Deve
9b17500da7 Some improvements for the online splitscreen player dialog 2019-02-07 00:08:32 +01:00
Benau
2bfa0f54dc Add network ingame dialog with chat function 2019-01-13 16:59:26 +08:00
Alayan
bec1c319f6 Add light scattering to the graphical options and disable it on graphics 3 2019-01-08 01:18:46 +01:00
Deve
ec91f9d8db Make resolutions list proportional to screen height 2019-01-07 23:58:34 +01:00
Deve
d95a1ab27e Use the same size for back arrow in pause dialog as for other icons 2019-01-07 23:42:40 +01:00
Benau
6a7ec37462 Merge remote-tracking branch 'origin/master' into live_join 2019-01-05 01:24:06 +08:00
Benau
72db382c76 Add current track info to server screen 2019-01-04 18:53:45 +08:00
hiker
893bb38c5a Merge branch 'master' of github.com:supertuxkart/stk-code 2019-01-04 09:01:54 +11:00
hiker
4e8fae6e73 Applied most of qwertychouskie's patch #3520. 2019-01-04 09:00:40 +11:00
Deve
d46f0aeddb Some tweaks in soccer setup screen 2019-01-03 21:44:15 +01:00
Mrxx99
c959836e34 Move soccer options to track info screen (#3638)
* 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
2019-01-02 20:29:53 -05:00
Benau
2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00
Deve
9a304b8483 Some minor improvements in online tracks screen 2018-12-18 23:05:36 +01:00
Benau
f53060e0df Add icon header to the list 2018-12-17 16:38:38 +08: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
5d9bb7e385 Add alternating background darkness to two more lists 2018-12-15 08:21:53 +01:00
Alayan
19b0c1a465 Several improvements to the server selection screen 2018-12-15 08:05:37 +01:00
hiker
b2238a4c18 Improved layout. 2018-12-11 01:27:14 +11:00
Deve
998900cc8e Give slightly more space between buttons 2018-12-07 22:29:43 +01:00
Deve
6f706eb436 Avoid unnecessarily long button name.
It was sometimes using smaller text because of too little space.
2018-12-07 22:22:12 +01:00
Alayan
3a307b4d9f Fix icon size in the server configuration dialog 2018-12-07 02:50:05 +01:00
Benau
083e1180fb Add the GUI to update server config in lobby 2018-12-07 00:54:48 +08:00
Deve
241e0ae772 Fixed focus chat using keyboard in lobby screen 2018-12-04 21:00:10 +01: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
Deve
bf76a2a1e2 Move send button to the same line as edit box to avoid too big space between them on some resolutions 2018-11-30 21:42:15 +01:00
Alayan-stk-2
5c7133699e
Fix #3248 2018-11-30 00:03:21 +01:00
Deve
8d94dfa2d7 Give slightly more space for timeout message in networking lobby.
Make start button proportional to resolution.
2018-11-29 23:39:19 +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
Deve
88906c7530 Don't show change resolution button on android 2018-11-23 22:37:44 +01:00
Benau
4313fad196 Update translation 2018-11-23 23:48:06 +08:00
hiker
fa7d3eef73 Added 'voting result' screen, though it does not have any functionality atm. 2018-11-22 09:17:58 +11:00
hiker
0e2beceb9d Added progress bar (showing remaining time) to kart selection screen. 2018-11-20 09:32:31 +11:00
Benau
f1c164ca6e Merge remote-tracking branch 'origin/master' into dev 2018-11-19 00:38:18 +08:00
Benau
092cd7f3bf Fix #3583 2018-11-16 23:12:05 +08: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
Deve
2b696d08ff Give more space for translations 2018-11-14 22:41:20 +01:00
Benau
5e711088bf Use better english as alayan suggested 2018-11-14 16:01:36 +08:00
Alayan
acd749d75f Fix #3518 2018-11-13 22:21:44 +01:00
Alayan
00a5fe9a36 Make a color choice spinner bigger so translations fit 2018-11-13 01:52:50 +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
Benau
afa2da927f Add translation tip for dialog 2018-11-12 00:38:02 +08: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
Benau
7d2fa96b5d Fix #3497 2018-11-09 01:30:46 +08:00
Deve
6ae89331c0 Fixed word wrap in achievements description and make close button slightly bigger. 2018-11-03 23:25:50 +01:00
Deve
b7856d4991 Make sensitivity independent of deadzone for touch device 2018-11-03 00:06:17 +01:00
Deve
f05172b93f Use higher sensitivity for y axis on touch device 2018-11-02 22:10:41 +01:00
Deve
832c1abc9b Fixed some spinners that didn't work on very high resolutions 2018-11-01 23:40:27 +01:00
Deve
e4eb1513fc Some fixes for tracks screen.
Now it works better with very big resolutions. Previously label height was used as a kind of margin for columns. But in extreme case it could be even bigger than child height.
2018-10-31 23:21:56 +01:00