Commit Graph

124 Commits

Author SHA1 Message Date
Eugene Sandulenko
ec4f7d3d7c Whitespaces
svn-id: r18595
2005-07-29 17:58:00 +00:00
Andrew Kurushin
2efc7edb1a fix setStatusText
svn-id: r18593
2005-07-29 17:42:33 +00:00
Eugene Sandulenko
1a1db4611a Show scene substitute image for demo versions of ITE.
svn-id: r18589
2005-07-29 16:37:06 +00:00
Eugene Sandulenko
6c9f6e8def Partially implemented differences in IHNM script functions.
svn-id: r18573
2005-07-21 01:33:28 +00:00
Andrew Kurushin
50c2d8954d finally Resource manager rewritten:
-adds patch file support
-global _vm removed

cleanups

svn-id: r18560
2005-07-19 19:05:52 +00:00
Torbjörn Andersson
d3ba7a1543 When redrawing the inventory, clear every inventory slot - even the empty
ones - before drawing the object. This fixes a glitch when getting the ring
from the mud.

svn-id: r18553
2005-07-18 14:37:55 +00:00
Torbjörn Andersson
62a7474174 Fixed ITE inventory redraw glitch when exchanging the medallion for money.
svn-id: r18551
2005-07-17 15:10:08 +00:00
Torbjörn Andersson
8df01d4aac Cleanup
svn-id: r18550
2005-07-17 13:36:38 +00:00
Andrew Kurushin
528eedb2de font & text related changes:
-rewritten font loading
-actors box text output implemented
-many fixes
-implemented nonactors textoutput

svn-id: r18542
2005-07-14 17:46:21 +00:00
Torbjörn Andersson
f756b74d04 Made it possible to terminate dialog windows with Enter. (We could already
terminate them with Esc.) This is so that, for instance, if you type a
savegame name you can press Enter, rather than clicking on the "Save"
button.

I don't know if the original did this as well, but it feels natural to me.

svn-id: r18537
2005-07-12 18:31:48 +00:00
Lars Persson
d1e58e6036 Updated interface.cpp so it compiles for VC6 without errors. Moved loop variable declaration
svn-id: r18532
2005-07-10 15:25:30 +00:00
Andrew Kurushin
c2f1691bad gfx rearangement
code cleanups

svn-id: r18523
2005-07-09 16:23:45 +00:00
Andrew Kurushin
d944bd7793 implemented per scene actors clipping
so last sequence should look much better (not perfect)

svn-id: r18516
2005-07-08 16:56:03 +00:00
Andrew Kurushin
cff8568562 fix converse pal bug
svn-id: r18502
2005-07-06 17:07:58 +00:00
Eugene Sandulenko
cdead6d57b - Stripped down unused SURFACE parameter in palette-related functions
- Fixed scenes glitch when loading saved game. This is done by closing
  load window right after game is loaded which differs from original but
  seems more logical to me
- Fixed wrong palette when Dragon maze was loaded from a savegame. We just
  didn't process Palette resource for it.

svn-id: r18494
2005-07-05 15:15:35 +00:00
Eugene Sandulenko
de14b2337f Implementation of sfShowMap. This was latest unimplemented script function :)
svn-id: r18487
2005-07-03 20:02:56 +00:00
Torbjörn Andersson
d38a41e532 When a key is pressed, go back to repeat phase 0 again. This is so that we
won't continue a fast repeat with the new key. (Annoying example: It could
be tricky to type upper-case letters because if you didn't type the letter
fast enough "Shift" would begin to repeat, and then whatever letter you
typed would start repeating immediately.)

svn-id: r18423
2005-06-21 15:41:35 +00:00
Eugene Sandulenko
2c9d2ffc97 Support for mouse wheel in Options dialog and in Converse panel
svn-id: r18414
2005-06-19 23:41:40 +00:00
Andrew Kurushin
97337c4623 implemented sfGetNumber
now use MagicHat (be carefull not to exceed overall scene number)

svn-id: r18410
2005-06-19 14:06:20 +00:00
Torbjörn Andersson
7b8c800482 Whitespace
svn-id: r18372
2005-06-10 13:49:43 +00:00
Torbjörn Andersson
8c82d94c40 Allow part of the IHNM intro to run again. I haven't verified that these
resource numbers are correct.

svn-id: r18366
2005-06-08 14:41:57 +00:00
Andrew Kurushin
d3587c3a1e fixed lense creation bug ( fade in/out now has separate flag)
svn-id: r18340
2005-06-04 15:02:17 +00:00
Eugene Sandulenko
8a835899fb Implement game load with '-x' comman-line parameter.
Fix couple valgrind and compiler warnings.

svn-id: r18313
2005-06-02 22:14:57 +00:00
Torbjörn Andersson
9be6764c47 Removed unused variables.
svn-id: r18309
2005-06-01 06:24:24 +00:00
Eugene Sandulenko
f8f9ed18a8 Allow entry of space and some letters such as 'r' and 'p' as parts of
save names.

svn-id: r18305
2005-05-31 23:41:27 +00:00
Andrew Kurushin
d1ffc9df2d multiple files save-load implementation
svn-id: r18303
2005-05-31 20:08:46 +00:00
Eugene Sandulenko
0eb4e94116 Almost complete implementation of Puzzle. Now it is possible to solve it
successfully.

Things to do:
 o non-actors speech, it just doesn't get displayed, though generated
 o support for CD voices

svn-id: r18301
2005-05-31 01:03:13 +00:00
Eugene Sandulenko
5cd6d6b6f8 Implement key auto-repeat used in savegame dialog.
svn-id: r18297
2005-05-29 20:57:45 +00:00
Andrew Kurushin
99b9fc7070 implemented DOS version 1 pixel clipping
game options WIP3

svn-id: r18293
2005-05-29 15:39:35 +00:00
Andrew Kurushin
3d1c969377 game options WIP2
svn-id: r18282
2005-05-28 11:06:55 +00:00
Andrew Kurushin
82b86d495e saveload WIP
svn-id: r18232
2005-05-23 18:53:36 +00:00
Eugene Sandulenko
0ccb1b726b Plug in Puzzle. Now it consists mainly of stubs but neverthless lets skip
the Puzzle and continue game pretending like you completed the Puzzle.

svn-id: r18225
2005-05-23 02:23:34 +00:00
Eugene Sandulenko
e787c3d9a6 Implement Interface::drawButtonBox()
svn-id: r18220
2005-05-22 13:49:45 +00:00
Andrew Kurushin
b804538dbe stub drawButtonBox
svn-id: r18218
2005-05-22 12:21:16 +00:00
Andrew Kurushin
3b01bef51b fixes some todo (hardcoded resource ids -> customized per game)
preparation for option dialog (wip)

svn-id: r18217
2005-05-22 11:59:22 +00:00
Andrew Kurushin
1d31cd1223 fixed give verb
fixed occasional verbs redraw

svn-id: r18113
2005-05-15 17:45:59 +00:00
Andrew Kurushin
91ff7f7a31 fixed interpreter bug (negative address offset - may crush system)
implemented inventory save-load

svn-id: r18071
2005-05-12 15:11:32 +00:00
Torbjörn Andersson
39852157fe Forgot to remove debugging messages.
svn-id: r18035
2005-05-10 17:40:58 +00:00
Torbjörn Andersson
519c023e4b Fixed failed assertion when entering the Elk King's court. It looks like a
hack - perhaps it *is* a hack - but it's what the original engine did too,
as far as I can tell.

svn-id: r17992
2005-05-09 06:36:27 +00:00
Andrew Kurushin
a909052c8d fixed object frawing
implemented sfGetObjImage, sfSetObjImage, sfSetObjName

svn-id: r17789
2005-04-24 15:17:38 +00:00
Andrew Kurushin
edad36ee60 fixed sfDropObject implementation
svn-id: r17767
2005-04-23 12:34:35 +00:00
Andrew Kurushin
f3049a41f4 fixed non assigned buttons in IHNM
svn-id: r17750
2005-04-22 15:43:42 +00:00
Torbjörn Andersson
2ea2b51ed5 Changed "BYTE" to "int".
svn-id: r17749
2005-04-22 15:26:50 +00:00
Andrew Kurushin
cdede6caa4 implemented inventory
todo: timeout catchup & capital 'U' & 'D' handling

svn-id: r17748
2005-04-22 14:11:04 +00:00
Eugene Sandulenko
65ade039ec o Fix save/load. Now it restores game properly but still at exit #0.
o Proper background for inset rooms. Crowd is gone now.
o Draw black border around inset rooms.

svn-id: r17744
2005-04-22 01:38:27 +00:00
Eugene Sandulenko
283a9f35ac Add not yet correctly working save/load. Use key F7 for saving
and F8 for loading. Now works only within current scene and restores
to entrance #0 which is wrong.

svn-id: r17726
2005-04-21 01:30:07 +00:00
Eugene Sandulenko
bd5f93cece Implement inventoryItemPosition()
svn-id: r17724
2005-04-20 23:42:19 +00:00
Andrew Kurushin
d9bb4aae1d fixed speech lock
svn-id: r17689
2005-04-19 11:07:06 +00:00
Torbjörn Andersson
90886d9506 Fixed warnings.
svn-id: r17682
2005-04-19 07:44:01 +00:00
Andrew Kurushin
d52032c75c converse support improved (still has some bugs)
fixed: now protagonist can't be target object
fixed: statusbar color
added: *mouseButtonPressed in SagaEngine

svn-id: r17672
2005-04-18 20:03:14 +00:00