Commit Graph

36 Commits

Author SHA1 Message Date
Henrik Rydgård 75453632f9 Handle inset adjustements on the C++ side, handle them better in the UI. 2026-03-14 18:13:37 +01:00
Henrik Rydgård 160e2c4f9b Refactor: Call GetLayoutBounds on the screen instead of the context where possible.
This will allow screens to influence the layout bounds in a unified way
2026-03-14 13:07:48 +01:00
Henrik Rydgård 1ea93e2913 Small refactor of text rect measurement. Add move/resize icons 2025-11-27 11:50:22 +01:00
Henrik Rydgård dede6dc10e Eliminate annoying flicker on GameScreen 2025-11-25 15:46:33 +01:00
Henrik Rydgård c4c29ab6b3 Fix issue with UI atlas being generated unnecessarily on mobile 2025-11-22 10:29:21 +01:00
Henrik Rydgård 6d1973edfb Add banners on the top of settings pages, if editing game-specific settings show the icon. 2025-11-09 08:51:41 +01:00
Henrik Rydgård 56d3dae334 Avoid regenerating the UI Atlas if unnecessary (faster resize) 2025-11-06 23:44:55 +01:00
Henrik Rydgård 42a44e4243 Improve inset handling 2025-10-28 14:54:28 +01:00
Henrik Rydgård 4a50174d14 Support dpi scaling in SVG atlas generation 2025-09-20 10:00:05 -06:00
Henrik Rydgård 21354c8671 Add a way to force recreating the UI atlas in developer tools 2025-09-17 09:49:54 -06:00
Henrik Rydgård 52c4c31508 Runtime atlas generation 2025-09-17 09:49:54 -06:00
Henrik Rydgård daa593bdcb Invert the relationship for loading atlas textures 2025-09-15 12:42:11 -06:00
Henrik Rydgård a354a694b3 UIContext: Fix comment, null-initialize theme just because. 2025-09-15 11:42:42 -06:00
Henrik Rydgård e78341b822 Hide theme behind an accessor (so we can expose it only as const) 2025-09-15 09:31:18 -06:00
Henrik Rydgård e39c78dab2 Remove the ability of themes to control the UI atlas (temporary) 2025-09-13 19:58:07 -06:00
Henrik Rydgård f410b7e6ea Show a tiny indicator in the top left of the screen when the game is saving or loading. 2025-07-10 15:11:59 +02:00
Henrik Rydgård 4d6905672e Bunch more linting 2024-10-10 11:57:10 +02:00
Henrik Rydgård 306c28c2cc Remove lots of now-unnecessary ".c_str()" 2024-05-24 22:53:13 +02:00
Henrik Rydgård 0f94482d36 More string_view in text drawing 2024-05-24 12:40:10 +02:00
Henrik Rydgård 812b1024f0 Move TouchTestScreen to DevScreens 2023-12-14 19:01:19 +01:00
Henrik Rydgård 2aca8fe3f9 Get rid of more unnecessary uses of ManagedTexture 2023-12-12 23:13:45 +01:00
Henrik Rydgård 48d60d8613 Remove UIContext knowledge of screen tags 2023-12-10 22:21:50 +01:00
Henrik Rydgård 376db1f931 Remove the unused "front" draw2d buffer. Saves 1.5MB of RAM. 2023-12-08 12:29:24 +01:00
Henrik Rydgård 4108dcec23 Unify CalculateTextScale 2023-07-17 12:02:32 +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
Unknown W. Brackets 68fb7a477d UI: Fix tiny reverse dependency. 2022-12-27 15:18:35 -08: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 0b9d6f9cb0 Log the screen tag when logging scissor errors. 2022-09-16 10:32:09 +02:00
iota97 53fe6940df Allow to change atlas per theme 2022-04-01 09:59:40 +02: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
iota97 003a34ccf5 Increase few column width for long translation, make control binding a bit taller 2021-09-28 18:02:37 +02:00
Henrik Rydgård c76fe9cec4 Assorted paranoid cleanups, inspired by #14082 2021-02-10 00:20:52 +01:00
Henrik Rydgård 02a771c049 Add texture to flat shaded test. 2021-01-17 13:44:57 +01:00
Henrik Rydgård a30b521257 Adds two new tests to GPU driver test screen: Adreno shader logic test and flat shading
The adreno test tests for the bug mentioned in #13910.
Very clear repro on Adreno 630, Pocophone F1.

The flat shading test is an untested attempt at a repro of

(will test that tomomorrow).
2021-01-17 13:29:36 +01:00
Henrik Rydgård 0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård 4f43cff5ca Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00