Commit Graph

21278 Commits

Author SHA1 Message Date
Benau
8995342b94 Clear cached glyph layouts if too many 2019-06-17 01:12:54 +08:00
Benau
ae3fb4b004 Fix missing server infos if back from live join kart selection 2019-06-17 01:07:28 +08:00
Benau
275dbe3631 Show country flag in soccer if client supports 2019-06-16 15:25:53 +08:00
Benau
970061358b Show country flag in result screen 2019-06-16 14:07:16 +08:00
Benau
6c74d4a287 Show country flag in race gui 2019-06-16 13:56:37 +08:00
Benau
6a05325c75 Show country flag in lobby 2019-06-16 13:34:56 +08:00
Deve
09c0731392 Fixed compilation.
sstream uses _C internally, so it must be included before our #undef _C.
2019-06-15 21:48:28 +02:00
Benau
9f953fab0e Show country flag in server screen 2019-06-16 01:40:31 +08:00
Benau
8df24aedab Add tool in StringUtils to make country flag 2019-06-16 01:40:06 +08:00
Benau
c57a6a3d0d Update translation source 2019-06-16 01:02:10 +08:00
Benau
a7b096ab9b Add translation help for select challenge dialog 2019-06-16 00:58:09 +08:00
Benau
44095088ee Avoid using extreme size in non-artist debug mode if going back from it 2019-06-16 00:47:35 +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
fb31ddc81f Fix cursor positioning with emoji in android 2019-06-15 16:26:57 +08:00
Benau
784c6715ad Fix composing text color 2019-06-15 15:00:03 +08:00
Benau
2b33917b91 Remove unneeded RTL handling in widgets and translation 2019-06-15 14:41:23 +08:00
Benau
8d1923acfd Remove unneeded translation.hpp in header files 2019-06-15 14:28:35 +08:00
Benau
20864d3c53 Return a copy of stringw in translation to remove the mutex lock 2019-06-15 14:26:13 +08:00
Benau
9a7210614b Remove fribidize in translation class 2019-06-15 14:11:14 +08:00
Benau
b5e5d44808 Remove no longer needed fribidize 2019-06-15 14:04:55 +08:00
Benau
fc143276fe Allow to use stringw directly when setText 2019-06-15 13:56:36 +08:00
Benau
a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Benau
caa0554127 Reserve enough space for newline text 2019-06-15 11:09:31 +08:00
Benau
64b8fc4466 Round next line offset to integer to avoid blurring effect 2019-06-15 11:08:11 +08:00
Deve
b892836e94 Fixed credits screen 2019-06-14 21:47:52 +02:00
Benau
64a28f5650 Move check_error after make to check correctly 2019-06-14 22:46:35 +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
c2339dc83b Make too long broken text draw as fit as possible 2019-06-14 20:39:30 +08:00
Benau
2eca3164b8 Improve cursor positioning for RTL text 2019-06-14 19:27:18 +08:00
Benau
69f71e4959 Fix post race info out of border when using big font 2019-06-14 15:33:43 +08:00
Benau
5589003a80 Fix RTL text missing in race result gui
We need to always specify the lower corner to allow auto RTL text
alignment working
2019-06-14 14:14:31 +08:00
Benau
1edb0b152e Use 4 spaces instead of tab for separation 2019-06-14 13:44:43 +08:00
Benau
e969a5a352 Reserve enough space for general textfield dialog for RTL text alignment 2019-06-14 13:26:33 +08:00
Benau
d51f7f4448 Avoid substr exception when using on-screen keyboard 2019-06-14 11:32:47 +08:00
Benau
c3a719cd4b Change some on-screen keyboard characters after FreeSans is removed 2019-06-14 11:03:51 +08:00
Benau
acc05bfcef Only toggleOnScreenKeyboard false if using it 2019-06-14 10:40:54 +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
Benau
84fa4ecac8 Fix text display with RTL 2019-06-14 01:45:21 +08:00
Deve
ec97bc8316 Always call drawTooltips.
If tooltips list is empty, then it does nothing and at least the list is cleared each frame.

It fixes a crash for #3957
2019-06-13 19:21:31 +02:00
Deve
8c4ace6c17 Call onUpdate before drawing is started.
No idea why it's in render() function, especially that some dialogs are self-destroyed in onUpdate.

It may need some testing if everything is ok.
2019-06-13 19:17:25 +02:00
Deve
c8099cd11d Fixed android compilation 2019-06-12 10:00:17 +02:00
Benau
392d3cfe86 Fix memory read error by moving destruction of dialog to onUpdate 2019-06-12 12:07:58 +08:00
Benau
effc0a27dc Always use thin border for fallback font (emoji)
Which avoids the scaling issue of border
2019-06-12 09:06:54 +08:00
Benau
f07110ed26 Fix #3936 2019-06-12 08:44:39 +08:00
Benau
65a54cbd8b Fix color emoji scaled wrongly with overbright color 2019-06-12 01:18:36 +08:00
Benau
c398ba4484 Fix server only build 2019-06-12 00:34:32 +08:00
Benau
d7cd98f636 Use a smaller ratio to waste less space 2019-06-11 16:30:06 +08:00
Benau
1707ac7e1e Use GlyphLayout to draw list widget 2019-06-11 16:29:35 +08:00
Benau
44796bc8c0 Use a better way to erase top text 2019-06-11 15:05:46 +08:00