Commit Graph
86814 Commits
Author SHA1 Message Date
Filippos Karapetis cfc3af3466 Minimize dependencies in the new gui
svn-id: r44988
2009-10-12 15:41:19 +00:00
Martin Kiewitz 61ac28abea SCI: kCelHigh / kCelWide got broken with last revision, now fixed
svn-id: r44987
2009-10-12 15:13:15 +00:00
Martin Kiewitz 3599ac0b9b SCI: now allowing calling celWide and celHigh with only 2 parameters (done by eco quest 1 when entering menu)
svn-id: r44986
2009-10-12 13:10:25 +00:00
Martin Kiewitz 03a24ccae0 SCI: kGraph cleanup
svn-id: r44985
2009-10-12 12:42:50 +00:00
Martin Kiewitz f4f17ae516 SCI: kGraph now fixes up coordinates before constructing a rect (invalid rects are given to us by castle of dr. brain right at the 2nd screen when entering left door)
svn-id: r44984
2009-10-12 12:38:58 +00:00
Willem Jan Palenstijn 0ab28463d6 SCI: re-enable accidentally commented update call
svn-id: r44983
2009-10-12 12:15:27 +00:00
Filippos Karapetis 81a2316bd5 Reverted the Common::String::printf() related commits, as the function works fine now under MSVC
svn-id: r44982
2009-10-12 12:03:06 +00:00
Willem Jan Palenstijn 5ab01ded3d Add unit test for bug fixed by r44979
svn-id: r44980
2009-10-12 11:54:32 +00:00
Willem Jan Palenstijn 833e6f41d5 Fix broken size in Common::String::printf output in MSVC
svn-id: r44979
2009-10-12 11:51:28 +00:00
Max Horn ab1f2dac77 SCI: Fix warnings, cleanup
svn-id: r44978
2009-10-12 11:49:32 +00:00
Martin Kiewitz 250402f21b SCI/newgui: kGraph RedrawBox (ReAnimate) is now using class calling (functionality not yet implemented)
svn-id: r44976
2009-10-12 11:36:42 +00:00
Martin Kiewitz 9ae7935a1d SCI/newgui: kDrawControl (icon) now also calls BitsShow()
svn-id: r44975
2009-10-12 10:34:31 +00:00
Martin Kiewitz 50faafc622 SCI/newgui: priority band initialization fix
svn-id: r44974
2009-10-12 10:33:36 +00:00
Filippos Karapetis 2bb8d69380 Got rid of _baseTable and _baseDisplayTable
svn-id: r44973
2009-10-12 10:32:44 +00:00
Filippos Karapetis e8deac29a5 Fixed a warning message under MSVC... seems like Common::String::printf does not work correctly when used on an empty string
svn-id: r44972
2009-10-12 10:09:25 +00:00
Martin Kiewitz b6be6ae7a9 SCI/newgui: typo fixed in SciGuiPicture
svn-id: r44970
2009-10-12 08:55:33 +00:00
Filippos Karapetis ebb188c415 Move the line drawing code to SciGuiScreen()
svn-id: r44969
2009-10-12 08:25:38 +00:00
Martin Kiewitz 713f573735 SCI/newgui: implemented kPicNotValid
svn-id: r44968
2009-10-12 07:30:55 +00:00
Martin Kiewitz e85553b024 SCI/newgui: change in windowMgr, so that removed windows will get restored in any case (ReAnimate currently not implemented yet)
svn-id: r44967
2009-10-12 07:18:38 +00:00
Martin Kiewitz 07222b8e89 SCI/newgui: kGraph updateBox implemented, cleaned up usage of BitsShow() still not perfect (e.g. kq5 cutscene information box)
svn-id: r44966
2009-10-12 07:11:22 +00:00
Robert Špalek 43437eecb8 Dragon looks into the requested direction.
Parsing _lookDir and _useDir, and passing it all the way around to walkHero().

Also, added playHeroAnimation() to reduce code duplication.

svn-id: r44965
2009-10-12 03:08:28 +00:00
Robert Špalek 1a4dcd3c82 Implemented GPL commands JustTalk and JustStay.
The basic commands are done.  It remains to implement handling music (after
we play it at all), fading palette, and controlling the quick-hero and
speed-text flags (after I find out what they do).

Now the dragon switches between talking and staying during dialogs.  However,
the left/right direction doesn't work yet, because we don't respect _lookDir
and _useDir yet.

svn-id: r44964
2009-10-12 01:16:13 +00:00
Robert Špalek ca35af2697 Fixed funcActPhase()
svn-id: r44963
2009-10-12 00:39:49 +00:00
Robert Špalek b99e69f4d9 Fix indexing of the dragon's animations.
After inspection, I assert that it isn't true that the _anim array needs to
be sorted.  In fact, sorting ruins the ordering of the dragon's animations,
which corresponds to enum Movement.

After fixing this, let the dragon have a rest instead of constantly walking
down.

svn-id: r44962
2009-10-12 00:32:51 +00:00
Robert Špalek 3ef5145b41 Reduced huge code duplication by introducing Game::stopObjectAnimations()
svn-id: r44961
2009-10-12 00:15:34 +00:00
Robert Špalek 6aaf99ec67 Disambiguated _anims.
It's both a pointer to an AnimationManager and list of animation ID's fo
each object.  The latter renamed to _anim so that I can easily search for
them.

Also, fixed the bug promised in the previous commit.

svn-id: r44960
2009-10-12 00:01:39 +00:00
Robert Špalek 6768065f14 Reduced code duplication and fixed one deletion bug.
svn-id: r44959
2009-10-11 23:54:44 +00:00
Robert Špalek 62cebbb51e Implemented a few more harmless GPL2 commands
svn-id: r44958
2009-10-11 23:28:40 +00:00
Robert Špalek f71b32dd96 Loading and caching sound samples in memory.
The sounds are not played yet, but the infrastructure is getting ready.

svn-id: r44957
2009-10-11 23:01:59 +00:00
Fabio Battaglia e2db155b1a sword1: fix one gcc warning about comparison between signed and unsigned
svn-id: r44955
2009-10-11 22:34:01 +00:00
Robert Špalek c4563616ae Added support for sound archives.
We initialize them in the DraciEngine constructor, but don't play any sounds
yet.  Checked that it works for all existing sound files (required several
work-arounds against unspoken specification).

When copying the interface from barchive.h, I decided to remove some const's
from there, because getFile() wasn't really behaving like const.

Removed some static Common::String instances.

svn-id: r44953
2009-10-11 22:30:40 +00:00
Jordi Vilalta Prat b6baadff53 Updated the modern theme logo with a darker shadow
svn-id: r44952
2009-10-11 22:26:03 +00:00
Fabio Battaglia e1dc8452bd sword1: fix psx demo startup
svn-id: r44951
2009-10-11 22:20:58 +00:00
Filippos Karapetis bb7cac5b87 Show a warning when a selector vocabulary can't be found and a static vocabulary is used
svn-id: r44950
2009-10-11 21:28:52 +00:00
Torbjörn Andersson 409a1bd0a6 Removed unused variable.
svn-id: r44949
2009-10-11 21:18:43 +00:00
Martin Kiewitz 8fe74a1a7e SCI/newgui: support for textedit control (mouse support not yet implemented)
svn-id: r44948
2009-10-11 20:46:04 +00:00
Florian Kagerer c693401dce LOL/PC-98: fix decoration shape drawing
svn-id: r44947
2009-10-11 20:41:02 +00:00
Florian Kagerer 2109a0ff9d LOL/PC-98: cleanup
svn-id: r44946
2009-10-11 20:29:38 +00:00
Joost Peters 29a6fdf367 fix compilation
svn-id: r44945
2009-10-11 20:23:15 +00:00
Filippos Karapetis cfc7b741f9 Use BitsShow() for partial screen updates
svn-id: r44944
2009-10-11 20:20:28 +00:00
Florian Kagerer 7449091202 KYRA: fix sjis dialgue text display
svn-id: r44943
2009-10-11 20:09:35 +00:00
Florian Kagerer 22ffa71c0a LOL/PC-98: fix outro music
svn-id: r44941
2009-10-11 19:33:38 +00:00
Filippos Karapetis 1f00be5c15 The _variables array is sized from syncArray, so there's no need to store its size in the savegame
svn-id: r44940
2009-10-11 19:23:00 +00:00
Filippos Karapetis 07736ede19 Added kSetPort case with 4 parameters (used in the ending of LSL6)
svn-id: r44938
2009-10-11 18:42:52 +00:00
Filippos Karapetis 222b0d3887 Fill box routines do not translate the fill box coordinates
svn-id: r44937
2009-10-11 18:41:13 +00:00
Florian Kagerer 16e852159a LOL/PC-98: fix king richard healing sequence
svn-id: r44936
2009-10-11 18:40:21 +00:00
Filippos Karapetis 6fda9a5067 Optimized some screen updates in the new GUI to only update the changed rectangle, instead of the whole screen
svn-id: r44935
2009-10-11 17:59:23 +00:00
Filippos Karapetis 9b97f21486 Reset the EngineState pointer in the SciGuiGfx class when loading. Fixes loading with the new GUI
svn-id: r44934
2009-10-11 16:47:01 +00:00
Filippos Karapetis 1d2031defd Stop passing the engine state to SciGuiWindowMgr
svn-id: r44933
2009-10-11 16:15:42 +00:00
Filippos Karapetis 0da0d5b6a4 Stop passing all of the engine state to SciGuiPicture
svn-id: r44932
2009-10-11 16:12:24 +00:00