Commit Graph

4113 Commits

Author SHA1 Message Date
Thierry Crozat
ae46396a3d GUI: Remove unused localized bdf fonts 2021-10-02 23:50:21 +01:00
Thierry Crozat
f3829243a1 GRAPHICS: Remove obsolete genLocalizedFontFilename FontManager
This function supported loading alternative bdf fonts when we were
using 8 bits encodings for the translations. Now that we are using
unicode for all language, this is no longer needed.
2021-10-02 23:50:21 +01:00
Thierry Crozat
6043a4e40c GUI: Remove query of charset in ThemeEngine
This was only used to be part of the name under which loaded TTF
fonts are stored in the FontMan font map. But since all the
languages now use the same charset (UTF-32), there is no longuer
a need to include the charset in the name. We still need to
differentiate between bdf fonts that can only be used for English
and TTF fonts, but this is is the case due to the font size being
included in the name. And otherwise we could just add a hardcoded
"-ttf" in the name.
2021-10-02 23:50:21 +01:00
Thierry Crozat
ebd8915009 GUI: Simplify builtin language check 2021-10-02 23:50:21 +01:00
Thierry Crozat
5e3b44f19d GUI: Cleanup Theme loading language error check
We used to have different charsets depending on the language and
a different set of fonts for each one. So themes could support
some language and not others depending on the fonts it contained.
Now all languages are using UTF-32, except English. So the only
case that can fail is when not using English and the Theme does
not have TTF fonts.
2021-10-02 23:50:21 +01:00
Paweł Kołodziejski
738e400f43
GUI: Ported ResidualVM theme into remastered 2021-10-01 15:04:32 +02:00
Cameron Cawley
576ac2e9d3 GUI: Update the builtin theme 2021-09-30 16:57:58 +01:00
djsrv
4667ffea96 CREDITS: Update name 2021-09-23 11:48:05 -04:00
Cameron Cawley
2f99746d8d ENGINES: Allow implementing registerDefaultSettings in the MetaEngine class 2021-09-18 11:57:29 +02:00
Scott Percival
666f241d29 EVENTRECORDER: Remove backwards compatibility 2021-09-09 19:32:02 +02:00
Scott Percival
1040bd2862 EVENTRECORDER: Fixes based on feedback 2021-09-09 19:32:02 +02:00
Scott Percival
29d6758c0d EVENTRECORDER: Add update mode
This new mode is functionally identical to playback mode, however
a new recording file is used to track the actual output of ScummVM.
This feature can be used to update a suite of existing recordings after
a renderer or a timing change.
2021-09-09 19:32:02 +02:00
Scott Percival
84707ec828 EVENTRECORDER: Prevent recursive call to warpMouse 2021-09-09 19:32:02 +02:00
Scott Percival
0112fab176 EVENTRECORDER: Filter GUI redraws from the logs 2021-09-09 19:32:02 +02:00
Scott Percival
13a20e11e6 EVENTRECORDER: Disable autosave in record/playback mode 2021-09-09 19:32:02 +02:00
Scott Percival
5cbcd98963 EVENTRECORDER: Add screen update tracking
Screen update boundaries are now used as sync points.
Screenshots are now processed on a screen update boundary.

This change increments the version of the Event Recorder
file format to 2; version 1 files will still play back as
before, without synchronising to screen updates.
2021-09-09 19:32:02 +02:00
Scott Percival
c29a62b05d EVENTRECORDER: Ignore hash check for targets with no MD5 records
This is required for Director to allow testing arbitrary files that
aren't part a game, e.g. Lingo Dictionary.
2021-09-09 19:32:02 +02:00
Martin Gerhardy
b1deb8afba GUI: added float var support to the debugger 2021-09-07 01:33:04 +03:00
Lothar Serra Mari
7b0ce6282f GUI: Add GUI option for Discord RPC 2021-09-02 14:21:07 +02:00
Martin Gerhardy
4b13314e23 GUI: persist the debug console history 2021-09-01 16:30:02 +02:00
Eugene Sandulenko
b85daf6066
GUI: Added optional file mask for FileBrowserDialog 2021-09-01 15:38:30 +02:00
Cameron Cawley
0d65c120b7 CREDITS: Add myself to the DS port credits 2021-08-30 19:11:03 +01:00
Orgad Shaneh
b7a46e97f5 GUI: Re-enable warning when saving over an older savegame
The assignment back to _saveList is required, because the initial read does
not assign playtime.

In case the slot is empty, querySaveMetaInfos returns an empty description
with saveSlot -1 on most engines, so _saveList[selItem] loses its slot.
Cover this by adding a check.

Reverts 0425dff824.
2021-08-28 21:36:35 +03:00
Lothar Serra Mari
46886b787e I18N: Update translations data file 2021-08-28 16:54:15 +02:00
D G Turner
8b239a2577 GUI: Fix GCC Signed vs. Unsigned Comparison Warning 2021-08-28 13:56:09 +01:00
Thierry Crozat
18ee050adf GUI: Only display autosave warning if there are normal saves in autosave slots
This fixes bug #12845.
2021-08-28 13:48:53 +01:00
Thierry Crozat
0425dff824 GUI: Fix saving in a new slot with the list save dialog
This revert part of a17816f1 (GUI: Warn when saving a "young" game
over an "older" one).

The issue was that when trying to save in a new slot with the list
save dialog, this was not creating the save.

This finishes to fix bug #12850
2021-08-27 23:30:44 +01:00
Thierry Crozat
626d0ed4b6 GUI: Fix assert when double clicking on item in list save dialog
This was a regression from 44e5d3f9 (GUI: Factor out save/load
activation to a function).

This fixes part of bug #12850
2021-08-27 23:30:44 +01:00
Thierry Crozat
5867d5420f GUI: Fix clicking in an empty space in the Grid Load dialog
This was unexpectedly closing the dialog.
This was a regression from 44e5d3f9 (GUI: Factor out save/load
activation to a function)
2021-08-27 23:30:44 +01:00
D G Turner
50548c738d GUI: Fix Incorrect Logic due to Stray Semicolon 2021-08-26 22:56:25 +01:00
Thierry Crozat
8d4ef7234d GUI: Avoid crash when starting ScummVM with partially corrupted config file
In my case I had a section where only the gameid was defined and no path.
Obviously this is not valid and I cannot start that game. But this is not
a reason to crash with an unknown "path" key error when starting ScummVM.
2021-08-26 17:12:55 +01:00
Orgad Shaneh
a17816f14d GUI: Warn when saving a "young" game over an "older" one 2021-08-25 05:56:22 +03:00
Orgad Shaneh
44e5d3f9bd GUI: Factor out save/load activation to a function 2021-08-25 05:56:22 +03:00
Orgad Shaneh
873ba580fb GUI: Warn when enabling autosave on options
...if non-autosave games are stored in autosave slot
2021-08-24 01:37:06 +02:00
SupSuper
c9d67e48a9 BACKENDS: Use FSNode::getName in string operations 2021-08-23 21:22:27 +01:00
Cameron Cawley
6edcd3c21c GUI: Fix displaying dynamic engine options widgets in the Edit Game dialog 2021-08-23 00:07:11 +03:00
Cameron Cawley
644e7354f5 CREDITS: Update credits 2021-08-22 22:25:33 +03:00
Cameron Cawley
e8c54ed7aa DS: Work around issues with GUI scaling at low resolutions 2021-08-20 17:43:19 +01:00
Eugene Sandulenko
5af243be2c
I18N: Reduced width of some language names so they fit better on low res. Bug #11745 2021-08-19 17:05:25 +02:00
Thierry Crozat
e012014c29 GUI: Fix computation of MessageDialog width
This was a regression introduced in fea19c69a. The code forgot to
add the margin on either side of the text when computing the width
of the dialog.

I also introduced a variable with the mergin value to clarify the
code (and also make it easy to change that margin in the future if
we want to).
2021-08-18 22:38:55 +01:00
Orgad Shaneh
fea19c69af GUI: Support multiple alt buttons in MessageDialog 2021-08-18 22:34:02 +02:00
Orgad Shaneh
0d17d142e4 GUI: Wrap very long lines in MessageDialog 2021-08-18 22:34:02 +02:00
Orgad Shaneh
1c5c366649 GUI: Swap OK/Alt values in MessageDialog
A follow-up commit adds support for multiple alternatives, so OK has to
come first.
2021-08-18 22:34:02 +02:00
Orgad Shaneh
18fb0498b5 GUI: Support keypad Enter key in dialogs 2021-08-18 00:39:42 +03:00
Lothar Serra Mari
41a10cd9ad I18N: Update translations data file 2021-08-15 17:51:39 +02:00
Thierry Crozat
9fcd67b2a7 GUI: Never scale the GUI below 320x200 2021-08-15 09:52:03 +01:00
Thierry Crozat
ad31dfc8d5 GUI: Handle the GUI Scale option as a scaling rather than base resolution
Now that we can get an accurate HiDPI screen scaling from OSystem,
defaulting to using that seems to make sense. But we may still want
to use a slightly different scaling. The GUI scale option allows
that by providing a scaling (in percentage) with which to multiply
the HiDPI scaling.

I think it works better than a base resolution as it avoids having
the GUI getting bigger or smaller when we resize the window.

This commit keeps a popup widget, but this could be changed with
 a slider if we want more fine grain control.
2021-08-13 21:41:33 +01:00
Thierry Crozat
abf782c670 COMMON: Remove kFeatureHiDPI from OSystem and use getHiDPIScreenFactor instead 2021-08-13 21:41:33 +01:00
antoniou
f900cbecdd ANDROID: Fix reset browser_lastpath via button
Also replace literal "scummvm" with Common::ConfigManager::kApplicationDomain in android options
2021-08-12 15:17:32 +03:00
Martin Gerhardy
15dd09a527 EVENTRECORDER: fixed compilation 2021-08-10 09:34:48 +02:00