Commit Graph

575 Commits

Author SHA1 Message Date
Le Philousophe
ed9ded9e83 GUI: Migrate GUI to Path class 2023-12-24 13:19:25 +01:00
Le Philousophe
fc3f03d21d COMMON: Make EVENT_DROP_FILE use a Path 2023-12-24 13:19:25 +01:00
Le Philousophe
460be938f3 CLOUD: Make cloud use Path for local folders and files 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
2b1bc96edb
GUI: ANDROID: Mention SAF when game could not be found in the specified directory 2023-12-02 15:21:11 -08:00
Eugene Sandulenko
390d01500f
GUI: Added grouping by year 2023-11-10 23:45:15 +01:00
Kaloyan Chehlarski
f77eca7c80 AD: Implement archive caching during detection
Renamed MD5CacheManager to AdvancedDetectorCacheManager,
and added facilities for storing open archives inside it. This
way an archive that was opened by an AdvancedDetector
will be kept in memory until the end of the detection, so
other entries/engines that will look inside it won't have
to reopen it and reread its data every time.
2023-11-02 18:20:44 +01:00
Aditya
a5b3353022 ALL: Decrease header dependency for gui_options.h
Now the number of times the header file gui_options.h
is added is much smaller.
2023-10-27 01:16:32 +02:00
Thierry Crozat
8f9cdff4a7 GUI: Add function in GuiManager to query if low-res GUI should be used
The same condition was scattered around in the code to switch between
normal labels and images and their lowres counterparts. Factorizing
that condition in a function will allow changing it easily.
2023-10-09 21:04:08 +01:00
Thierry Crozat
aa7572ef1e GUI: Fix testing width for lowres labels on HiDPI screens 2023-10-09 21:04:08 +01:00
Eugene Sandulenko
c0511db8da
GUI: Fix warning and remove leftover code 2023-09-25 23:32:05 +02:00
Eugene Sandulenko
7ca349c392 GUI: Initial code for backend help dialog 2023-09-17 00:56:28 +02:00
Ankush Dutt
2a60a4d213 DLC: Set kFeatureDLC and _dlcStore for ScummVMCloud, Playstore in backend 2023-09-14 08:22:56 +02:00
Ankush Dutt
4ae119d63f DLC: Add USE_DLC in configure for general DLC integration
- Developers will need to use --enable-dlc with configure if they want to integrate
the DLC downloader. The kFeatureDLC will determine if the target platform is supported
- USE_SCUMMVMDLC will be used specifically to compile curl based ScummVMCloud (USE_DLC
will be automatically enabled if ScummVMCloud is supported)
2023-09-14 08:22:56 +02:00
Ankush Dutt
22f912d7e0 DLC: Wrap ScummVM DLC in configure enabled feature, disabled by default 2023-09-14 08:22:56 +02:00
Ankush Dutt
3633392b6d BACKENDS: Fix launcher does not refresh after DLC download if DLC dialog is closed 2023-09-14 08:22:56 +02:00
Ankush Dutt
5059b3072e JANITORIAL: Rename download-games-dialog to dlcsdialog 2023-09-14 08:22:56 +02:00
Ankush Dutt
a344e7e43f BACKENDS: Implement auto addition of DLC entry in ScummVM config after download 2023-09-14 08:22:56 +02:00
Ankush Dutt
6e8bdee909 BACKENDS: Add initial code for DLC Manager 2023-09-14 08:22:56 +02:00
Ankush Dutt
4af698b7cd GUI: Setup new dialog for Download Games 2023-09-14 08:22:56 +02:00
Ankush Dutt
ec3fe97b14 GUI: Add Download Games button in Launcher 2023-09-14 08:22:56 +02:00
Miro Kropacek
e4dcd46b43 GUI: Don't parse all available engines and games on startup
When statically linked, this makes about 8000 variants.

This change takes only engines and games present in a domain into
account. This speeds up loading time on slower backends quite
noticeably.
2023-06-10 23:27:57 +02:00
Miro Kropacek
09a5e47636 GUI: Add debug outputs for easier profiling 2023-06-10 23:27:57 +02:00
Miro Kropacek
6e4d7798f9 GUI: Remove redundant redraw calls
When calling any of:

- Widget::setEnabled
- EditTextWidget::setEditString
- EditableWidget::setEditString
- StaticTextWidget::setLabel

there is no need to call neither GuiManager::scheduleTopDialogRedraw nor
Widget::markAsDirty afterwards -- they set up the call by themselves.

Also, refactor a couple of code blocks into calling just
GuiManager::redrawFull as it does the same thing.
2023-05-10 22:52:48 +02:00
su-xingyu
630fe0e8d0 GUI: Fix inconsistent game title display for list and grid layout 2023-04-29 13:12:06 +02:00
wyatt-radkiewicz
660fcf329d GUI: Collapsed game groups are persisted
GroupedListWidget and GridWidget can save what groups they have
collapsed to the config file and reload them. "launcher.cpp" uses those
functions to persist those collapsed groups through
  - changing how the games are grouped by
  - going from list to grid mode and vice versa
  - quitting scummvm and starting it again
2023-04-12 16:07:58 +02:00
Cameron Cawley
fb2503d02e GUI: Only use a transparent colour for BMP images 2023-04-09 12:54:38 +02:00
Eugene Sandulenko
071ce9ef29
GUI: Add I18N comments to the launcher buttons 2023-03-26 18:02:27 +02:00
Walter Agazzi
83b2ce00d7 GUI: Display titles in alternate color if unreachable 2023-03-20 19:26:44 +01:00
Eugene Sandulenko
c1478cd1e6
GUI: Fixed search icon tooltip 2023-01-08 01:15:52 +01:00
Cameron Cawley
67a57e945d GUI: Improve support for group selection in the launcher on small screens 2022-12-25 16:26:26 +01:00
Le Philousophe
1af0e814e1 GUI: In grid launcher group by title to match what is displayed 2022-10-08 16:55:56 +02:00
Le Philousophe
1041c69710 GUI: Unify games listing between choosers
And avoid building of useless array
2022-10-08 16:55:56 +02:00
Le Philousophe
476b82ec84 GUI: Use engine ID to match metadata
This avoids classifying Cryo Atlantis as LucasArts game and Indiana Jones
series
2022-10-08 16:55:56 +02:00
Le Philousophe
aa5da2e140 GUI: Don't pass U32String by value 2022-09-18 16:15:56 +02:00
Walter Agazzi
f428b2a12f
GUI: Add overlay to show demo status on thumbnails 2022-08-27 01:15:19 +03:00
Donovan Watteau
27f9a460b5 JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Thierry Crozat
b248add106 GUI: Improve thread-safety for icons set access
The previous commit was not sufficient as getIconsSet() returns a
reference to the SearchSet and it could then be used after the
mutex had been unlocked and while it was being modified in
initIconsSet() called in another thread.
2022-07-02 21:46:14 +02:00
Thierry Crozat
8cda1fe870 GUI: Change the mechanism to update the grid launcher after upding the icons
The icons download dialog was triggering the grid launcher update after
icons had been downloaded. But that means no update was done if the
dialog had been closed during the download.

Now the GUIManager triggers the update. This fixes the missing update
when hiding the download dialog while downloading an icon set.
2022-07-02 21:46:14 +02:00
Thierry Crozat
5ea034391b GUI: Add slider for Grid Launcher icon size 2022-06-12 22:08:53 +01:00
Le Philousophe
b94ad4d8b8 GUI: Implement setSelected in Grid and use it in launcher 2022-06-10 00:52:14 +02:00
Eugene Sandulenko
0e6c0e1167
GUI: Use heuristic for displaying demo names in grid launcher 2022-06-08 23:08:37 +02:00
Eugene Sandulenko
beafbca04d
GUI: Extract vanilla game title for using in the grid. Bug #13551 2022-06-08 01:37:32 +02:00
Thierry Crozat
cc29c8efc7 GUI: When dropping file, use parent directory for detection
The detection was done on the dropped path, so it worked when
dropping a directory, but not a file. Now we can drop a file
and it will run the detection on the parent directory.
2022-06-05 18:57:20 +01:00
Eugene Sandulenko
829c600a02
GUI: Remove remains of the old color lists in *ListWidget 2022-05-29 00:39:35 +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
Die4Ever
2296af6b1e
GUI: Move the lowres string handling logic inside the button widgets 2022-05-15 13:16:29 +03:00
SupSuper
22711c9d0d GUI: Show full game description in grid view tooltip 2022-04-02 05:52:06 +01:00
Thierry Crozat
66f8104919 GUI: Save launcher grouping mode in config file 2022-02-23 00:22:29 +00:00