Commit Graph
77 Commits
Author SHA1 Message Date
Unknown W. Brackets 2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets 0d4af49590 UI: Clarify error message.
Include both files, even if the platform only uses one of the two.
2021-12-11 09:01:15 -08:00
Henrik Rydgård d4237fd542 Split the atlas into three, well two, but two different cases for the fonts.
Platforms that can use OS fonts don't need font_atlas.zim but they do
need ascii font for debug, so does use asciifont_atlas.zim.
2021-12-10 23:22:08 +01:00
Henrik RydgårdandGitHub 4161b500ab Merge pull request #15021 from unknownbrackets/ui-font-atlas
UI: Support a second texture for just fonts
2021-11-09 22:51:09 +01:00
Unknown W. Brackets 49c64e12d1 UI: Add a way to disable tabs in tab strips. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets eb81d5b30b UI: Support a second texture for just fonts.
Will still allow using fonts between both.
2021-10-19 10:01:17 -07:00
Unknown W. Brackets d2ff66a660 UI: Clear textures on Begin.
On GLES, saw a texture bound to slot 1 when UI started to draw after an
emu frame, which caused a crash because there was no sampler.  Let's just
explicitly flush.
2021-10-12 20:34:43 -07:00
Henrik Rydgård 59b2604c14 Consistent sampler modes in UI to make Mali happy 2021-10-08 22:20:57 +02:00
Henrik Rydgård 944d2c3aa1 Set texture clamp mode for UI drawing. Fixes #14977, hopefully without breaking anything else.. 2021-10-08 00:22:50 +02:00
Henrik Rydgård bef9764700 Fix small mistake in Choice layout with image 2021-10-04 22:58:18 +02:00
Henrik Rydgård 08b7d646e8 Show text on the Browse button 2021-10-04 22:46:40 +02:00
Henrik Rydgård d390127cc6 Minor warning fix 2021-10-04 22:46:40 +02:00
Henrik RydgårdandGitHub cc43ce0404 Merge pull request #14944 from unknownbrackets/ui-touch-controls
Cleanup UI touch controls button handling
2021-09-28 19:37:29 +02:00
iota97 003a34ccf5 Increase few column width for long translation, make control binding a bit taller 2021-09-28 18:02:37 +02:00
Unknown W. Brackets 931ba43216 UI: Remove scroll to top on size change.
It wasn't actually used anywhere, and I don't see a reason for it now.
2021-09-27 23:39:33 -07:00
Unknown W. Brackets 374569ce7e UI: Keep scroll position on async load.
For the saved scroll position in the game list.
2021-09-27 23:37:31 -07:00
Unknown W. Brackets fc78b408b2 UI: Have scroll views directly remember their pos.
Kinda like checkboxes, cleaner this way.
2021-09-27 23:25:41 -07:00
Unknown W. Brackets 8f1cca8b83 UI: Use a proper view for touch control borders. 2021-09-27 17:42:47 -07:00
Unknown W. Brackets d623cae7cc UI: Fix measuring width constrained choices. 2021-09-26 07:55:38 -07:00
Unknown W. Brackets d9b39eed02 UI: Avoid math on calculated value width.
If we add an integer and then subtract an integer, our result may change
slightly, causing wrapping.
2021-09-25 07:59:18 -07:00
Unknown W. Brackets 4c7bbad89d UI: Shrink value for all choice variants. 2021-09-24 08:21:27 -07:00
Unknown W. Brackets d41c8b077a UI: Shrink value display if needed. 2021-09-24 08:09:43 -07:00
Unknown W. Brackets c1fbd4dd57 UI: Measure width of choice with values properly.
Otherwise we don't give it enough width (or potentially height) for the
label and value.
2021-09-24 07:13:56 -07:00
iota97 e8ad59371d Use icon rather than string for combo key setup 2021-09-22 23:05:33 +02:00
Henrik Rydgård 50e008e385 Browse -> OK. Align buttons. 2021-09-19 20:24:28 +02:00
Henrik Rydgård 97695d1f04 Style fix 2021-09-19 20:23:46 +02:00
Henrik Rydgård 80d4450e84 Show the path to access PSP data through USB in the settings screen. 2021-09-19 20:23:46 +02:00
Henrik Rydgård 74c842c951 Add image support to UI::Choice. 2021-09-19 20:23:46 +02:00
Henrik Rydgård 357293cd9f Implement the new MemStick screen experience (rough cut) 2021-09-19 20:23:46 +02:00
Henrik Rydgård cc9a739faf Fix the look of buttons with images. Use one. 2021-09-19 20:23:46 +02:00
Henrik RydgårdandGitHub b17ff0e5af Merge pull request #14818 from iota97/super-wp
Focus based moving background
2021-09-11 20:50:54 +02:00
Henrik Rydgård d3abcf1b56 Draw bullet points as circles for a consistent look regardless of system font. 2021-09-10 23:41:44 +02:00
iota97 c94e9ad73c Support ScrollView for focus position 2021-09-10 02:06:51 +02:00
iota97 ecab31ef8b Keep track of focus position 2021-09-09 17:35:19 +02:00
Unknown W. Brackets e9ebd86439 UI: Fix scrollview focus scroll before relayout.
Need to use the position of the bounds as of last layout, not the new
desired position.
2021-08-29 17:35:58 -07:00
Unknown W. Brackets 7a29a8bd48 UI: Handle WRAP_CONTENT in flexible scroll views.
If the scroll view had weight, it'd grow to the max size always.  Now it
still fits to the container, if that's what it's set to.
2021-08-29 16:39:14 -07:00
Unknown W. Brackets 5e3ffe94b3 UI: Allow scoll views to have specific height. 2021-08-29 14:11:32 -07:00
Unknown W. Brackets cf22268bc1 UI: Fix grids in ScrollViews and adjust gravity. 2021-08-29 14:10:14 -07:00
Unknown W. Brackets f7b92ebb29 UI: Try to keep button visible while mapping. 2021-08-28 16:29:27 -07:00
Unknown W. Brackets 202a9db885 UI: Add a screen to visualize PSP controls.
Currently, doesn't do anything.  But looks about right.
2021-08-28 14:09:06 -07:00
Henrik Rydgård b6228a1036 Add additional autoconf layout for xbox pads on Android. Revert the normal pad layout. 2021-08-28 15:38:03 +02:00
Henrik Rydgård 2e621a25a0 Keyboard/gamepad navigation: Change the formula for scoring neighbors.
Better behavior in the control mapping screen. Seems the distance bonus is no
longer required, the overlap is enough, especially if you boost it a little.
2021-08-22 12:13:09 +02:00
Unknown W. Brackets b43069109b UI: Avoid reselecting on page up at top. 2021-08-08 15:23:12 -07:00
Unknown W. Brackets 700a7baa9b UI: Refactor to reuse distance logic. 2021-08-08 15:20:18 -07:00
Unknown W. Brackets b52a495b96 UI: Handle focus on page up/down.
This moves keyboard focus along with paging, but it also only responds to
paging when already focused inside the scroll view.
2021-08-08 14:46:05 -07:00
Unknown W. Brackets 8df188af2b UI: Change focus with home/end. 2021-08-08 13:40:55 -07:00
Unknown W. Brackets fe949aafda UI: Track page up/down and home/end as focus moves.
Doesn't actually do anything yet when pressed.
2021-08-08 13:38:19 -07:00
Henrik Rydgård 707795e2e4 Improve translatability of memstick screen 2021-08-06 22:34:22 +02:00
Henrik Rydgård 3be1ff6ce4 Get the new setup flow going, with a confirmation dialog etc.
Moving the folder while already installed still crashes.
2021-08-04 23:22:43 +02:00
iota97 4489f1b312 Accept numpad enter as well 2021-07-26 08:28:46 +02:00