Commit graph

138 commits

Author SHA1 Message Date
Henrik Rydgård
91cca1c980 Improve scissor rect clipping. Affected D3D11 validation when maximizing/minimizing. 2023-01-24 16:48:13 +01:00
Unknown W. Brackets
7d13d87435 Windows: Fix MSVC 2017 compile. 2023-01-14 16:35:28 -08:00
Henrik Rydgård
69ff11fb40 UI: Make vertical scrollbars directly draggable. 2023-01-11 11:58:51 +01:00
Henrik Rydgård
c27689910e Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h 2023-01-11 10:56:31 +01:00
Henrik Rydgård
9547deb0c6 Simplify away some theme parameters. Make popups look better 2023-01-10 16:00:17 +01:00
Henrik Rydgård
07114c6aaf Remove return value from axis functions in API 2023-01-10 10:12:37 +01:00
Henrik Rydgård
a3a949f5e6 Remove touch() return values from screen hierarchy 2023-01-10 10:12:37 +01:00
Henrik Rydgård
c8a71894e3 Add "SetDrawTextFlags" to Choice to allow specifying DYNAMIC_ASCII 2023-01-09 11:22:35 +01:00
Henrik Rydgård
c3f8116309
Merge pull request #16699 from hrydgard/smooth-touchpad-scrolling
Fix smooth touchpad scrolling on Windows
2023-01-04 09:53:10 +01:00
Henrik Rydgård
a5747d53b3 Fix some report spam 2023-01-02 22:23:50 +01:00
Henrik Rydgård
30c591e813 Fix smooth touchpad scrolling on Windows
Forgot that I had half-implemented it but not finished it up..
2023-01-01 22:23:14 +01:00
Unknown W. Brackets
68fb7a477d UI: Fix tiny reverse dependency. 2022-12-27 15:18:35 -08:00
Henrik Rydgård
f68ba55f96 Minor initialization cleanups 2022-12-22 11:13:52 +01:00
Henrik Rydgård
630b7830fa Improve background drag behavior on display layout screen
If you moved into and mouse-up-ed over one of the menus while dragging
the background, it stopped registering movement and "up events" which
felt really awkward.

This is not super pretty, better would be a win32-SetCapture-like
mechanism but works okay.
2022-12-13 00:27:22 +01:00
Unknown W. Brackets
9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
a7b7bf7826 Global: Set many read-only params as const.
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
f44852bb18 Global: Cleanup virtual/override specifiers.
Also missing virtual destructors, hidden non-overrides, etc.
2022-12-10 21:13:36 -08:00
Henrik Rydgård
4ec1e2a175 Some minor initialization fixes, and one potential crash found by static analysis 2022-12-10 11:28:19 +01:00
Henrik Rydgård
e59b734b27 Fix case where we could write off the end of a buffer if texture width == 1 and 4-bit color. 2022-12-09 23:47:39 +01:00
Henrik Rydgård
7ff0030772 Added vertical layout for display layout screen 2022-12-08 16:04:20 +01:00
Henrik Rydgård
3e7f7ad8d7 Add CSS-style padding support to LinearLayout. Use to improve the look 2022-12-08 00:01:46 +01:00
Henrik Rydgård
42b74c6a9a Add background to the scroll views. Not really pretty but more readable 2022-12-07 23:12:09 +01:00
Henrik Rydgård
cd24d3edf9 Fix context menu translation support 2022-12-07 16:15:02 +01:00
Henrik Rydgård
241dd4093b Change the Settings toggle to a specially styled checkbox 2022-12-07 11:12:29 +01:00
Henrik Rydgård
a83a3f9d5d Declutter using a context menu, which I had to create from scratch. 2022-12-07 10:27:02 +01:00
Henrik Rydgård
39b627c0c1 Fix layout issues, misc cleanup and comments 2022-12-07 10:27:02 +01:00
Henrik Rydgård
aed5d76fbc Make the post shader list more editable 2022-12-07 10:27:02 +01:00
Henrik Rydgård
82680633e7 More usability tweaks 2022-12-07 10:27:02 +01:00
Henrik Rydgård
b938992da4 Add a new centering capability to AnchorLayout 2022-12-03 19:13:21 +01:00
Henrik Rydgård
25e8f8385e Redo the control UI screen layout, slightly update the look 2022-11-30 10:56:29 +01:00
Henrik Rydgård
20a337f25b Initialization cleanup (no effect) 2022-11-30 10:15:36 +01:00
Henrik Rydgård
0ff5e0a955 Add checks preventing a number of "possible" divisions by 0 in layout 2022-11-30 10:15:30 +01:00
Henrik Rydgård
0a3d78221e Fix drag-background-through-buttons problem by adding "touch exclusive" mode to viewgroups.
Not using universally because I don't want to debug all the issues...
2022-11-27 16:16:18 +01:00
Henrik Rydgård
23ba0d0515 Fix layout issues in AbstractChoiceWithValueDisplay. Remove title text from post shaders to fit. 2022-11-25 10:23:59 +01:00
Henrik Rydgård
d551d2a3ed Pause menu background: Remove complicated transparency tricks, instead draw game as part of background. 2022-11-22 12:11:20 +01:00
Henrik Rydgård
ec6d330ae4 Move AsyncImageFileView to Common, which required some more shuffling around of stuff. 2022-11-21 20:38:20 +01:00
Lubos
011592754f OpenXR - Use mouse control only 2022-11-17 12:19:17 +01:00
Unknown W. Brackets
c20bcc1f08 UI: Avoid enum/float comparisons. 2022-11-12 12:30:04 -08:00
Lubos
ade606bc3c OpenXR - Hookup VR API into Vulkan 2022-10-12 16:21:54 +02:00
Henrik Rydgård
262a306b9a Flag shader blending as broken on Adreno for now. 2022-09-16 19:19:42 +02:00
Henrik Rydgård
0b9d6f9cb0 Log the screen tag when logging scissor errors. 2022-09-16 10:32:09 +02:00
Henrik Rydgård
9f3851678e Add tags to all our UI screens. Useful to debug UI problems. 2022-09-16 10:14:00 +02:00
Lubos
2adc7269a3 Merge branch 'master' into feature_openxr_stereo 2022-08-28 21:55:15 +02:00
Unknown W. Brackets
da53ab8ef9 UI: Validate UI scissor inside bounds. 2022-08-28 09:01:35 -07:00
Lubos
c2c0561be2 OpenXR - OPENXR ifdef removal 2022-08-27 17:33:37 +02:00
Lubos
c71ecd7756 OpenXR - Unused parameter removed 2022-08-14 11:47:33 +02:00
Henrik Rydgård
e7e1bb6079 UWP: Fix missing font file causing missing text fields. Fixes #15771 2022-08-04 10:44:12 +02:00
Lubos
8daba0d881 OpenXR - Finalize VR renderer interface 2022-07-24 14:14:21 +02:00
Lubos
a08325e52f OpenXR - UI scale/resolution fixed 2022-07-17 14:55:20 +02:00
Lubos
48cd392861 OpenXR - Rendering UI fixed 2022-07-15 21:52:34 +02:00