Commit Graph
4703 Commits
Author SHA1 Message Date
Bastien Bouclet c566d02992 GUI: Add override markers where appropriate 2020-01-19 15:08:37 +01:00
Bastien Bouclet cf1c092617 GUI: Prevent layouts from giving negative dimensions to widgets
When there is not enough room to layout the widgets, dimensions are now
clipped to zero intead of going negative.
2020-01-12 12:29:37 +01:00
Bastien Bouclet f7770f821d GUI: Don't draw the checkbox widget text when there is not enough room
Fixes a crash in the edit game dialog volume tab with the Greek
translation.
2020-01-12 12:29:37 +01:00
Bastien Bouclet 0aa3d6deb0 GUI: Ignore the padding of imported layouts
Fixes the widgets in the volume tab in the edit game dialog having
inconsistent spacing with the other tabs.
2020-01-12 12:29:37 +01:00
Paul Gilbert a18eae1067 GUI: Fix crash opening edit game dialog for games with no music 2020-01-09 18:37:19 -08:00
D G Turner 1dc24d06fd GUI: Fix Missing Default Switch Cases in Theme Layout Class 2020-01-08 19:16:21 +00:00
Pawel Kolodziejski 0e9aef2b0c ALL: Update credits 2020-01-06 22:04:58 +01:00
Bastien Bouclet e36b8a6e52 ALL: Update the years for 2020 2020-01-05 16:33:29 +01:00
Bastien Bouclet 4182c50a92 GUI: Fix the SaveLoadDialog with the lowres layouts
The thumbnail layout element is not available in the lowres layouts.
Issue introduced by c0d8b6d9fc.

Fixes #11304.
2020-01-05 08:34:24 +01:00
Bastien Bouclet cb2bb8fac7 GUI: Add clear button for the plugins path
The other paths have one.
2020-01-04 17:48:13 +01:00
Bastien Bouclet 2de01a3553 GUI: Bump the theme format version 2020-01-04 10:59:15 +01:00
Bastien Bouclet eb28c5a092 GUI: Use a dialog theme layout for the unknown game dialog 2020-01-04 10:56:25 +01:00
Bastien Bouclet 346d53b034 GUI: Add finer control over cross-direction alignment for layout items
Previously it was only possible to specify whether items where aligned
to the start or centered in the cross direction of the layouts. It is
now additionally possible to align the items to the far end of the cross
direction or to resize them to match the size of the layout.

Terminology and behavior are loosely based on CSS's flexbox containers.
2020-01-04 10:56:25 +01:00
Bastien Bouclet c0d8b6d9fc GUI: Introduce dynamic layouts
Prior to this change, a GUI layout was only affected by the screen size.
Now, a layout can additionally be influenced by the GUI dialog and widgets
that uses it. This capability is leveraged to implement the following
features:

* Layout elements that are not bound to a GUI widget do not take space.
   This means that dialogs where the widgets shown depend on for example
   a feature being enabled at configure time no longer have blank spaces.
* Widgets can define a minimal required size for their contents not to be
   cut. For now this is only used for buttons so their width is always
   sufficient for their caption not to be cut. This mechanism could be
   applied to other widget types in the future.
2020-01-04 10:56:25 +01:00
Bastien Bouclet 452d22e650 GUI: Fix label drawing on top of PopUpWidget in updates dialog
Fixes #11271.
2020-01-03 19:01:14 +01:00
Bastien Bouclet 9454346782 ENGINES: Copy the data referenced by QualifiedGameDescriptor
The engineId, gameId and description come from static data in the game
engines. When the game engines are compiled as dynamic plugins, the QGD
structure may outlive the engine plugin. Making a copy ensures the data
remains available.

Fixes #11292.
2020-01-01 08:19:48 +01:00
Eugene Sandulenko c05b911563 ALL: Bump copyright year to 2020 2020-01-01 00:01:00 +01:00
Thierry Crozat f0bb13e598 I18N: Regenerate translations data file 2019-12-09 09:52:31 +00:00
Bastien Bouclet feaf9dc365 ALL: Sync with ScummVM rev. 55dba55056 2019-12-08 17:06:42 +01:00
Henrik "Henke37" Andersson b469747f7a GUI: Don't show midi setting tabs if the game has no music at all. 2019-12-07 21:14:44 +02:00
Bastien Bouclet d62f463935 GUI: Fix translations for the mass add button 2019-12-04 08:37:18 +01:00
Thierry Crozat a0c15492b4 I18N: Regenerate translations data file 2019-12-02 05:05:07 +00:00
Thierry Crozat 2757722e6c I18N: Regenerate translations data file 2019-11-25 05:05:05 +00:00
Bastien Bouclet b9da793ef3 GUI: Bump the theme format version number
The DropdownButtonWidget changes broke compatibility with older themes.
2019-11-24 16:06:17 +01:00
Bastien Bouclet 41f2ef9745 GUI: Use the item at the click position in PopUpDialog
Fixes the having the drag in the dialog to change the selection on
platforms with a touch screen.
2019-11-24 14:06:25 +01:00
Bastien Bouclet 2c812a6b7a GUI: Add DropdownButtonWidget and use it in the launcher for mass add
DropdownButtonWidget is a button split in two parts vertically. Clicking
the left part triggers a default action. Clicking the right part shows a
list of other actions the user can choose from.

Using this widget on the launcher lets 'Mass add' be a secondary action
of the 'Add' button, removing the necessity of pressing the shift key to
access the feature.
2019-11-24 14:06:25 +01:00
Thierry Crozat 3c05af358b I18N: Regenerate translations data file 2019-11-18 05:05:04 +01:00
Cameron Cawley 8b7f1a0bcb CREDITS: Mark CeRiAl as retired 2019-11-17 22:33:56 +01:00
Cameron Cawley f2b9f7bb76 BACKENDS: Remove the Windows CE port 2019-11-17 22:33:56 +01:00
Thierry Crozat 6b51f2e4f2 I18N: Regenerate translations data file 2019-11-11 05:05:07 +01:00
Bastien Bouclet bd3f157464 GUI: Fix memory leak in the about dialog
Also don't eagerly allocate EE as it consumes quite a bit of memory.
2019-11-10 20:05:04 +01:00
Eugene Sandulenko 4952d1c760 GUI: Fix colors in About. Now it works on Amiga 2019-11-10 00:27:25 +01:00
Thanasis Antoniou 6fde4e89f8 GUI: Fix crash on low resolutions
Related to about cls() and easter egg. Crashed on Android port on small screen devices
2019-11-08 16:58:16 +02:00
Thanasis Antoniou 30afd1feed GUI: THEMES: FONTS: helvB12 greek should be 75 dip not 100 2019-11-06 22:35:53 +02:00
Thanasis Antoniou 8b0dd72436 I18N: Regenerate translations data file (Nov 06 2019) 2019-11-06 22:13:00 +02:00
Thanasis Antoniou 2b6730e217 GUI: THEMES: Build zip themes using scummtheme.py makeall 2019-11-06 03:21:06 +02:00
Thanasis Antoniou 3061f6cf71 GUI: FONTS: Proper Greek BDF (and FCC) fonts added 2019-11-06 03:08:49 +02:00
Thierry Crozat 362373b68a I18N: Regenerate translations data file 2019-11-04 05:05:07 +01:00
Eugene Sandulenko 1370873a8a CREDITS: whoozle is not retired anymore 2019-11-03 23:57:42 +01:00
Bastien Bouclet c142838122 BASE: Change the command line interface to use engine-qualified game names
Qualified game names have the following form: engineId:gameId.
Unqualified game names are still supported as long as they are not
ambiguous. However they are considered deprecated and are no longer
displayed by the --list-games command.
2019-11-03 11:43:00 +01:00
Bastien Bouclet ae9f764c7a ENGINES: Automatically upgrade the targets on launch to add an engine ID 2019-11-03 11:43:00 +01:00
Bastien Bouclet bb813719b5 ENGINES: Change targets to have an 'engine ID'
The engine ID identifies which engine should be used to launch the target.
Also remove the 'single ID' system. Different games from engines that used
that system now have different game IDs.

Also-By: Matthew Hoops <clone2727@gmail.com>
2019-11-03 11:43:00 +01:00
Bastien Bouclet 358d95e909 GUI: Fix pressing escape erroneously saving the changes in the options dialog
Pressing escape sets the dialog result to -1.
2019-10-23 20:57:47 +02:00
Bastien Bouclet 39815f50b7 GUI: Increase height of tab widget by 2px in lowres layout
The height of the tab widget was reduced by 2px in
eabb81829f. However, that change caused
the tab nav buttons to be drawn slightly outside of the tabs with the
low resolution layout.
2019-10-22 19:40:45 +02:00
Thierry Crozat a50f35458e I18N: Regenerate translations data file 2019-10-21 05:05:01 +02:00
Bastien Bouclet 287a4a12e2 GUI: Fix crash when opening the save name dialog
The changes in 1dce33dd9f introduced a
case where the width of widgets would not be set. This commit reverts
the offending changes and introduces a different fix for the original
issue.

Only recompute the width/height of a stack if it is not explicitly set.

Fixes #11214.
2019-10-19 10:50:56 +02:00
Bastien Bouclet 1dce33dd9f GUI: Fix launcher layout for small widths
* Testing if a widget can be centered was ignoring the padding.
* Only resize a layout based on its content if it was not explicitely
   sized by its parent. Fixes the logo causing incorrect layout
   computations when the window width is lower than the image width.
2019-10-17 19:33:50 +02:00
Jaromir Wysoglad b9d3c84db4 TTS: Fix language setting. 2019-10-16 19:30:56 +02:00
Cameron Cawley 06b038a1c1 GUI: Fix crash when clicking and dragging a tab widget 2019-10-15 20:37:28 +01:00
Eugene Sandulenko e5caf79c6a GUI: Fix crash with attempt to switch to Greek or Hebrew
These languages have 2 charater codes, and setting third character
in the Common::String led to assert. The proper consturctor is used
instead now.
2019-10-14 21:11:52 +02:00