Commit Graph
57 Commits
Author SHA1 Message Date
Bastien Bouclet ab46dae8d7 MOHAWK: RIVEN: Rework font loading so the TTF font is not leaked 2018-08-11 08:58:12 +02:00
Bastien Bouclet ad3feae490 MOHAWK: RIVEN: Fix crash when clicking on a marble with the mouse moving
In some cases a mouse moved event could be handled between the moment
the xtakeit script was queued and the moment it is executed (on the same
frame), causing the mouse position no longer to be over a marble
rectangle.

Fixes #10647.
2018-08-04 06:42:17 +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
David Fioramonti 51351111d4 MOHAWK: RIVEN: Only use x mouse position to move dome sliders
Fixes Trac#10642.

The original engine will move the dome sliders whenever the player is
dragging a dome slider to the left or right regardless of y position.

In ScummVM the dome slider position would only change to the players x
mouse position when the y value was also in the slider hotspot. This
change removes the y check by making the point to be checked always
have a y value in the hotspot rect.

The x values are also bound to the max and min value that any of the
slider hotspots can have. This allows the slider to go all the way to
the left and right even if the user has gone past the slider area
to the left or right while still holding the slider.
2018-07-27 16:16:29 +02:00
Bastien Bouclet d7f4cc9382 MOHAWK: RIVEN: Fix white screen before a bad ending's credits
This was happening in the Polish version only.

Fixes #10632.
2018-07-17 06:31:50 +02: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 cf52951915 MOHAWK: RIVEN: Fix the credits not showing in the Polish version
Fixes Trac#10589
2018-07-02 13:17:23 +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
Adrian Frühwirth cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Bastien Bouclet 43babaeef8 MOHAWK: RIVEN: Always release the prison combination buttons
Fixes Trac#10525.
2018-05-18 19:28:27 +02:00
Bastien Bouclet b2ba147d96 MOHAWK: RIVEN: Hide the mouse cursor after pressing a prison code button
It now matches the behavior of the original engine.

Fixes #10521.
2018-05-10 16:06:40 +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 3fba660210 MOHAWK: Riven: Fix pin rotation handle sometimes disappearing
It was due to inaccurate rotation movie bounds.

Fixes #10086.
2017-08-11 08:24:34 +02:00
Bastien Bouclet 22ed7eb399 MOHAWK: Riven: Neutralize the timer when moving the Ytram trap up
Fixes #10103.
2017-08-10 20:07:34 +02:00
Bastien Bouclet 8e5ac98a4b MOHAWK: Riven: Add keyboard navigation 2017-08-06 17:36:27 +02: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 bcd027cf64 MOHAWK: Riven: Fix use after free when using the trap book 2017-07-09 06:53:51 +02:00
Bastien Bouclet 13fa1b22a2 MOHAWK: Only disable videos when turning off the prison viewer
Closing them was causing a crash when using the lake viewer since there
is nothing to load back the lake video. Fixes Trac#9892.
2017-07-04 19:43:32 +02:00
Bastien Bouclet b552719a81 MOHAWK: Switch external command arguments to Common::Array 2017-07-03 08:50:10 +02:00
Bastien Bouclet 95951eebf7 MOHAWK: Get rid of refreshCard 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 b9a72ff7a6 MOHAWK: Preload all the PE cursors on startup
We were previously reloading the current cursor from raw data on each
frame.
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 d7b241abdc MOHAWK: Check the Office island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet 2f7a04ae95 MOHAWK: Check the Rebel island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet 0f79e423d8 MOHAWK: Check the Prison island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet ea303ab682 MOHAWK: Switch timers to script commands 2017-07-03 08:50:10 +02:00
Bastien Bouclet ee70244fbf MOHAWK: Check the Garden island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet 2a444d35e8 MOHAWK: Check the Temple island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet 6b4fe224db MOHAWK: Check the Book making island external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet 006dcf6a74 MOHAWK: Check the Jungle island 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 3f58a795e7 MOHAWK: Add an enum for Riven's command types 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 ae6f248616 MOHAWK: Move Riven's sunner alert handling to the jungle stack 2017-07-03 08:50:10 +02:00