Commit graph

37 commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
6a68d8b7e5 ENGINES: Do not assume that MessageDialog accept is 1 and cancel is 0
Use the enum everywhere.

A follow-up commit will change the order.

Also reduce the use of kMessageCancel to minimum.
2021-08-18 22:34:02 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Eugene Sandulenko
48e949ebe4 MOHAWK: Fix typo in Italian Riven menu 2020-05-11 02:12:06 +02:00
Bastien Bouclet
bbd861f3ca MOHAWK: RIVEN: Use the shared save/load dialog code 2020-04-16 07:34:02 +02:00
Bastien Bouclet
1d731aeef9 MOHAWK: Simplify retrieving game features 2020-03-28 07:38:39 +01:00
Bastien Bouclet
ab46dae8d7 MOHAWK: RIVEN: Rework font loading so the TTF font is not leaked 2018-08-11 08:58:12 +02:00
D G Turner
574318c052 MOHAWK: Fix Unused Variable Compiler Warning.
This occurs when FreeType2 is not enabled and thus fontHeight variable
is unused.
2018-07-31 13:38:33 +01:00
Bastien Bouclet
d91ac01419 MOHAWK: RIVEN: Queue opening and closing the main menu as scripts
This way all the other actions are blocked while the card load scripts
are executed. Expecially, it's not possible anymore to open the main
menu while the scripts for returning from the main menu are still
executing.

Fixes Trac#10628.
2018-07-13 19:44:48 +02:00
Bastien Bouclet
bd56983b42 MOHAWK: RIVEN: Tweak a bit the main menu items
* Move the text to the left so the japanese version is not cut.
* Increase the size of the text so it looks better when scaled up.
2018-06-29 13:31:55 +02:00
Bastien Bouclet
7884201b43 MOHAWK: RIVEN: Improve some of the main menu translations 2018-06-29 13:31:55 +02:00
Eugene Sandulenko
cfa649d7ac MOHAWK: RIVEN: Restrict new menu to 25th Anniversary games 2018-06-29 13:31:55 +02:00
Eugene Sandulenko
b26fe7de39 MOHAWK: RIVEN: Added Japanese font and menu translation 2018-06-29 13:31:54 +02:00
Eugene Sandulenko
09b94b1fc2 MOHAWK: RIVEN: Translated new menu entries 2018-06-29 13:31:54 +02:00
Bastien Bouclet
6759346bb6 MOHAWK: RIVEN: Show confirmation dialogs on the main menu 2018-06-29 13:31:54 +02:00
Bastien Bouclet
45ab57209f MOHAWK: RIVEN: Fix starting a new game with a game currently active 2018-06-29 13:31:54 +02:00
Bastien Bouclet
d848ebe85a MOHAWK: RIVEN: Fix loading and resuming from the main menu 2018-06-29 13:31:54 +02:00
Bastien Bouclet
2f9c9a2c32 MOHAWK: RIVEN: Fix compilation without Riven 2018-06-29 13:31:54 +02:00
Bastien Bouclet
dc93e5bb6a MOHAWK: RIVEN: Add more options to the main menu 2018-06-29 13:31:54 +02:00
Bastien Bouclet
86e0089cc6 MOHAWK: RIVEN: Patch in the load menu for the game versions missing it 2018-06-29 13:31:54 +02:00
Eugene Sandulenko
23c889db44 MOHAWK: RIVEN: Localize menus 2018-06-29 13:31:54 +02:00
Eugene Sandulenko
db359f0f0e MOHAWK: RIVEN: Fix crash for German Riven 2018-06-29 13:31:54 +02:00
Bastien Bouclet
2e8d08c1d0 MOHAWK: RIVEN: Add a save button to the main menu 2018-06-29 13:31:54 +02:00
Eugene Sandulenko
0ca52f62a4 MOHAWK: RIVEN: Draw menu with TTF fonts 2018-06-29 13:31:54 +02:00
Bastien Bouclet
83b27d263e MOHAWK: RIVEN: Allow turning book pages more quickly
Fixes #10075
2017-11-26 15:11:12 +01:00
Bastien Bouclet
69c1f70818 MOHAWK: Riven: Let the gameloop gracefully end when quitting
Prevents the quit confirmation dialog from being displayed at the end of
the game's ending if it is enabled.

Fixes #9943.
2017-07-29 18:20:45 +02:00
Bastien Bouclet
b552719a81 MOHAWK: Switch external command arguments to Common::Array 2017-07-03 08:50:10 +02:00
Bastien Bouclet
7801d6489b MOHAWK: Reenable the Riven demo specific features 2017-07-03 08:50:10 +02:00
Bastien Bouclet
8c6cd98067 MOHAWK: Fix the inventory being visible when scripts are running 2017-07-03 08:50:10 +02:00
Bastien Bouclet
08e642314e MOHAWK: Check the Books external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f977b57123 MOHAWK: Rewrite the Riven movie manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1286e7fcf0 MOHAWK: Use an enum for Riven's transition types 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f0267d542f MOHAWK: Keep turning pages while the mouse is pressed in Atrus' book 2017-07-03 08:50:10 +02:00
Bastien Bouclet
0ba035eea6 MOHAWK: Move Riven inventory code to a new class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
c04edb8f54 MOHAWK: Change the back from book commands to use scripts 2017-07-03 08:50:10 +02:00
Bastien Bouclet
14bbf8aab4 MOHAWK: Move the external commands to their respective stacks 2017-07-03 08:50:10 +02:00
Bastien Bouclet
e2c5609e81 MOHAWK: Prepare empty classes for the Riven stacks 2017-07-03 08:50:10 +02:00