Commit Graph
184 Commits
Author SHA1 Message Date
Eugene Sandulenko bba558770d GUI: Expose base GUI scaling to GUI. This bumps theme version. 2021-04-17 19:41:09 +02:00
Eugene Sandulenko 3f1ee55268 GUI: Cleanup not needed code 2021-04-11 21:21:44 +02:00
Eugene Sandulenko f88a622e9a GUI: Prerender SVG on theme loading
We know the resolution and we do reread everything on the resolution
change anyway. This simplifies everything: we just draw transparent
surfaces everywhere, regardless of their source format.
2021-04-11 21:21:44 +02:00
Eugene Sandulenko 2839715a45 GUI: Remove TransparentSurface remnants aka alphabitmaps from themes 2021-04-11 21:21:44 +02:00
Eugene Sandulenko bd083c7fa7 GUI: Switch GUI to ManagedSurface 2021-04-11 21:21:44 +02:00
Eugene Sandulenko af17cb30f4 GUI: Remove duplicate methods 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 3021f34060 GUI: Add support for specified dimensions for bitmaps in theme file
When we are using SVG, there is no reliable way to get the proper
dimensions. The original code was relying on the dimensions of
the BMP file, and then was using those for understanding the
rendering positions e.g. for PicButtons.
2021-04-11 21:21:44 +02:00
Eugene Sandulenko 7fe0073823 GUI: Render ManagedSurface widget with transparency 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 7937c4599c GUI: Implemented GraphicsWidget::setGfxFromTheme() 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 4a58f08a37 GUI: Load SVGs from theme 2021-04-11 21:21:44 +02:00
Eugene Sandulenko bdabb88acd GUI: Sync all themes with 'scalable' and bump theme version 2021-04-11 21:21:44 +02:00
Eugene Sandulenko fad56e39d1 GUI: Scale theme images 2021-04-11 21:21:44 +02:00
Eugene Sandulenko b29f457548 GUI: Scale theme on loading 2021-04-11 21:21:44 +02:00
Eugene Sandulenko a0d4162a2b GUI: Compute base scale factor and set it for ThemeParser 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 0634a45abd GUI: Added scummvm.ini path to the Paths tab. Bump theme version
Finally we could direct the users to the precise path where scummvm.ini
lives on their system. No more guessing.
2021-04-01 18:19:50 +02:00
D G Turner 0acdd23a8e GUI: Fix GCC Shadowing Warnings in Theme Engine Header 2021-03-28 02:54:23 +01:00
Cameron Cawley 76b25ec1c3 GUI: Add a checkbox to allow overriding the global backend settings 2021-03-15 16:52:52 +02:00
Matthew Jimenez f9f7d0eb10 GUI: Generate ExtraGuiOptions dynamically in a scrollable container (#2783)
This allows for the removal of hardcoded extra GUI options from the
theme files, and lifts restrictions related to the maximum number
of allowed ExtraGuiOptions
2021-02-20 13:17:11 +02:00
Lothar Serra Mari 4ee02f869c GUI: Add GUI option to always return to the Launcher instead of quitting
ScummVM
2020-12-02 22:39:22 +00:00
Cameron Cawley 11724f9df1 GUI: Add a tab for backend-specific options 2020-11-22 16:35:03 +00:00
athrxx e7476495ab GUI: prevent unloading of extra font on refresh
When hitting pause in a CJK SCUMM game and then switching to fullscreen the call to ThemeEngine::refresh() would kill the required extra font.
2020-10-31 20:47:02 +01:00
Thierry Crozat 7a1b3983a2 GUI: Remove unused functions in ThemeEngine
They were leftovers from the transition to U32String.
2020-10-30 22:54:09 +00:00
athrxx 5b6ffeaa3d GUI: allow ingame CJK dialogs regardless of the launcher language
This allows a text widget to be expressly marked as Japanese, Korean or Chinese, so that the theme engine may use an appropriate font.
2020-10-30 21:36:23 +01:00
Cameron Cawley 81f989be63 GUI: Use RGB cursors on supported platforms 2020-09-17 22:21:23 +02:00
Eugene Sandulenko 65e38680dd GUI: Added XML theme setting for overriding the fonts depending on the selected language.
- Added Japanese, Korean and Traditional Chinese fonts to fonts.dat
- Bumped fonts.dat file version to 1.4
- Bumped theme version to 0.8.39
- Regenerated built-in theme
2020-09-17 02:00:33 +02:00
aryanrawlani28 a1a4e0c2d7 GUI: U32: Overload getStringWidth to accept U32 strings as params 2020-08-30 14:43:41 +02:00
aryanrawlani28 aafade4507 GUI: U32: Shift most widgets to draw with u32
- ButtonWidgets (Button, Radio, Checkbox, dropdown)
- StaticTextWidgets
- PopUpWidgets
- Tabs
- Add a temporary overloaded drawDDText function to make other widgets draw normally
2020-08-30 14:43:41 +02:00
aryanrawlani28 51d95f8978 GRAPHICS: move start + end to Graphics::TextAlign 2020-06-22 00:03:02 +02:00
BLooperZ e6e32aeb75 GUI: use start + end for horizontal align 2020-06-22 00:03:02 +02:00
aryanrawlani28 1ae2de366b GUI: RTL: Improve tab drawing for rtl 2020-06-22 00:03:02 +02:00
aryanrawlani28 312862b541 GUI: RTL: Correctly draw backgrounds of Tabs 2020-06-22 00:03:02 +02:00
aryanrawlani28 d9fc7c5cba GUI: Bump theme versions to support RTL features 2020-06-22 00:03:02 +02:00
aryanrawlani28 4699880c99 GUI: RTL: Support internal flipping of Sliders 2020-06-22 00:03:02 +02:00
aryanrawlani28 50aa421bf3 GUI: RTL: Fix display issues with some widgets
- Fix missing DD for disabled dropdownbutton
- Fix scrollbar drawing issue
- Fix eating last chars in popup
- Fix tooltip alignment
2020-06-22 00:03:02 +02:00
aryanrawlani28 f55654f1bc GUI: RTL: Popup RTL Layout and Correctly draw them
GUI: RTL: Correctly draw popups
2020-06-22 00:03:02 +02:00
aryanrawlani28 143b9fb13c GUI: RTL: Radiobuttons and Checkboxes RTL layout 2020-06-22 00:03:02 +02:00
aryanrawlani28 a587624cb3 GUI: RTL: Internal flipping for DropDownButton 2020-06-22 00:03:02 +02:00
aryanrawlani28 d6a340d3b4 GUI: Cleanup hacky function for internal flip and fix review issues 2020-06-22 00:03:02 +02:00
aryanrawlani28 b8f51ce33a GUI: RTL: Base support for radiobuttons and checkboxes 2020-06-22 00:03:02 +02:00
Thierry Crozat 4a3697a21c GUI: Bump theme version
There have been some changes to the theme (adding achievements tab
and renaming some widgets) without updating the version. This made
it possible for ScummVM to use an older theme file and crash.
2020-05-17 21:10:26 +01:00
lolbot-iichan 73f1da2773 GUI: View checked inactive checkbox as grey, not invisible 2020-04-29 10:31:36 +02:00
Bastien Bouclet bcfb7145fa GUI: Allow engines to define a fully custom tab in the edit game dialog
By implementing MetaEngine::buildEngineOptionsWidget, engines can
instantiate a container widget that will be shown in the Engine tab of
the edit game dialog. The default implementation retains the existing
behavior and shows the extra GUI options.
2020-03-28 07:38:39 +01:00
Cameron Cawley 7488e17c0a GUI: Allow shaders to be selected for individual targets 2020-03-09 18:01:14 -05:00
Bastien Bouclet 9475192e81 ENGINES: Add a keymaps tab in the in-game options dialog 2020-02-22 13:14:04 +02:00
Bastien Bouclet a56383e699 TESTBED: Use a dedicated dialog layout for the configuration dialog
The testbed configuration dialog was previously re-using the browser
dialog. That dialog is defined to overlay the game list from the launcher
screen. However, while in the testbed engine the dimensions of
the layout of the launcher dialog may have been lost, causing the
configuration dialog to fail to layout.
2020-01-30 07:34:27 +01:00
Bastien Bouclet 511d138bbc KEYMAPPER: Move the remap dialog to an option dialog tab
The aim is to make it easy to discover, and possible to use without a
keyboard.
2020-01-26 23:09:08 +02:00
Cameron Cawley 8c1d277a77 GUI: Use a ScrollContainer for the Misc tab
Fixes Trac #10961
2020-01-22 07:55:42 +02:00
Bastien Bouclet cb2bb8fac7 GUI: Add clear button for the plugins path
The other paths have one.
2020-01-04 17:48:13 +01:00
Bastien Bouclet 2de01a3553 GUI: Bump the theme format version 2020-01-04 10:59:15 +01:00
Bastien Bouclet eb28c5a092 GUI: Use a dialog theme layout for the unknown game dialog 2020-01-04 10:56:25 +01:00