Commit graph

186 commits

Author SHA1 Message Date
Alyssa Milburn
8ed8adeeba MOHAWK: tidy up LB hardcoded UI click functions, add poetry mode support
svn-id: r54768
2010-12-04 23:47:43 +00:00
Alyssa Milburn
27799e354e MOHAWK: move shared setPalette/copyImage routines into GraphicsManager
svn-id: r54743
2010-12-02 21:25:15 +00:00
Alyssa Milburn
eb729b5f2e MOHAWK: implement kLBAnimOpDelay
svn-id: r54742
2010-12-02 21:24:55 +00:00
Alyssa Milburn
1cb199229a MOHAWK: add stub implementations for more LB script opcodes
svn-id: r54712
2010-12-01 18:22:36 +00:00
Alyssa Milburn
1b27de3829 MOHAWK: fix LBPaletteItem
svn-id: r54711
2010-12-01 18:22:21 +00:00
Alyssa Milburn
a62500db1e MOHAWK: document/handle more LB item data
svn-id: r54710
2010-12-01 18:22:05 +00:00
Alyssa Milburn
4e3233fdba MOHAWK: fix LBLiveTextItem drawing for LB 2+
svn-id: r54709
2010-12-01 18:21:49 +00:00
Alyssa Milburn
3471d8ee45 MOHAWK: rename DelayedEventType values
svn-id: r54708
2010-12-01 18:21:33 +00:00
Alyssa Milburn
26b372cfd2 MOHAWK: add tryDefaultPage/tryPageStart/prevPage helpers
svn-id: r54687
2010-11-30 21:05:45 +00:00
Alyssa Milburn
6041fe117d MOHAWK: some LBSoundItem fixes
svn-id: r54680
2010-11-30 15:35:22 +00:00
Alyssa Milburn
868e39c29a MOHAWK: fix LB playback seek behaviour
svn-id: r54675
2010-11-30 14:41:27 +00:00
Alyssa Milburn
8009a86c29 MOHAWK: tidy up LBLiveTextItem code
svn-id: r54674
2010-11-30 14:41:09 +00:00
Alyssa Milburn
e04c0182cd MOHAWK: fix LBAnimation start/seek behaviour
svn-id: r54673
2010-11-30 14:40:51 +00:00
Alyssa Milburn
39532b0eca MOHAWK: don't try reading non-existent messages
svn-id: r54661
2010-11-30 00:11:15 +00:00
Alyssa Milburn
99264d47c3 MOHAWK: silence harmless case of a LB warning
svn-id: r54660
2010-11-30 00:03:35 +00:00
Alyssa Milburn
2c824e3311 MOHAWK: implement hardcoded Living Books 1.0 code
svn-id: r54657
2010-11-29 23:36:49 +00:00
Alyssa Milburn
92d5277816 MOHAWK: implement hard-coded LB language/options GUI
svn-id: r54656
2010-11-29 23:19:59 +00:00
Alyssa Milburn
12c84f21a3 MOHAWK: don't start animations in LBAnimation::seek
svn-id: r54655
2010-11-29 23:19:43 +00:00
Alyssa Milburn
b1b7ffa1f2 MOHAWK: move GF_NO_READONLY check to after actual page load
svn-id: r54652
2010-11-29 21:42:37 +00:00
Alyssa Milburn
790bba6c27 MOHAWK: implement more of LBLiveTextItem
svn-id: r54651
2010-11-29 21:42:00 +00:00
Alyssa Milburn
28ffa2fb87 MOHAWK: read command messages, so LB doesn't just error out
svn-id: r54650
2010-11-29 21:41:21 +00:00
Matthew Hoops
cef8d20fb2 MOHAWK: Divide GType_LIVINGBOOKSV3 into V2 and V3
svn-id: r54570
2010-11-29 12:51:53 +00:00
Matthew Hoops
6a456a0e0e MOHAWK: Set Maggie's Farmyard Adventure as an LB game
The game will start, but has many problems as it uses a later version of the LB code. Also, make sure we check for filename being empty to stop an assertion in the MacCursorManager.

svn-id: r54566
2010-11-29 06:35:50 +00:00
Matthew Hoops
2d924afa9d MOHAWK: Add basic Living Books support (all credit goes to fuzzie!)
v1 and v3 (both Windows and Mac) are working, v1 support is in better shape.

svn-id: r54558
2010-11-28 22:55:15 +00:00
Matthew Hoops
4c733c4278 MOHAWK: Cleanup image surface handling
- Renamed ImageData to MohawkSurface
- Added offset x/y fields to MohawkSurface
- The image cache now stores MohawkSurface pointers
- Switched Living Books to 8bpp mode (it requires that in the end anyway)

svn-id: r54468
2010-11-25 02:59:56 +00:00
Max Horn
121056c12f MOHAWK: Pass objs by const ref not by value
svn-id: r54443
2010-11-23 22:32:39 +00:00
Matthew Hoops
cb843daec0 MOHAWK: Have MohawkResource::open() return a bool for success/failure
svn-id: r54418
2010-11-22 18:07:33 +00:00
Matthew Hoops
0f2bcd2f9f MOHAWK: Cleanup resource handling
- Renamed getRawData() to getResource()
- Add a getResource() and hasResource() function for named resources
- Other minor formatting changes

svn-id: r54396
2010-11-20 23:53:14 +00:00
Max Horn
b3e404109c Move initGraphics and initCommonGFX from to new header.
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.

svn-id: r48934
2010-05-04 11:58:12 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Matthew Hoops
c04f8d00b1 Rename MohawkFile to MohawkArchive and OldMohawkFile to LivingBooksArchive_v1 (the latter originally having an ambiguous meaning) and move them to resource.* Also, renaming the Living Books game types to remove the ambiguous old/new.
svn-id: r47429
2010-01-22 03:43:57 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Max Horn
f31c452a5f MOHAWK: Reduce header interdependencies
svn-id: r46782
2009-12-30 23:02:14 +00:00
Max Horn
a753f606ec MOHAWK: Stop using String::emptyString
svn-id: r46780
2009-12-30 23:01:16 +00:00
Torbjörn Andersson
1a66ad80a4 Re-indentet switch() blocks to follow ScummVM indentation style. (I've always
found this style a bit unusual, but I value consistency.)

svn-id: r46734
2009-12-30 07:14:09 +00:00
Eugene Sandulenko
0ea022d076 Add Mohawk engine code. Part 1/3: main code.
svn-id: r46727
2009-12-29 23:18:24 +00:00