Commit graph

5181 commits

Author SHA1 Message Date
Filippos Karapetis
e157b7044e GUI: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Eugene Sandulenko
1a45b87275
I18N: Added comments for translators 2025-03-06 19:07:31 +01:00
Cameron Cawley
d0fa04fb6c GUI: Use the Simplified Chinese version of NotoSans in the themes 2025-02-18 00:12:12 +01:00
Eugene Sandulenko
a1a5d53c2f
CREDITS: Update 2025-02-10 17:31:08 +01:00
Thierry Crozat
aa1f22fc93 Revert "GUI: Disable load button in list launcher if no savegame exists"
This reverts commit 979a17edc4.
2025-01-02 17:43:06 +01:00
Thierry Crozat
f0bc6fc438 Revert "GUI: Move code to detect if load from launcher is available to separate function"
This reverts commit d0b31d819d.
2025-01-02 17:43:06 +01:00
Thierry Crozat
2811013ada Revert "GUI: Disable load button in Grid Launcher when no savegame can be loaded"
This reverts commit a86405389a.
2025-01-02 17:43:06 +01:00
Le Philousophe
84cfd2ca4f GUI: Properly init _alphaType
This is not needed per se but without it UBSan warns in drawWidget
because of the uninitialized read.

Really fixes GH-6323.
2024-12-28 12:47:56 +01:00
tunnelsociety
fbc9242afc GUI: Improve selection behaviour outside console area
Selecting outside the console text area would result in a strange
selection startpoint and/or endpoint. Now the selection feels more
natural.
2024-12-24 13:19:37 +02:00
tunnelsociety
6e286e4628 GUI: Prevent select and scroll beyond bounds in console
Select only within existing text; a buffer overread was possible.
2024-12-24 13:19:37 +02:00
tunnelsociety
dc2f3d7c47 JANITORIAL: Move function declarations 2024-12-24 13:19:37 +02:00
Thierry Crozat
a86405389a GUI: Disable load button in Grid Launcher when no savegame can be loaded 2024-12-24 13:17:02 +02:00
Thierry Crozat
d0b31d819d GUI: Move code to detect if load from launcher is available to separate function 2024-12-24 13:17:02 +02:00
Thierry Crozat
a50436db59 GUI: Remove unused function in GridWidget
The openTray function is no longer used since commit fb9c232 when
openTrayAtSelected was introduced and used instead.
2024-12-24 13:17:02 +02:00
Thierry Crozat
979a17edc4 GUI: Disable load button in list launcher if no savegame exists 2024-12-24 13:17:02 +02:00
Eric Fry
ccfb048af1 DARKSEED: Update engine credits 2024-12-14 11:34:26 +11:00
Le Philousophe
c6dd1848f7 GUI: Fix invalid escape
\? is an escape for the regular expression not for Python strings.
Use raw strings instead for regex as advised by Python doc.
2024-12-13 12:14:33 +01:00
Cameron Cawley
ce94a91272 LICENSES: Update the license information for the fonts 2024-12-10 21:52:48 +02:00
Cameron Cawley
e231ab8b04 GUI: Remove the unused M+ font 2024-12-09 13:32:01 +01:00
Eugene Sandulenko
8a742646fc
I18N: Regenerate translations.dat 2024-12-07 21:06:33 +01:00
sluicebox
c67e41688c GUI: Fix Rotation mode option
- Changing rotation back to "<default>" had no effect
- Unchecking "Override" checkbox did not change rotation
- "Override" checkbox initialization was not affected by rotation
2024-12-05 15:01:22 -08:00
Cameron Cawley
58a9aa6a2c COMMON: Deprecate U32String constructors that accept a uint32 array 2024-11-29 01:14:36 +02:00
Eugene Sandulenko
0ddccddfee
GUI: Fix regression with layout computation 2024-11-16 12:46:13 +01:00
Eugene Sandulenko
4e97ec7484
GUI: Allow variable references in STX value lists 2024-11-15 23:41:43 +01:00
Le Philousophe
057bb00950 GUI: Properly redraw the saves list when called from the progress dialog
When the SaveLoadCloudSyncProgressDialog dialog is displayed, the top
dialog is not the saveload dialog anymore.
In this case, a full redraw is needed for proper display.
2024-11-15 18:23:35 +01:00
Le Philousophe
07e9c262d4 GUI: Fix redraw priorities
Avoid erasing full redraw when requesting a top dialog redraw.
If two dialogs open immediately, request a full redraw to take both into
account.
2024-11-15 18:23:35 +01:00
Eugene Sandulenko
dc5b7b05c9
GUI: Sync SAF-related messages 2024-11-15 14:49:50 +01:00
Eugene Sandulenko
0d328f8582
GUI: ANDROID: Add better wording for missing SAF permissions 2024-11-15 14:43:27 +01:00
Eugene Sandulenko
29887694d6
GUI: Narrow down MassAdd dialog list. Fixes bug #15205
Also bump theme version
2024-11-15 07:32:25 +01:00
Eugene Sandulenko
a858cc83da
GUI: Show resolution switch details at debug level 1 2024-11-15 07:32:25 +01:00
Eugene Sandulenko
f357aeea16
GUI: Align version info in launcher to the right. Bug #13421
This looks better on higher resolutions. Smaller resolutions are not affected much
2024-11-11 12:39:57 +01:00
Miro Kropacek
e82cfdc880 GUI: Spacing fixes
Commit a66c4975 fixed https://bugs.scummvm.org/ticket/14774 pretty well
however there is a couple of things left:

- lowres_layout.stx has to be fixed, too to make the modern themes look
  good also in lowres mode

- changing the right space size to 'Globals.Launcher.HelpButton.Width'
  was a good one however the title looks much better without it
2024-11-09 00:35:12 +01:00
Eugene Sandulenko
d77634d7fd
JANITORIAL: Whitespace fix to kick Weblate 2024-11-08 02:08:25 +01:00
Eugene Sandulenko
f0e1234a81
GUI: Do not allow new saveslots exceed engine max. Bug #11645 2024-11-08 00:08:56 +01:00
Thierry Crozat
a66c497529 GUI: Fix display of version in classic theme
This fixes bug #14774.
This is a regression from commit 3857f71 that added the help button
to the classic layout. Instead of having the version text widget take
the full width, it added a horizontal layout, with the help button,
the version widget, and a space with the same width as the help button
(to keep the version centered I assume). But it also added two
additional spaces either side of the version text widget with no
specified width for no apparent reason. As a result the version widget
was only taking 1/3rd of the available space. This commit removes
those two spaces. It also changes the variable used to specify the
width of the space on the right to use the same variable that specifies
the width of the help button on the left. This clarifies that this
space is here for centering.
2024-11-05 22:36:36 +00:00
Le Philousophe
5ed9b34bf2 GUI: Resolve text alignment on reflow
Resolving it when constructing the text widget may be too early for
widgets not defined in XML (like Android options widget).
This makes the alignment being invalid some times and valid some other
times.
2024-11-02 20:02:17 +01:00
Cameron Cawley
8a91b6a1c7 GUI: Fix a crash when exiting the grid view 2024-10-25 20:06:28 +02:00
Eugene Sandulenko
4b7782448c
GUI: Fix usage of deprecated ManagedSurface methods 2024-10-24 15:07:01 +02:00
Eugene Sandulenko
3ef17b9643
GUI: Fix shadowing of overloaded method 2024-10-24 15:07:01 +02:00
sluicebox
81bde441b2 GUI: Display message when deleting a save fails 2024-10-18 09:41:03 +03:00
tunnelsociety
92ad64cf4b JANITORIAL: GUI: Fix typos in launcher 2024-09-29 21:28:28 +02:00
Vladimir Serbinenko
488353480f SDL, COMMON: Support screen rotation 2024-09-29 02:10:39 +03:00
sluicebox
4f1ae736e5 GUI: Fix clicking on PopUpDialog separator
Clicking on a separator caused an empty selection.

Introduced in: 41f2ef9745
2024-09-23 23:00:22 +03:00
tunnelsociety
b06482b2c9 GUI: Fix leak in widgets/grid.cpp
_disabledIconOverlay, a ManagedSurface regularly re-instantiated, should be
deleted rather than merely have its free() method called.

While here, remove an if() which is guaranteed true lest scummvm segfault.
2024-09-16 10:09:01 +03:00
Hubert Maier
e70139d158 JANITORIAL: GUI: Fix typos 2024-09-16 09:41:26 +03:00
Le Philousophe
867cbfcd0d ANDROID: Create a dedicated define for Android backend
This allows other backends (SDL, libretro) to be used on Android without
hacks.
2024-09-02 20:53:57 +03:00
Tarek Soliman
abd00eeefe GUI: Fix saving Global Options when cloud is disabled 2024-08-29 18:55:39 -05:00
Lothar Serra Mari
afb35d4812
GUI: Update API endpoint for validation in the Integrity Dialog 2024-08-15 09:14:38 +02:00
Tarek Soliman
9428447537 GUI: Fix opening Global Options when cloud is disabled
Regression caused by 0beb356156
2024-08-09 02:34:04 -05:00
Cameron Cawley
96f817c879 GUI: Update the theme version and regenerate the archives 2024-07-31 02:50:43 +03:00