Commit Graph
54 Commits
Author SHA1 Message Date
Matthew Duggan 395469773b DGDS: Ignore space as well as empty str in inventory objects
Most versions of the game have empty strings in the inventory request data, but
the DE version of Heart of China has a single space. Treat it the same as empty
string. This fixes #15841.
2025-04-04 20:05:32 +11:00
Matthew Duggan 58593724e5 DGDS: Fix EGA menu colors
Dragon EGA menus now look right.  Heart of China still needs correct palette
overall but the color number should now be right.
2025-01-23 19:50:48 +11:00
Matthew Duggan e3a626316e DGDS: Fix Willy Beamish sfx/music toggle button display 2024-12-31 19:19:46 +11:00
Matthew Duggan 3464207be1 DGDS: Fix rendering of Willy Beamish sub-menu header 2024-12-30 20:04:15 +11:00
Matthew Duggan eefe7686fe DGDS: Fix more small Willy Beamish issues
* Looking at items in inventory now works
* Time skip buttons rendered correctly in inventory
* Scene trigger fixes (countdown and scene num now correct)
2024-12-24 14:08:42 +11:00
Matthew Duggan 3db6e1344b DGDS: Small rendering fixes for Willy Beamish 2024-12-24 14:08:42 +11:00
Matthew Duggan 49e5ccf793 DGDS: Fix opening and rendering of Willy Beamish inventory 2024-12-21 17:52:57 +11:00
Matthew Duggan c507ef8c07 DGDS: Implement correct slider rendering for Heart of China 2024-11-24 15:36:43 +11:00
Matthew Duggan 5cd1a9ff41 DGDS: Mostly fix rendering of menus in Willy Beamish
Also wire up most of the main menu buttons.
2024-11-23 19:33:42 +11:00
Matthew Duggan 93829050df DGDS: Partially fix Willy Beamish inventory and main menu 2024-11-19 21:01:41 +11:00
Filippos Karapetis 94403bd3a9 DGDS: Raise debuglevel of all debug statements to at least 1
This reduces the chatty debug output, which isn't of any use to
regular users
2024-11-16 18:44:46 +02:00
Matthew Duggan 56e9e7bf81 DGDS: Partly fix menu colors for Dragon EGA
This is not a complete fix, buttons are still wrong.
2024-11-08 20:03:49 +11:00
Filippos Karapetis 65239032a5 DGDS: Replace numeric screen width/height values with defines 2024-11-07 22:13:52 +02:00
Matthew Duggan 4312a96913 DGDS: Update various strings for German RotD
Some hard-coded strings needed their own version for the German version of Rise
of the Dragon.

This fixes #15456.
2024-11-05 22:19:10 +11:00
Matthew Duggan ea50292099 DGDS: JANITORIAL: Fix whitespace 2024-10-27 18:25:47 +11:00
Matthew Duggan 07453928ba DGDS: Fix willy beamish menu background 2024-07-27 19:31:11 +10:00
Matthew Duggan e9f7121d7a DGDS: Implement HoC shell game 2024-07-26 21:12:08 +10:00
Matthew Duggan 4da41d8f5b DGDS: Fix HoC buttons and menus to match original
HoC mostly pixel-correct to original menus and inventory now.
2024-07-20 19:40:43 +10:00
Matthew Duggan dbb1b856ce DGDS: Implement HoC inventory give-to and swap-char buttons
A little closer to the original rendering, still need to fix the buttons
themselves.
2024-07-20 13:56:04 +10:00
Matthew Duggan cb5eb5b661 DGDS: Improve inventory rendering for HoC 2024-07-20 10:29:24 +10:00
Matthew Duggan 2bd84e77bc DGDS: Small rendering fixes to be more like original
Thanks to @eriktorbjorn for noticing the inconsistencies and suggesting fixes.

* Adjust X position of timestamp in RotD inventory
* Fix y offset of type 2 dialogs
* Make inventory button visible in background after opening inventory
2024-07-20 09:44:20 +10:00
Filippos Karapetis ac0c696a52 DGDS: Add a sanity check in drawBackgroundNoSliders()
Opening the menu while in class attempts to draw an empty menu
2024-07-18 12:51:20 +03:00
Matthew Duggan 52b928f23c DGDS: Fix Willy Beamish dialogs a bit 2024-07-16 10:48:34 +10:00
Matthew Duggan 7ab57607da DGDS: Add keyboard navigation for menus
Also add ability to select dialog options on keyboard.
2024-07-12 22:01:04 +10:00
Filippos Karapetis eca3f1f6df DGDS: Implement option toggle buttons 2024-07-07 17:38:53 +03:00
Matthew Duggan 76a2745922 DGDS: Small cleanups 2024-07-07 16:35:58 +10:00
Matthew Duggan e1d41e84cc DGDS: Fix compile error from bad merge 2024-07-07 16:20:18 +10:00
Matthew Duggan eeecc8dc5b DGDS: Add various heart of china features
Most dialogs now render correctly and the game is partly playable.  Still a
bunch of work to do for inventory and menus to render correctly.

Added loading for TDS (talking head) data structures too, but they are not yet
used.
2024-07-07 16:15:30 +10:00
Matthew Duggan b2fa3fea3b DGDS: Update to GPL3 to match the rest of ScummVM 2024-07-02 09:59:59 +10:00
Matthew Duggan 7a77af7160 DGDS: Fix many small issues identified by Coverity 2024-07-01 19:32:57 +10:00
Matthew Duggan ffef4790f4 DGDS: Fix font, music, and rendering slightly in SQ5 demo 2024-06-30 22:49:18 +03:00
Matthew Duggan f7baf88cf2 DGDS: Cleanups, remove excessive casts 2024-06-30 22:49:18 +03:00
Matthew Duggan 7d0631ee87 DGDS: Add slidget gadget support 2024-06-30 22:49:18 +03:00
Matthew Duggan 11c3480ffe DGDS: Fix a few small game interaction bugs 2024-06-30 22:49:18 +03:00
Matthew Duggan 38185598b6 DGDS: Remove foreground buffer
With this change, the rendering now seems to closely match the original in most
situations.
2024-06-30 22:49:18 +03:00
Matthew Duggan 48ce6e938b DGDS: Fix some drag-drop, dialog, and resource loading issues 2024-06-30 22:49:18 +03:00
Matthew Duggan 1030ef3224 DGDS: Implement more inventory stuff 2024-06-30 22:49:18 +03:00
Matthew Duggan 7032295828 DGDS: More inventory implementation 2024-06-30 22:49:18 +03:00
Matthew Duggan 2f44f3f1a2 DGDS: Start to implement Inventory screen 2024-06-30 22:49:18 +03:00
Matthew Duggan 0be203599e DGDS: Small fixes to dialog rendering. Still broken. 2024-06-30 22:49:18 +03:00
Matthew Duggan dc4b2bce3f DGDS: Load all frames of an image at once
This allows us to be more accurate to the original and more efficient.
2024-06-30 22:49:18 +03:00
Matthew Duggan a0355e18b5 DGDS: Implement some scene operations
Started to implement scene triggers and conditions.

Also implemented rendering for dialogs of type 2 (frame with title).
2024-06-30 22:49:18 +03:00
Filippos Karapetis abcc5c8104 DGDS: Add menu button click animations 2024-06-30 22:49:18 +03:00
Matthew Duggan 10debcef1e DGDS: Implement most of menu drawing 2024-06-30 22:49:18 +03:00
Matthew Duggan dab1edd234 DGDS: Add drawing code for more gadgets 2024-06-30 22:49:18 +03:00
Matthew Duggan 7923cac2ee DGDS: Start adding gadget drawing code
This code is based off the button drawing in Rise of the Dragon.  Others may
look slightly different.
2024-06-30 22:49:18 +03:00
Matthew Duggan d68d7348dc DGDS: Give gadget types meaningful names 2024-06-30 22:49:18 +03:00
Matthew Duggan d2186d863d DGDS: Correct request parsing and test on more games 2024-06-30 22:49:18 +03:00
Matthew Duggan 6132d44e42 DGDS: Give request struct a better name 2024-06-30 22:49:18 +03:00
Matthew Duggan 67ca71b91c DGDS: Add a debug function to dump REQ contents after parsing 2024-06-30 22:49:18 +03:00