Commit Graph
746 Commits
Author SHA1 Message Date
Matthew Jimenez 5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Lars Sundström 3c36c1fbc3 GUI: Put backend options tab elements into a ScrollContainer
The backend options tab is for backend specific options. The backends
supporting it implements the function buildBackendOptionsWidget which
defines the options elements and layout.

The backend options tab layout may differ depending on the current
domain. The options in the "Global options" tab applies to all games
while the options in the "Game options" tab only applies to a specific
game. The options in the "Global config" options tab can be set during
game play. Some options, e.g. graphics cannot be changed while running
the game while backend options can.

The first version of the backend options tab was a non-scrollable
container. The "Game options" tab includes an "Override Global options
checkbox" which, when checked, enables the options defined by the
backend.

The number of iOS7 backend options increased rapidly which caused some
options to fall outside the tab container on screens with limited
space in height. An attempt to fix that was made by the same creator
of this commit in the commit: 8db736f155

The attempt was not perfect in any way, else this commit wouldn't
exist... The "Override Global options checkbox" on the "Game options"
tab became misplaced. It also required the backend to add padding
to GUI elements it shouldn't know of.

To fix this properly put the backend options tab in a single Scroll-
Container. This way the "Override Global options checkbox" can be
properly placed related to the backend options widgets. All backend
options can also be accessed in every backend options tab layout,
Global options, Game options and Global config thanks to the scrollbar
automatically provided by the ScrollContainer.

Update all themes with the new layout.
2024-03-11 01:03:37 +01:00
Eugene Sandulenko 6db11ef605 GUI: Allow manual setting of custom GUI scale values
We keep this value and do not override it
2024-01-20 20:56:53 +01:00
Eugene Sandulenko c1aca01197 GUI: Add percentage values to the gui scale values 2024-01-20 20:34:45 +01:00
Eugene Sandulenko 10a7b42587 GUI: Added more GUI scale values
Should we add a slider perhaps?
2024-01-20 20:15:59 +01:00
elasota 6a1909a162 GUI: Fix garbled browser last path on Windows 2024-01-08 17:18:40 +02:00
Cameron Cawley 5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe ed9ded9e83 GUI: Migrate GUI to Path class 2023-12-24 13:19:25 +01:00
Le Philousophe 2f34975164 COMMON: Make shaders API use the Path class 2023-12-24 13:19:25 +01:00
Le Philousophe 01ebece807 COMMON: Make getDefaultConfigFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe d9a8131ba2 COMMON: Make getDefaultLogFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Thierry Crozat 0577893055 GUI: Indicate when a default soundfont is used in options 2023-12-03 16:17:32 +00:00
Eugene Sandulenko ab2b2b2396 GUI: CLarified captions for downloading shaders and icons
THe users get confused as they think it is some kind of a refresh.

Use "Download Icons" instead of "Update Icons". Same for the shaders.
2023-11-11 00:00:18 +01:00
Le Philousophe 0043d344a9 BACKENDS: Avoid passing arguments by value in cloud and networking
Use references everywhere it's possible.
Use override keyword to raise errors when there are discrepancies.
2023-10-29 01:51:38 +02:00
Thierry Crozat 8f9cdff4a7 GUI: Add function in GuiManager to query if low-res GUI should be used
The same condition was scattered around in the code to switch between
normal labels and images and their lowres counterparts. Factorizing
that condition in a function will allow changing it easily.
2023-10-09 21:04:08 +01:00
Thierry Crozat aa7572ef1e GUI: Fix testing width for lowres labels on HiDPI screens 2023-10-09 21:04:08 +01:00
AndywinXp 74769d00ff GUI: Fix crash when no shader was set 2023-10-04 23:39:35 +02:00
Eugene Sandulenko 272f884419 GUI: Fix crash in shader controls 2023-09-20 09:49:09 +02:00
Eugene Sandulenko 4875573f66 GUI: Disable shader controls instead of hiding them. Prvides better UX 2023-09-17 20:38:37 +02:00
Ankush Dutt c1d1e4e411 DLC: Add dlcpath in Global Options 2023-09-14 08:22:56 +02:00
Cameron Cawley 9c86add634 ENGINES: Remove MetaEngineDetection::parseAndCustomizeGuiOptions() 2023-08-28 22:59:50 +02:00
elasota 8bb2afd217 AUDIO: Change default GM device to "auto" 2023-08-28 22:06:19 +02:00
Eugene Sandulenko d9dbed2d3c GUI: Better wording for the fixed size font checkbox tooltip 2023-07-19 21:34:33 +02:00
Eugene Sandulenko 73ea1caedf GUI: Added checkbox to disable BDF scaling. Bump theme version 2023-07-19 15:30:22 +02:00
antoniou79 68c293a004 GUI: Ommit aspect ratio checkbox if this feature is missing
Also fix compilation when building for --disable-aspect (buggy end bracket in backends/graphics/surfacesdl/surfacesdl-graphics.cpp)
2023-06-17 20:21:29 +02:00
Miro Kropacek 6e4d7798f9 GUI: Remove redundant redraw calls
When calling any of:

- Widget::setEnabled
- EditTextWidget::setEditString
- EditableWidget::setEditString
- StaticTextWidget::setLabel

there is no need to call neither GuiManager::scheduleTopDialogRedraw nor
Widget::markAsDirty afterwards -- they set up the call by themselves.

Also, refactor a couple of code blocks into calling just
GuiManager::redrawFull as it does the same thing.
2023-05-10 22:52:48 +02:00
elasota eab1a92a6d GUI: Fix signed/unsigned mismatches 2023-04-09 12:50:01 +02:00
Alexander Tkachov f3149a9b5d CLOUD: Add new connection wizard
- remove Options widgets of the old wizard;
- add CloudConnectionWizard dialog;
- remove old widgets and add new ones in the layouts;
- update local webserver to allow passing a callback that needs to be called if storage was connected via /connect_cloud.
2023-04-08 16:20:11 +02:00
D G Turner 0cfc163515 GUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warning 2023-03-28 23:27:10 +01:00
Eugene Sandulenko 8952ceaa2f GUI: Process empty log path and gracefully process unreadable paths 2023-03-27 00:24:46 +02:00
Eugene Sandulenko 1737d9bd9d I18N: Fix I18N comment placement 2023-03-25 20:54:17 +01:00
Eugene Sandulenko 07a52898ed GUI: Reflect command line override for the log path 2023-03-25 19:44:15 +01:00
Eugene Sandulenko cf578e832b GUI: Expose Debug Level int the GUI (Misc tab), bump theme version 2023-03-25 17:11:21 +01:00
Eugene Sandulenko 42c68234bb GUI: Display scummvm.log path and add viewer 2023-03-25 17:11:21 +01:00
Cameron Cawley 079713e7a8 GUI: Simplify palette code 2023-02-08 00:09:39 +01:00
Cameron Cawley c165cfb6e9 GUI: Don't create a popup for anti-aliasing levels if they're not supported 2023-02-05 23:16:06 +01:00
Cameron Cawley 5f7f242239 GUI: Don't create a popup for 3D renderers if they're not supported 2023-02-05 23:16:06 +01:00
Cameron Cawley ce4bbb2233 GUI: Don't create popups for scalers if they're not supported 2023-02-05 23:16:06 +01:00
Cameron Cawley 5f06b599c8 GUI: Don't create a popup for the stretch mode if it's not supported 2023-02-05 23:16:06 +01:00
Cameron Cawley 6903fb4be1 COMMON: Simplify API for getHumanReadableBytes() 2023-02-05 23:08:21 +01:00
Walter Agazzi dcf27268f4 GUI: Also fix achievements strings for lowres 2023-01-22 15:46:30 +01:00
Walter Agazzi e457a45027 GUI: Show complete strings in Achievements tab 2023-01-22 15:46:30 +01:00
Cameron Cawley 138a983d80 COMMON: Refactor VSync handling to match the other options 2023-01-16 18:09:53 +01:00
Eugene Sandulenko fcb2182266 GUI: Move the icon-related code from the DownloadPacksDialog to the options 2023-01-08 14:10:27 +01:00
Eugene Sandulenko 965f0f370f GUI: Implemented shader packs downloading 2023-01-08 01:15:53 +01:00
Eugene Sandulenko 31afcec77c GUI: Generalize DownloadPacksDialog 2023-01-08 01:15:53 +01:00
Eugene Sandulenko 4d0f0fda52 GUI: Renamed DownloadIconsDialog -> DownloadPacksDialog 2023-01-08 01:15:53 +01:00
Eugene Sandulenko ee33e99357 GUI: Rename downloadiconsdialog.* -> downloadpacksdialog.* 2023-01-08 01:15:53 +01:00
Eugene Sandulenko 5de84d8724 GUI: Added button for updating shaders 2023-01-08 01:15:53 +01:00
Eugene Sandulenko 8f469af5dc GUI: Added alternate file picker to ShaderBrowser 2023-01-08 01:15:52 +01:00