4703 Commits

Author SHA1 Message Date
grisenti
fa031ca1a3 ALL: add support for --themepath and --extrapath 2022-05-29 13:56:21 +02:00
grisenti
c0acb85605 ALL: add support for --savepath command 2022-05-29 13:56:21 +02:00
Eugene Sandulenko
d26ced00c9
GUI: Regenerate attribute list in GridList on list replacement. Fixes bug #13413 2022-05-29 01:11:53 +02:00
Eugene Sandulenko
829c600a02
GUI: Remove remains of the old color lists in *ListWidget 2022-05-29 00:39:35 +02:00
D G Turner
c99f548212 GUI: Fix Set But Unused Variable Compiler Warnings in List Widgets 2022-05-28 16:33:00 +01:00
Eugene Sandulenko
828192db59
GUI: Reduced code duplication in GroupedListWidget 2022-05-28 10:46:37 +02:00
Eugene Sandulenko
1edab21c6e
GUI: Use color information from the strings in *ListWidget 2022-05-28 10:46:34 +02:00
Lothar Serra Mari
aab97d9dd4 I18N: Update GUI translation datafile 2022-05-26 17:57:23 +02:00
Eugene Sandulenko
3727b3e16e
GUI: Initial code for embedding formatting info into *ListWidget strings 2022-05-26 10:31:45 +02:00
Die4Ever
e36d66f0e5 GUI: button widget auto size with screen width 2022-05-23 23:44:59 +02:00
athrxx
b29b5acc0a COMMON: (MASS ADD) - fix language code comparison for obsolete lang codes
We now correctly recognize obsolete language codes.
(e. g. "jp" will be considered the same as "ja")

Another step to bring down the number of detected targets...
2022-05-15 18:50:13 +02:00
Lothar Serra Mari
d4295d8af5 I18N: Update GUI translations datafile 2022-05-15 12:26:40 +02:00
Die4Ever
2296af6b1e
GUI: Move the lowres string handling logic inside the button widgets 2022-05-15 13:16:29 +03:00
athrxx
ea39342113 GUI: (SaveLoad) - remove unnecessary dialog
The dialog

"WARNING: Existing save has longer gameplay duration than the current state. Are you sure you want to overwrite it?"

is not really helpful and seems to have more negative than positive impact on the user experience, so I have removed it.
2022-05-12 19:01:36 +02:00
Athanasios Antoniou
d9088bbffa
GUI: Improve behavior of console history
GUI: Improve behavior of console history

Do not persist empty strings, prevent scolling upwards to _historyIndex entry when full, and save to history file in proper order
2022-04-26 21:48:41 +03:00
athrxx
eb29aea4b4 TTS: (Windows) - implement better way to disable the option
Currently, the text-to-speech manager will try to update the voices whenever TextToSpeechManager::pushState()/popState() is called. This causes lags of 4 - 5 seconds on Windows. Also, a warning is triggered each time. This commit prevents that from happening if the tts option is not enabled.

This commit currently affects only Windows. Other backends don't make use of the new _enabled setting. I don't know if it would make sense for any of these and I also wouldn't be able to test it.
2022-04-26 21:08:41 +03:00
Lothar Serra Mari
efa8ad1036 I18N: Update translations datafile 2022-04-22 18:58:39 +02:00
D G Turner
bd1595a074 GUI: Fix Signed vs. Unsigned Compiler Warning in Debugger 2022-04-17 17:00:37 +01:00
Thierry Crozat
046b6a6328 GUI: Improve format of debugger md5 command result 2022-04-17 14:34:59 +03:00
Thierry Crozat
571e11d724 GUI: Add tail md5 option to the md5 and md5mac debugger commands
To compute the tail md5, you need to specify a negative length,
which is consistent with how it is done for the command line
option.
2022-04-17 14:34:59 +03:00
Le Philousophe
d308600bcb GUI: Add comment for translators 2022-04-16 15:47:47 +02:00
Donovan Watteau
1e33079b25 GUI: Print compiler name/version in About dialog 2022-04-15 22:43:57 +02:00
Eugene Sandulenko
65b95d90ce
GUI: Add missing override keyword 2022-04-15 22:39:47 +02:00
antoniou79
d655a3be1c GUI: Rever fix for not adding empty user input in Console history
This reverts commit 27c95858ba04dd56ae6f328266b4b8f11c9b36d9.
2022-04-13 12:32:09 +03:00
antoniou79
27c95858ba GUI: Prevent adding empty user input in Console history 2022-04-13 10:39:51 +03:00
Thierry Crozat
3d3cd083bf GUI: Fix scrolling history in the Console widget
When starting to scroll, the current line is added to the history
so that if we scroll up and then down we get it back. This was
initially implemented correctly, but borken later on in 51dceaf1659
when the history was changed to use Common::String.
2022-04-12 22:29:13 +01:00
antoniou79
325260f1ae GUI: Fix scrolling in launcher and GMM tabs
This should address the #13106 issue and similar

It makes widgets, who don't implement handleMouseWheel(), call the handleMouseWheel() of their parent by default
Logic is borrowed from how widgets forward unhandle commands to their parent in handleCommand()
2022-04-11 23:01:30 +03:00
Le Philousophe
8ec10f5892 GRAPHICS: Create a dynamic list of available renderers
This allows us to not offer a renderer which is not available on the
platform.
2022-04-10 18:11:46 +02:00
Le Philousophe
1e4696f6d0 OPENGL: Rework renderer selection code
Add a class to group all renderer related (static) functions.
This allows to have getBestMatchingAvailableType inline in all engines.

The matching code is now shared between all engines but allows
customization for engines needing it (Grim, WME3D).

The new code takes runtime availability of features to select the
best renderer.
It avoid crashes when user choosed OpenGL but GLES2 is used.
2022-04-03 22:17:19 +02:00
SupSuper
22711c9d0d GUI: Show full game description in grid view tooltip 2022-04-02 05:52:06 +01:00
SupSuper
95f8fc1218 GUI: Handle grid fallback icons more gracefully
Always use the full ID as thumbPath
2022-04-01 08:11:03 +01:00
SupSuper
284c3936ed GUI: Fix grid game icons only showing once 2022-03-31 01:06:49 +01:00
SupSuper
10b085ee5f GUI: Render grid thumbnails correctly in different pixel formats 2022-03-29 05:29:13 +01:00
SupSuper
dd4d8fc859 GUI: Add engine icon fallbacks to GridWidget thumbnails 2022-03-29 05:29:11 +01:00
Torbjörn Andersson
d057880f92 GUI: Fix unpressed state of checkboxes and radio buttons
Clicking on a checkbox (and, presumably, a radio button) would leave it
in the "pressed" state, which would inhibit tooltips for it. Now the
unpressed state is cleared along with _duringPress for both these
classes. There are other widgets that inherit from ButtonWidget, but
they either already did this, or didn't override handleMouseUp(), so
they should be fine.
2022-03-28 11:16:50 +02:00
Roland van Laar
40627f0caf GUI: Debugger: Implement defaultCommandProcessor
A defaultCommandProcessor let's an engine take over the processing of
commands in the debugger. The Director Engine uses the functionality to
implement a repl for the Lingo language.

Example Usage:
    registerDefaultCmd(WRAP_DEFAULTCOMMAND(Debugger, lingoCommandProcessor));

The input will now be handled by lingoCommandProcessor. Other commands
will not work untill control is given back to the debugger.

It's up to the engine to return control to the debugger when done.
To return control, call it with a nullptr:
    registerDefaultCmd(nullptr);
2022-03-22 23:39:54 +01:00
Eugene Sandulenko
1cbc71d0ff
GUI: Marked more strings for translation 2022-03-18 13:22:28 +01:00
Eugene Sandulenko
9f37857070
GUI: Made "OK" consistent in various dialogs. We used "Ok" in a few places 2022-03-18 13:21:11 +01:00
antoniou79
8fcfb7e585 GUI: Fix bad EditTextWidget rect at low window widths
Fix bug https://bugs.scummvm.org/ticket/13339

Solution is taken from our ListWidget (gui/widgets/list.cpp) which performs a similar check in its ListWidget::getEditRect()
2022-03-06 09:01:50 +01:00
antoniou79
37e74af914 GUI: Fix missing parentheses causing build failure 2022-03-02 15:19:09 +02:00
Antoniou Athanasios
3ee5a99619 ANDROID: More safeguards against empty path in browser 2022-03-02 14:29:56 +02:00
Thierry Crozat
24cec3cd1b GUI: Fix use after free of surface in GridWidget
This happened after calling scaleGfx if the original surface was
already at the correct size. In such a case scaleGfx returns the
original surface, so it should not be freed.
2022-02-27 20:11:02 +00:00
Lothar Serra Mari
1646ce52e0 I18N: Update translations datafile 2022-02-26 10:35:01 +01:00
Thierry Crozat
66f8104919 GUI: Save launcher grouping mode in config file 2022-02-23 00:22:29 +00:00
Lothar Serra Mari
8e4ec241fb I18N: Update translations datafile 2022-02-22 21:33:52 +01:00
SupSuper
57d0df273e GUI: Scale grid widget icons with filtering 2022-02-22 17:46:21 +00:00
Die4Ever
329fe24abb
GUI: rename options buttons (#3681)
* GUI: rename buttons

Rename Edit Game to Game Options and Options to Global Options to make it less confusing.

Remove ellipsis on launcher buttons.

* GUI: put ellipsis back

* GUI: abbreviate options button texts for lowres

* GUI: use 320 width for lowres

* GUI: remove ellipsis from About button
2022-02-16 19:39:41 -06:00
Lothar Serra Mari
0bc67347ff I18N: Update translations datafile 2022-02-15 11:18:34 +01:00
Torbjörn Andersson
5a66eb2f91 GUI: Add ShortOptionsLabel widget to the remaining themes
It was already in the Classic theme. I could have removed it, but it
looks like it's going to be useful to me.
2022-02-12 10:24:26 +01:00
Die4Ever
4886410522 CREDITS: Fix alphabetical order for Groovie 2022-02-11 10:03:24 -06:00