Commit graph

4726 commits

Author SHA1 Message Date
Le Philousophe
293a08df76 GUI: Fix in vs int32 discrepancies 2022-06-02 22:44:11 +02:00
Thierry Crozat
7e69686855 GUI: Fix crash when clicking on item in grid widget
The tray position was not correctly computed and it was most of the
time trying to display it way outside the window (it was using X
instead of Y in one place for the vertical position).

This was a recent regression from a6bc1d587 (GUI: Fixed grid view
for long games list).
2022-06-02 20:49:06 +01:00
Thierry Crozat
d3ae365f18 GUI: Fix grid items being twice as small on HiDPI screens with OpenGL mode 2022-06-02 20:34:27 +01:00
Thierry Crozat
7ff1533799 GUI: Fix setting the soundfont in ConfMan
This fixes bug #13531.
The issue was a regression introduced in commit 7dd0c1ddf8.
2022-06-02 20:07:49 +01:00
Eugene Sandulenko
e9ed2ab603
GUI: Regenerate default gui-icons.dat 2022-06-02 17:49:24 +02:00
Eugene Sandulenko
a6bc1d5876
GUI: Fixed grid view for long games list
We used Common::Rect which uses in16 for its members. Lomger lists
exceeded 32,768 in heights, thus, leading to negative numbers. As a result,
scrollbar was not showing up.
2022-06-02 17:40:42 +02:00
Cameron Cawley
5f35e2008a GUI: Fix line wrapping in the about dialog with small screens 2022-05-30 17:04:52 +01:00
Eugene Sandulenko
df0c373120
GUI: Fix game name jumping shortcut. Fixes bug #13525 2022-05-29 22:14:52 +02:00
Eugene Sandulenko
4bd1053236
GUI: Properly reload flags/platforms when resolution is changed 2022-05-29 16:39:35 +02:00
Eugene Sandulenko
598e1d4a6a
GUI: Make grid icons smaller for 640xY resolution. Bump theme version 2022-05-29 16:39:35 +02:00
Eugene Sandulenko
8e4e9bab65
JANITORIAL: Fix whitespaces 2022-05-29 16:39:35 +02:00
grisenti
7b53202a9e ALL: add support for --config and refactor code 2022-05-29 13:56:21 +02:00
grisenti
d6dbf721b6 ALL: add support for --subtitles 2022-05-29 13:56:21 +02:00
grisenti
7f1eafcb2f ALL: add support for --opl-driver and --talkspeed 2022-05-29 13:56:21 +02:00
grisenti
358bec9967 ALL: add support for --scaler and --scale-factor 2022-05-29 13:56:21 +02:00
grisenti
e934e7d279 ALL: add support for native-mt32 and fix enable-gs 2022-05-29 13:56:21 +02:00
grisenti
7dd0c1ddf8 ALL: add support for --midi-gain and --soundfont 2022-05-29 13:56:21 +02:00
grisenti
f71e98ddf5 ALL: add support for --filtering and --multi-midi 2022-05-29 13:56:21 +02:00
grisenti
8fccaf89ff ALL: add support for enable-gs and fix bugs 2022-05-29 13:56:21 +02:00
grisenti
819f52a14d ALL: add support for --fullscreen command 2022-05-29 13:56:21 +02:00
grisenti
5fc5353ecc ALL: add support for -m -s -r commands 2022-05-29 13:56:21 +02:00
grisenti
b7f6964fb4 ALL: add support for gfx, stretch and render mode 2022-05-29 13:56:21 +02:00
grisenti
a7ed28e8a7 ALL: add support for --gui-theme and update themes 2022-05-29 13:56:21 +02:00
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 27c95858ba.
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 51dceaf165
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