Unknown W. Brackets
b3b96ad993
UI: Use powered slider repeat on all devices.
...
Some devices send through repeats, but we want to do the increased speed
thing. It might be ideal to use its repeat rate settings, but we don't
have a good way to do that cross platform...
Fixes #8696 .
2016-09-05 16:16:10 -07:00
Unknown W. Brackets
42f8bbde50
UI: Make sliders increase with button held.
2016-09-05 16:14:01 -07:00
Unknown W. Brackets
740365235b
Make SplitString significantly faster.
...
This takes about 10% as long or less with simple strings, which really
improves UI layout performance when wrapping text.
2016-09-04 09:20:13 -07:00
Unknown W. Brackets
57e68be754
UI: Cache measured text sizes.
...
This can be a bit slow to ask the font renderer every frame, might as well
cache like we do the drawn version.
2016-09-04 09:10:50 -07:00
Henrik Rydgard
47cc898c65
Minor optimization in draw_text on Windows. May help #8953 a bit.
2016-09-04 15:27:55 +02:00
Kelly Youngblood
7d191ccc11
Adds --PS3 flag for PS3 controllr support on SDL.
2016-09-03 00:15:25 -05:00
Henrik Rydgård
6b4b21726b
Merge pull request #8913 from unknownbrackets/ui-tweaks
...
Add setting tips on selection
2016-08-16 15:02:42 +02:00
Unknown W. Brackets
da7a42a957
UI: Measure text with & in it properly.
2016-08-14 14:57:39 -07:00
Unknown W. Brackets
53cc4524b1
UI: Center multiline text more correctly.
2016-08-14 14:57:38 -07:00
Unknown W. Brackets
f4c735ee4e
UI: Allow scrollviews to wrap content.
...
In the opposing direction, we can't AT_MOST if we don't have a good size
and we're wrapping content. This can happen inside a LinearLayout.
2016-08-14 13:09:55 -07:00
Unknown W. Brackets
086dc9e0ed
Move Apple GL2.0 forcing to a common place.
2016-08-08 17:56:11 -07:00
Unknown W. Brackets
6088c7d5f5
Ensure elided core profile extensions are set.
2016-08-08 17:56:11 -07:00
Unknown W. Brackets
2e2674be21
Properly allow triggering a core context.
...
This will be useful on Mac.
2016-08-08 17:56:09 -07:00
Henrik Rydgård
0924dbfdee
Merge pull request #8900 from unknownbrackets/ui-text-wrap
...
Wrap text in many places where it makes sense
2016-08-09 00:16:13 +02:00
Unknown W. Brackets
f0a8e931ff
Remove UTF-8 BOMs from a few files.
...
And note the only ones that do need them in editorconfig.
2016-08-07 17:59:35 -07:00
Unknown W. Brackets
192d6ca60a
UI: Allow explicit newlines in popup choice titles.
2016-08-07 17:44:02 -07:00
Unknown W. Brackets
604d6113c1
UI: Allow choices and checkboxes to wrap.
...
If the text is too long, they will scroll down first, then wrap.
2016-08-07 17:35:41 -07:00
Unknown W. Brackets
d6820f3cc3
UI: Allow measuring text with a scale.
2016-08-07 16:49:50 -07:00
Unknown W. Brackets
ab3ed7d2ef
UI: Account for flexible things changing on wrap.
...
If something has a flexible width, that may affect its final calculated
height. This allows it to grow in such a situation.
2016-08-07 16:35:58 -07:00
Unknown W. Brackets
f7231686bd
UI: Make it easy to measure with spec info.
...
This still allows skipping a Measure() override, so that it can still
clamp properly.
2016-08-07 16:35:56 -07:00
Unknown W. Brackets
d00a2bbc04
UI: Specify max height for horizontal scroll.
2016-08-07 16:35:55 -07:00
Unknown W. Brackets
277983ce35
UI: Scale option text down when there's no space.
...
This way, smaller or portrait screens just get smaller text, rather than
jumbled text going off the side. Particularly important for some
translations.
2016-08-07 15:24:49 -07:00
Unknown W. Brackets
df5377b8d5
UI: Measure small text correctly in Qt/Windows.
2016-08-07 15:24:48 -07:00
Unknown W. Brackets
b37ac3580d
UI: Use a helper for vert/horiz margin sum.
2016-08-07 15:24:47 -07:00
Unknown W. Brackets
fd546ff21d
Fix some type comparison warnings.
2016-08-05 10:47:45 -07:00