Henrik Rydgård
4108dcec23
Unify CalculateTextScale
2023-07-17 12:02:32 +02:00
Henrik Rydgård
43d780b552
Fix issue where achievement sounds didn't play if UI Sounds were off.
...
These are meant to be unrelated.
2023-07-16 21:43:49 +02:00
Henrik Rydgård
7eb1bfe1aa
Spacing default 0.0 in collapsible sections, set spacing for achievements a little higher
2023-07-16 18:23:43 +02:00
Henrik Rydgård
f8b7346b8d
Make the achievement lists collapsible on the main achievements screen
2023-07-16 18:13:36 +02:00
Henrik Rydgård
8a59ed0062
Add function ApplySafeSubstitution for translation strings with parameters
2023-07-16 16:26:49 +02:00
Henrik Rydgård
df104c66a8
Add back lost ini parameter
2023-07-16 14:23:06 +02:00
Henrik Rydgård
bd4f3f8953
Start work on making sound effects customizable
2023-07-16 12:56:46 +02:00
Henrik Rydgård
2537f76277
UI: Add a basic FileChooserChoice view
2023-07-16 12:14:40 +02:00
Henrik Rydgård
ebc0afc828
Remove some logging
2023-07-16 00:20:55 +02:00
Henrik Rydgård
04351a18f6
Address feedback
2023-07-16 00:20:09 +02:00
Henrik Rydgård
5023f2cb6c
Fix key event processing issue.
...
Fixes #17712
2023-07-14 12:01:38 +02:00
Henrik Rydgård
66e54dee11
Minor iconcache update
2023-07-13 16:47:06 +02:00
Henrik Rydgård
86ee2253ee
Save/Load the icon cache to disk if RetroAchievements are enabled.
...
Should reduce the server load a bit.
2023-07-13 12:44:20 +02:00
Henrik Rydgård
af92430b18
Achievement Unlocked and Leaderboard Submitted sound effects
2023-07-12 19:55:53 +02:00
Henrik Rydgård
f1ff12784a
Allow flexible sample rate for UI sound effects
2023-07-12 17:55:49 +02:00
Henrik Rydgård
4ae3c519e2
Add assorted null checks for safety
...
More probably needed. Should at least hopefully fix the leaderboard crash reported in #17631
Will try to do something more systematic later.
2023-07-10 19:27:07 +02:00
Henrik Rydgård
0bf0a4a1ef
UIContext: Add an easy way to draw drop shadows under rectangular things
2023-07-08 18:25:00 +02:00
Henrik Rydgård
952e125c7e
Break out rendering of "notices" from OnScreenDisplay. They can now also be used as views.
...
Use it for the new message in ControlMappingScreen, when you try to map
a combo when that's disabled. It'll have more uses.
2023-07-07 15:23:19 +02:00
Henrik Rydgård
e182837f86
Remove left-over debug logging
2023-07-07 15:16:47 +02:00
Henrik Rydgård
b56b3b43c7
Y-flip menu analog stick mapping on Switch
2023-07-06 20:29:26 +02:00
Henrik Rydgård
f27850ec1d
Minor cleanup in MoveFocus, set tags on screen roots for debugging
2023-07-06 16:34:54 +02:00
Henrik Rydgård
26e097923d
Fix issue with analog stick menu navigation caused by processing UI events twice per frame
2023-07-06 16:34:18 +02:00
Henrik Rydgård
cbd012f522
Cleanups around focus moves
2023-07-06 16:13:25 +02:00
Henrik Rydgård
356cc64eb5
Logging improvements, cleanup
2023-07-06 14:56:52 +02:00
Henrik Rydgård
c46d6e16b8
UI root: We should "accept" all key events that we don't determine special
2023-07-06 14:55:15 +02:00
Henrik Rydgård
fc3f7da3af
TouchTestScreen: Have 8 entries logged instead of 2.
2023-07-06 11:48:25 +02:00
Henrik Rydgård
69a5ca0e1d
A bunch of visual updates and fixes. Lots left to polish.
2023-06-26 10:01:42 +02:00
Henrik Rydgård
cf587d2ccc
More cleanup after making PopupTextInputChoice choose method automatically
2023-06-22 09:01:14 +02:00
Henrik Rydgård
337668af3e
Make PopupTextInputChoice smarter (use native dialog if possible)
2023-06-22 08:58:30 +02:00
Henrik Rydgård
0a1bf5532d
UI: Allow showing popup string values as password stars
2023-06-22 08:58:29 +02:00
Henrik Rydgård
d6552a7673
Implement an "OverlayScreen" concept. OSD can now render on top of other screens than EmuScreen.
2023-06-20 10:44:47 +02:00
Henrik Rydgård
300a64a86d
IconCache: Remove texture objects quite quickly after it stops getting used.
...
They can be recreated pretty quickly as needed.
2023-06-18 15:24:56 +02:00
Henrik Rydgård
6f9941dafa
Crashfix during clearing
2023-06-18 15:14:42 +02:00
Henrik Rydgård
2bf2f745e2
IconCache: Add pending state to avoid duplicate downloads in some cases
2023-06-18 14:54:11 +02:00
Henrik Rydgård
cb5926761b
Add a way to monitor the icon cache from the system info screen.
2023-06-18 14:18:45 +02:00
Henrik Rydgård
2bee5b64e4
Add new icon cache, for caching small images.
...
It doesn't try to insert or fetch missing things itself, re-fetching is up to the caller.
This will be required for handling the many achievement icons.
Saving/loading the cache to a single file on disk is implemented but not
hooked up yet. It works without it, though of course will have to
re-fetch things on the next startup.
2023-06-18 14:11:12 +02:00
Henrik Rydgård
9f88dbd656
Icon cache for UI rendering
...
This will be needed for achievements, and has uses already now.
2023-06-18 14:11:12 +02:00
Henrik Rydgård
bb40baefb5
Fix issue with volume keys in the app UI
2023-06-13 00:47:48 +02:00
Henrik Rydgård
50aa598ed1
Fix handling events in "empty" (no root) UIScreens
2023-05-27 00:35:25 +02:00
Henrik Rydgård
3715b1ffa1
Split the functions up, so you don't have to care about the Unsync ones at all in most cases while still getting synced behavior.
2023-05-26 18:41:13 +02:00
Henrik Rydgård
cca613e785
Initial work on queueing up UI events for processing. Key events excepted for now.
2023-05-26 18:41:13 +02:00
Henrik Rydgård
2675d6ea43
Input event and device enums ( #17514 )
...
* Switch deviceID from int to enum InputDeviceID, globally
* Switch axisId to enum InputAxis
* Change int keycodes to InputKeyCode where it makes sense.
* SDL input buildfix
* SDL keycode buildfix
* Switch on enum warning fixes
* Qt keycode buildfix
* iOS keycode buildfix
* UWP keycode buildfix
* More iOS buildfix
* More iOS buildfix
* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Henrik Rydgård
736ba3dd90
Merge pull request #17357 from unknownbrackets/game-search
...
Add half of game list search
2023-05-23 08:31:04 +02:00
Henrik Rydgård
311a1a0fe2
Fix glitch when mapping analog inputs, caused by multiple TriggerFinish caused by stray analog axis events.
...
ADd some guards all over the place against the same thing.
2023-05-06 15:33:28 +02:00
Henrik Rydgård
3148a8a437
PopupMultiChoiceDynamic: Check that valueStr_ isn't null before writing to it. Don't see how this happened.
2023-05-04 08:59:12 +02:00
Henrik Rydgård
a132b72ba1
Paranoia
2023-05-04 01:24:31 +02:00
Henrik Rydgård
838ef03815
Fix ScrollView crash (though the root cause is a race condition most likely)
2023-05-01 10:37:30 +02:00
Henrik Rydgård
efa167e2b4
Accept number format strings like "%i%%" (results in "30%" if i == 30).
...
Fallout from #17349
2023-04-30 10:40:32 +02:00
Unknown W. Brackets
ce0324b611
UI: Correct grid view V_GONE handling.
2023-04-29 11:44:55 -07:00
Henrik Rydgård
6945deec01
Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy
2023-04-28 21:04:05 +02:00