Commit Graph
602 Commits
Author SHA1 Message Date
Henrik Rydgård 4f91d7a71a More layout work, more use of MessagePopupScreen instead of PromptScreen 2025-11-10 15:23:29 +01:00
Henrik Rydgård f12fc14d3c Fix some layout issue with popup screens. Start moving away from PromptScreen where possible. 2025-11-10 13:37:25 +01:00
Henrik Rydgård 9de8e75709 AnchorLayout: Allow centering separately for horizontal and vertical 2025-11-10 12:10:08 +01:00
Henrik Rydgård 0453fb5449 Move PopupScreen base class into PopupScreens.cpp/h 2025-11-10 10:26:38 +01:00
Henrik Rydgård 9e480565bb More padding fixes 2025-11-09 22:33:03 +01:00
Henrik Rydgård 67a7e8cd97 Fix some measurement problems.
Part of #20803
2025-11-09 16:25:52 +01:00
Henrik Rydgård bf5e524243 Add multi-font support to the final text-rendering backend (SDL_ttf) 2025-11-09 08:52:21 +01:00
Henrik Rydgård 4283e66a12 Font style rework: Windows part 2025-11-09 08:52:21 +01:00
Henrik Rydgård 980ddb152b UI fixes, add SimpleTextView (easier to reason about) 2025-11-09 08:52:20 +01:00
Henrik Rydgård d34da520be Correct measurements in Choice buttons when there's both text and an image 2025-11-09 08:51:41 +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 9089eb38cb Fix shadowing issue in TabHolder that messed up the direction of tab switching animation 2025-11-05 22:12:39 +01:00
Henrik Rydgård 48ba3d99d3 GameSettingsScreen: Add tab icons. In portrait mode, use only icons on the tabs. 2025-11-05 15:29:34 +01:00
Henrik Rydgård 75020e2ed7 Add ability to put icons on tabs 2025-11-05 14:42:49 +01:00
Henrik Rydgård 67010ff2af Split the display layout config between landscape and portrait orientations 2025-11-05 12:49:51 +01:00
Henrik Rydgård e2e4ceb525 Fix UI alignment problem on pause screen 2025-11-04 11:06:06 +01:00
Henrik Rydgård 89b3abbe7b More topbar styling 2025-10-29 09:43:16 +01:00
Henrik Rydgård 42a44e4243 Improve inset handling 2025-10-28 14:54:28 +01:00
Henrik Rydgård b660dcee2b Various inset and margin fixes and improvements 2025-10-28 13:59:37 +01:00
Henrik Rydgård 138be54f6a More misc work 2025-10-28 11:54:07 +01:00
Henrik Rydgård 45ef8120f3 Minor UX 2025-10-27 13:17:48 +01:00
Henrik Rydgård 412e4ae015 Avoid having the back button scroll with the rest of the tab titles 2025-10-23 18:55:28 +02:00
Henrik Rydgård afdafaa68e Fix a small bug in the sound chooser. Cleanup 2025-10-23 18:47:19 +02:00
Henrik Rydgård acf273a55a Rename "vertical layout" to "portrait layout", to avoid confusion 2025-10-23 16:11:54 +02:00
Henrik Rydgård 0397fe5e91 Refactor main screen code some more 2025-10-23 16:05:23 +02:00
Henrik Rydgård 2404fc330d In vertical mode, replace the mainscreen buttons with image buttons 2025-10-23 15:43:08 +02:00
Henrik Rydgård 1514df8e3a Add a much more usable back button to Settings screen in portrait mode 2025-10-23 13:48:41 +02:00
Henrik Rydgård 7b743071d2 Prepare for adding more sensible back buttons to TabbedDialogScreen portrait mode 2025-10-23 12:46:07 +02:00
Henrik Rydgård b45d07d6cb Break out TabHolder from Common/UI/ViewGroup.cpp. A few new atlas images 2025-10-23 11:19:20 +02:00
Henrik Rydgård c29eb5097b Use the more accurate sleep function in the UI throttling 2025-10-21 12:11:23 +02:00
Henrik Rydgård b4b9ae2d3c Fix the OnClick behavior on checkboxes, oops. Fixes cheats. 2025-09-30 12:38:38 -05: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 58456ae950 Remove the UI::EventReturn return values. Makes editing the UI nicer. 2025-09-15 11:09:00 -06:00
Henrik Rydgård 730fd4754e Events now only have one handler, remove the neeed for event chaining in CheckBox 2025-09-15 10:33:18 -06:00
Henrik Rydgård c17fb20ac5 Remove UI::EVENT_SKIPPED, not any real need for it 2025-09-15 10:15:08 -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 c9acf8e80e More std::string_view 2025-08-31 20:20:59 +02:00
Henrik Rydgård f83b9c511d Delay checking for active backend until you click the Backend popup 2025-08-31 00:59:51 +02:00
Henrik Rydgård 3268d2afd0 ScrollView: Add a subtle drop shadow to the top. 2025-08-28 23:21:32 +02:00
Henrik Rydgård 14376a05f6 Add fallback for missing modes 2025-08-21 01:28:02 +02:00
Henrik Rydgård 5e05a6d0ac Get rid of some more backward Common/Core dependencies 2025-08-06 00:16:35 +02:00
Henrik Rydgård f7263ecaf5 Fix coloring of sliders when dragging
Fixes #20617
2025-07-20 11:16:46 +02: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 6271af52e9 Add the new low-latency WASAPI backend. Implement audio device selection on Windows 2025-06-16 22:40:13 +02:00