Commit Graph

13421 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
e6d3bb80b4 SCI: Improve cmdSend slightly. It's still broken, though
svn-id: r45097
2009-10-14 22:41:03 +00:00
Willem Jan Palenstijn
984527a479 SCI: Fix build with VM_DEBUG_SEND enabled
svn-id: r45096
2009-10-14 22:40:43 +00:00
Max Horn
6a2985ba08 Patch #2834677: Wave/ADPCM Endianness Fixes
svn-id: r45095
2009-10-14 22:37:05 +00:00
Martin Kiewitz
a7e6f50ede SCI: removed speed throttler (cause of kAnimate change)
svn-id: r45094
2009-10-14 21:48:52 +00:00
Martin Kiewitz
a7e51b8276 SCI: kAnimate now delays a bit if needed (fixes typing in intro of lsl5, kq6 sierra logo and much more)
svn-id: r45093
2009-10-14 21:45:16 +00:00
Martin Kiewitz
bc49c6e63e SCI/newgui: kPalette / setIntensity / reimplemented setPalette optional parameter, fixed memory corruption in setIntensity
svn-id: r45091
2009-10-14 19:39:07 +00:00
Martin Kiewitz
3c5c954154 SCI/newgui: changed kPalette (setIntensity) to behave differently (seems we had it wrong) also changed nonsense clipping
svn-id: r45090
2009-10-14 18:35:15 +00:00
Martin Kiewitz
8e58d5ef80 SCI: kDrawPic now reads out blackout flag for transitions
svn-id: r45089
2009-10-14 18:09:54 +00:00
Filippos Karapetis
20036d3cb4 Fixed the palette in the SEQ decoder again
svn-id: r45088
2009-10-14 18:03:47 +00:00
Martin Kiewitz
ccaec44fc0 SCI/newgui: fix header of transitions
svn-id: r45087
2009-10-14 17:08:02 +00:00
Martin Kiewitz
c10052865d SCI/newgui: SciGuiTransitions scroll left/right now supported (kq1)
svn-id: r45086
2009-10-14 16:57:16 +00:00
Martin Kiewitz
07b73f6ea8 SCI/newgui: woops, forgot to set new palette when scrolling up
svn-id: r45085
2009-10-14 15:46:59 +00:00
Martin Kiewitz
e074792616 SCI/newgui: SciGuiTransitions now also supports scrolling up (lsl6 intro)
svn-id: r45084
2009-10-14 15:43:58 +00:00
Filippos Karapetis
1b3a5eaff6 Started rewriting the SEQ decoder to use the new GUI functions
svn-id: r45083
2009-10-14 15:21:53 +00:00
Johannes Schickel
51975b50cb Add LoL PC98 credits entries to kyra.dat.
svn-id: r45082
2009-10-14 14:17:15 +00:00
Martin Kiewitz
f286a6d5b9 SCI/newgui: SciGuiTransitions now supports block-pixelation as well (EGA and VGA), e.g. qfg1/ega
svn-id: r45079
2009-10-14 13:58:37 +00:00
Filippos Karapetis
b220471efd Fixed kMoveCursor(). Now the cursor will be moved to the correct spot when pressing tab in dialogs
svn-id: r45078
2009-10-14 13:28:36 +00:00
Martin Kiewitz
8df9514b79 SCI/newgui: SciGuiTransitions now supports pixelation effect (lsl5 intro)
svn-id: r45077
2009-10-14 13:23:37 +00:00
Martin Kiewitz
2284932e35 SCI/newgui: changed step-count to half to minimize cpu load
svn-id: r45075
2009-10-14 12:53:57 +00:00
Joost Peters
d9de73e725 fix compilation
svn-id: r45074
2009-10-14 12:48:28 +00:00
Martin Kiewitz
7ba018898e SCI/newgui: implemented code to differentiate between EGA and VGA transitions
svn-id: r45073
2009-10-14 12:47:51 +00:00
Martin Kiewitz
9dff5c53b4 SCI/newgui: SciGuiTransitions now at least supports fadeIn/out
svn-id: r45072
2009-10-14 12:39:39 +00:00
Martin Kiewitz
060980c502 SCI/newgui: SciGuiTransitions receives SciGui now
svn-id: r45071
2009-10-14 11:34:02 +00:00
Filippos Karapetis
cf51ef499e Plugged loads of memory leaks in the new GUI
svn-id: r45070
2009-10-14 11:29:09 +00:00
Martin Kiewitz
5da32b16c2 SCI: kDrawPic - flags is actually uint16
svn-id: r45069
2009-10-14 11:28:50 +00:00
Martin Kiewitz
d6d2b0b6bb SCI/newgui: SciGuiTransitions now gets picRect
svn-id: r45068
2009-10-14 11:23:46 +00:00
Martin Kiewitz
7c2eae0ca3 SCI/newgui: fixes textcode processing to get out if string ends and no ending delimiter found
svn-id: r45065
2009-10-14 10:25:06 +00:00
Martin Kiewitz
caaac0130a SCI: kDrawControl now also fixes bad rects (fixes jones/vga)
svn-id: r45064
2009-10-14 10:11:03 +00:00
Martin Kiewitz
ec25df8e23 SCI/newgui: another change to floodfill, fixes jones/vga
svn-id: r45063
2009-10-14 10:02:23 +00:00
Martin Kiewitz
947d3ab5d4 SCI/newgui: coordinates fixup for embeeded cels
svn-id: r45062
2009-10-14 09:56:11 +00:00
Martin Kiewitz
4c91ace530 SCI/newgui: support for embedded cel data < 320 pixels width. fixes jones/vga
svn-id: r45061
2009-10-14 09:46:02 +00:00
Max Horn
5ea978f63a SCI: Rename some vars (cleaning up what seems to have been caused by a blind global search & replace)
svn-id: r45060
2009-10-14 09:37:22 +00:00
Max Horn
28034ef298 SCI: Fix warning, cleanup
svn-id: r45059
2009-10-14 09:36:39 +00:00
Filippos Karapetis
d358f07254 Proper variable naming
svn-id: r45058
2009-10-14 09:32:49 +00:00
Filippos Karapetis
8570068f58 - Moved cel width and height calculation in the GUI
- Merged the engine states of the old and new GUI

svn-id: r45057
2009-10-14 09:28:58 +00:00
Nicola Mettifogo
8c17b257ea Fixed regression bug #2874229. Regression had happened in r39878, when the dialogue code was refactored.
svn-id: r45053
2009-10-14 06:12:16 +00:00
Martin Kiewitz
724e7a873a SCI/newgui: class SciGuiTransitions created
svn-id: r45051
2009-10-13 21:18:47 +00:00
Max Horn
429c9eb814 SCI: Don't end warning() format strings with a newline or a period (a newline and an exclamation mark are automatically added)
svn-id: r45049
2009-10-13 20:52:05 +00:00
Max Horn
2ae08e8478 SCI: Don't save HunkTable segments
svn-id: r45048
2009-10-13 20:50:59 +00:00
Filippos Karapetis
b49d6d950b Moved some old GUI specific code from kgraphics.cpp into gui32.cpp
svn-id: r45047
2009-10-13 20:25:51 +00:00
Florian Kagerer
73fa80d940 LOL/PC-98: fixed outro
svn-id: r45046
2009-10-13 19:48:41 +00:00
Martin Kiewitz
8ccafc09a9 SCI/newgui: DrawControl type 10 is actually just a dummy in qfg1ega, we dont need to do anything. I believe some other control is responsible for the percentage box
svn-id: r45044
2009-10-13 19:08:40 +00:00
Max Horn
297542345f SCI: Skip loading HunkTable segments. This fixes a silly bug that can lead to arbitrary numbers of HunkTable segments to be created by repeatedly saving and loading.
svn-id: r45042
2009-10-13 18:54:20 +00:00
Max Horn
296dd54344 SCI: Merge SegManager::alloc_Hunk into SegManager::allocateHunkEntry
svn-id: r45041
2009-10-13 18:53:50 +00:00
Max Horn
c77be11ccd SCI: cleanup
svn-id: r45040
2009-10-13 18:53:11 +00:00
Max Horn
8126f81b6f SCI: Doxygenify comments in class SfxPlayer
svn-id: r45039
2009-10-13 18:52:36 +00:00
Max Horn
8191c04056 SCI: Merge some sfx related global funcs into SfxState.
This allows us to get rid of "static SfxPlayer *s_player".

svn-id: r45038
2009-10-13 18:51:59 +00:00
Martin Kiewitz
f5b73061e4 SCI/newgui: K_CONTROL_* renamed to SCI_CONTROLS_TYPE_*
svn-id: r45035
2009-10-13 18:49:10 +00:00
Filippos Karapetis
0b396ed37c Removed the now unused code in gfx/res_cursor.cpp
svn-id: r45034
2009-10-13 17:57:03 +00:00
Filippos Karapetis
b50d197f72 Removed some leftover cursor code
svn-id: r45033
2009-10-13 17:51:10 +00:00
Martin Kiewitz
b4a537137b SCI: stub for kDrawControl K_CONTROL_PERCENTAGE
svn-id: r45032
2009-10-13 17:50:27 +00:00
Filippos Karapetis
f9c6e77abe Removed some leftover code, fixes KQ5CD
svn-id: r45031
2009-10-13 17:22:52 +00:00
Martin Kiewitz
535873ba46 SCI/newgui: canBeHere fixed, walk-anywhere in sq3 is not possible anymore
svn-id: r45030
2009-10-13 17:17:40 +00:00
Filippos Karapetis
4e0046dd1f Merged the rest of the cursor code
svn-id: r45029
2009-10-13 17:09:32 +00:00
Filippos Karapetis
5aa1415397 Merged the cursor manipulation code - cursor views are still not done
svn-id: r45028
2009-10-13 16:22:07 +00:00
Martin Kiewitz
7cefc4cc98 SCI/newgui: kSetPort() now also supporting 7 parameters
svn-id: r45027
2009-10-13 16:18:17 +00:00
Martin Kiewitz
65ed9eac4e SCI/newgui: SciGuiAnimate header included into gui_gfx
svn-id: r45026
2009-10-13 15:57:40 +00:00
Martin Kiewitz
cc66387cc4 SCI/newgui: uncommented enum in SciGuiAnimate header
svn-id: r45025
2009-10-13 15:50:27 +00:00
Martin Kiewitz
da4a8bbca2 SCI/newgui: removed left over stuff from SciGuiGfx header
svn-id: r45024
2009-10-13 15:48:43 +00:00
Martin Kiewitz
5ca933bb76 SCI/newgui: implemented resetEngineState() in SciGuiAnimate
svn-id: r45023
2009-10-13 15:47:05 +00:00
Martin Kiewitz
4ccfb76e3c SCI/newgui: added new file to module.mk
svn-id: r45020
2009-10-13 15:29:24 +00:00
Martin Kiewitz
050f362654 SCI/newgui: SciGuiAnimate class created
svn-id: r45019
2009-10-13 15:28:27 +00:00
Arnaud Boutonné
dcf44e1bd8 gob detection
- Add preliminary Gobliiins 1 CD-i detection.cpp
- DOS CD is 2.01, not 1.02

svn-id: r45014
2009-10-13 14:26:42 +00:00
Filippos Karapetis
0f995c02f3 Fixed a bug in the graphics function detection code, and corrected the location of the static "overlay" selector in SCI0 games. Fixes the demo of lsl3
svn-id: r45010
2009-10-13 09:33:57 +00:00
Martin Kiewitz
1731acc320 SCI/newgui: floodfill / remove screenMasks that are already filled with the right value (otherwise we could get into an endless loop)
svn-id: r45006
2009-10-13 08:09:17 +00:00
Martin Kiewitz
3f914e67a0 SCI/newgui: finally changed floodfill to behave the same way as sierra sci. Fixes sq3 priority map
svn-id: r45005
2009-10-13 08:03:09 +00:00
Martin Kiewitz
19cacbdb3c SCI/newgui: SciGuiScreen putPixel etc. needs to use _width and _height instead of _displayWidth and _displayHeight
svn-id: r45004
2009-10-13 07:17:30 +00:00
Martin Kiewitz
aea23b4714 SCI/newgui: fix floodfill for qfg1ega pictures
svn-id: r45003
2009-10-13 06:52:31 +00:00
Robert Špalek
baec8c2421 Set all sound/subtitle-related parameters from ConfMan.
Made it intelligent so that when, for example, the dubbing file doesn't exist,
we don't fail, but instead always show subtitles even if the GUI settings
says dubbing only, etc.

svn-id: r45002
2009-10-13 05:38:45 +00:00
Robert Špalek
7c311057c1 Dubbing is played.
I haven't implemented switching dubbing and subtitles on/off according to
the config manager nor the speed of the subtitles, yet.

svn-id: r45001
2009-10-13 04:44:22 +00:00
Robert Špalek
e779284403 Sound effects are now correctly played.
Dubbing is not yet played.

svn-id: r45000
2009-10-12 22:27:23 +00:00
Martin Kiewitz
d306e1219e SCI/newgui: priority band initialization - forgot to use priorityBandCount variable
svn-id: r44999
2009-10-12 22:23:27 +00:00
Martin Kiewitz
71686a2e7b SCI/newgui: priority band initialization now working exactly the same way as sierra sci did (fixes at least lsl3)
svn-id: r44998
2009-10-12 22:08:35 +00:00
Torbjörn Andersson
30cb28e7ef Silenced GCC warning.
svn-id: r44997
2009-10-12 20:46:32 +00:00
Martin Kiewitz
1821ea1bd3 SCI/newgui: addToPic (list) replaced priority with z, to fix drawing coordinates of static cels within a picture
svn-id: r44995
2009-10-12 20:27:47 +00:00
Filippos Karapetis
c713abc6c7 Cleanup
svn-id: r44991
2009-10-12 17:21:23 +00:00
Martin Kiewitz
093554749f SCI: commenting out music warnings
svn-id: r44990
2009-10-12 16:00:30 +00:00
Martin Kiewitz
291e479daf SCI/newgui: background of noupdate cels is now correctly saved (was typo) solves sticky cel problem
svn-id: r44989
2009-10-12 15:52:50 +00:00
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
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
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
Torbjörn Andersson
57ae40e52c Fixed a warning, ironically inside a warning().
svn-id: r44931
2009-10-11 16:00:16 +00:00
Filippos Karapetis
1d3118cf42 Implemented some advanced savegame functionality - loading and deleting savegames from the GMM is now possible, and new saved games will also have thumbnails. Saving from the GMM creates corrupted saved games, so it has been disabled for now
svn-id: r44930
2009-10-11 15:51:43 +00:00
Martin Kiewitz
ba9a9422b4 SCI/newgui: list control implemented
svn-id: r44929
2009-10-11 15:41:52 +00:00
Walter van Niftrik
6f553a630a SCI: Relax GetAngle() signature for KQ6.
svn-id: r44928
2009-10-11 15:32:22 +00:00
Walter van Niftrik
4a157d43b3 SCI: Implement CoordPri() with two args.
svn-id: r44927
2009-10-11 14:58:58 +00:00
Joost Peters
117dfd08ec rename shadow var
svn-id: r44926
2009-10-11 14:30:55 +00:00
Martin Kiewitz
efcfae742b SCI: kDrawControl for list and textedit controls also using gui class
svn-id: r44925
2009-10-11 14:28:20 +00:00
Joost Peters
7b493e9a60 fix new[]/delete mismatch
svn-id: r44924
2009-10-11 14:15:37 +00:00
Johannes Schickel
097d6d298d Print warning, when the number of colors in a palette file exceed the number of colors in the target palette on load.
svn-id: r44922
2009-10-11 13:54:35 +00:00
Filippos Karapetis
6d030126d7 More work on the Object class
svn-id: r44921
2009-10-11 13:46:58 +00:00
Johannes Schickel
f4288516e8 Revert commits r44912 and r44905, seems like the original FM-Towns/PC98 games did only allow ASCII input, thus they didn't use the SJIS font in the save/load menus.
svn-id: r44916
2009-10-11 12:51:13 +00:00
Filippos Karapetis
7755404f52 Fixed compilation with the current GUI
svn-id: r44914
2009-10-11 12:45:40 +00:00
Martin Kiewitz
0d98fa3fe4 SCI: made kEditControl use SciGui class, not currently implemented in newgui
svn-id: r44913
2009-10-11 12:15:17 +00:00
Johannes Schickel
47988039ea Fix text input font for LoL PC98.
svn-id: r44912
2009-10-11 12:05:55 +00:00
Johannes Schickel
e90f337bd2 Fix regression introduced with r44907.
svn-id: r44911
2009-10-11 12:01:20 +00:00
Torbjörn Andersson
65865de473 Removed unused variable.
svn-id: r44909
2009-10-11 11:59:30 +00:00
Martin Kiewitz
0353b9923d SCI/newgui: SciGuiPicture now also supports mirroring of cel-data
svn-id: r44908
2009-10-11 11:42:50 +00:00
Johannes Schickel
ea28351862 Cleanup.
svn-id: r44907
2009-10-11 11:34:30 +00:00
Johannes Schickel
6e93add43f Cleanup.
svn-id: r44906
2009-10-11 11:30:24 +00:00
Johannes Schickel
8f6e9f0bf2 Fix FM-Towns/PC98 menu code.
svn-id: r44905
2009-10-11 11:29:34 +00:00
Johannes Schickel
6492c00a3a Revert changes to graphics/sjis.h in r44709.
svn-id: r44904
2009-10-11 11:28:43 +00:00
Martin Kiewitz
353fe8ae56 SCI/newgui: SciGuiGfx::BitsFree() implemented, currently used in kAnimate, Bits-methods renamed
svn-id: r44903
2009-10-11 09:47:12 +00:00
Martin Kiewitz
236e801366 SCI/newgui: comment change on SciGui::moveCursor()
svn-id: r44902
2009-10-11 09:39:53 +00:00
Martin Kiewitz
91eee2e99a SCI: change remove script FIXME warning into comment
svn-id: r44901
2009-10-11 09:34:35 +00:00
Martin Kiewitz
e780a973d2 SCI/newgui: kDisplay restoreUnder/saveUnder implemented, fixes previously sticky text in sq1, kq5, etc.
svn-id: r44900
2009-10-11 09:31:48 +00:00
Gregory Montoir
fc77520429 TUCKER: fix original game glitch (tracker item #2872385 - Fish swims out of aquarium)
svn-id: r44899
2009-10-11 09:26:36 +00:00
Gregory Montoir
d971b0737a TUCKER: ignore selected verb when displaying options (tracker item #2872383 - Look at options)
svn-id: r44898
2009-10-11 09:25:31 +00:00
Martin Kiewitz
0b1a8dea2d SCI/newgui: kShakeScreen partially implemented
svn-id: r44897
2009-10-11 08:52:23 +00:00
Martin Kiewitz
67c7d49729 SCI/newgui: offTop changed, fixes window corruption (qfg3 and more)
svn-id: r44896
2009-10-11 08:15:25 +00:00
Willem Jan Palenstijn
76ea099d23 SCI: Remove superfluous casts; fix warning.
svn-id: r44895
2009-10-11 08:07:59 +00:00
Martin Kiewitz
4ca178e203 SCI/newgui: correction for GuiAnimateEntry struct
svn-id: r44894
2009-10-11 08:03:09 +00:00
Martin Kiewitz
e9bedf9b97 SCI/newgui: Implemented kCanBeHere list processing
svn-id: r44893
2009-10-11 07:54:20 +00:00
Martin Kiewitz
22baa64647 SCI/newgui: kAddToPic fully implemented
svn-id: r44892
2009-10-11 07:21:59 +00:00
Walter van Niftrik
f2db73e55d SCI: Fix bug in Message() recursion
svn-id: r44890
2009-10-11 03:40:11 +00:00
Walter van Niftrik
b2a148e12c SCI: Fix hang in KQ6 book worm scene
svn-id: r44889
2009-10-11 02:47:07 +00:00
Martin Kiewitz
2d3979ff6e SCI/newgui: kAnimate - list is finally sorted according to y and z
svn-id: r44888
2009-10-10 21:38:24 +00:00
Martin Kiewitz
5d0afc45c6 SCI/newgui: kAnimate now using Common::List
svn-id: r44887
2009-10-10 21:25:21 +00:00
Martin Kiewitz
cb15cdfb07 SCI/newgui: kAnimate list - showBitsFlag implemented
svn-id: r44886
2009-10-10 20:30:31 +00:00
Martin Kiewitz
dbaac9de57 SCI/newgui: kAnimate is now using a dynamic buffer that stores animation data, fixes sq5 crash
svn-id: r44885
2009-10-10 20:25:04 +00:00
Florian Kagerer
7c065c84cb LOL/PC-98: implemented drawing code for teleporters
svn-id: r44883
2009-10-10 18:45:33 +00:00
Martin Kiewitz
7f2259d280 SCI/newgui: changed GuiAnimateList struct
svn-id: r44882
2009-10-10 18:39:52 +00:00
Martin Kiewitz
0a3e03a166 SCI/newgui: removed hardcoded screen height/width
svn-id: r44881
2009-10-10 18:18:12 +00:00
Martin Kiewitz
17ee521707 SCI/newgui: intelligent cel undithering implemented
svn-id: r44880
2009-10-10 17:40:29 +00:00
Florian Kagerer
a15cf067a7 LOL/PC-98: fixed minor glitch in wsa code
svn-id: r44879
2009-10-10 17:15:10 +00:00
Filippos Karapetis
d6f5d93dbf Started rewriting the Object struct into a class
svn-id: r44878
2009-10-10 15:58:51 +00:00
Walter van Niftrik
bb381d3a52 SCI: Fixed bug in new Message() code
svn-id: r44873
2009-10-10 13:47:26 +00:00
Martin Kiewitz
a07c50aba4 SCI/newgui: removed SCI_SCREEN_MASK_DITHERED
svn-id: r44872
2009-10-10 12:58:40 +00:00
Florian Kagerer
3e259dea30 LOL/PC-98: fixed two minor bugs
svn-id: r44870
2009-10-10 12:29:36 +00:00
Willem Jan Palenstijn
3aa8699874 SCI: Fix warnings
svn-id: r44869
2009-10-10 12:13:34 +00:00
Filippos Karapetis
bfabde4512 Fixed loading again - a regression from commit #44803
svn-id: r44868
2009-10-10 12:00:34 +00:00
Filippos Karapetis
053cbdecc7 Merged _k_base_setter() inside kBaseSetter()
svn-id: r44866
2009-10-10 10:48:46 +00:00
Filippos Karapetis
ba297ab7b1 Replaced make_reg(0, -1) with SIGNAL_REG and fixed a warning (MessageRecord is a struct)
svn-id: r44865
2009-10-10 10:46:11 +00:00
Paul Gilbert
a4fbc73ee6 Fixed memory leaks in savegame restoring
svn-id: r44863
2009-10-10 05:08:56 +00:00
Paul Gilbert
6bbe30f44b Game now completely starts up without memory leaks
svn-id: r44862
2009-10-10 04:47:18 +00:00
Paul Gilbert
df3fbd432d Further memory leak fixes
svn-id: r44861
2009-10-10 04:15:38 +00:00
Walter van Niftrik
6c1cac3956 SCI: kMessage() rewrite
svn-id: r44860
2009-10-10 02:16:23 +00:00
Walter van Niftrik
4b3c1645bc SCI: Adlib: Add support for loading patch data from adl.drv
svn-id: r44859
2009-10-10 01:38:45 +00:00
Filippos Karapetis
8ae4206373 Introduced a new debug level, kDebugLevelResMan, and reduced some of the messages printed to the console
svn-id: r44858
2009-10-10 00:07:19 +00:00
Filippos Karapetis
9bb73a8457 Removed the unused _flags variable from EngineState
svn-id: r44857
2009-10-09 23:53:37 +00:00
Filippos Karapetis
b91ae69ad2 Removed the now unused GF_SCI0_OLDGETTIME flag and simplified all of the game entries in the detector
svn-id: r44856
2009-10-09 23:19:53 +00:00
Filippos Karapetis
d95ed75789 Removed the wrong code for kGetTime case 1 in some SCI0 games - that case has always remained the same in all SCI versions. Added a warning in case we got some other case than 0 or 1 in SCI0 games
svn-id: r44855
2009-10-09 23:15:54 +00:00
Max Horn
8b3ff337be don't discard const qualifier needlessly
svn-id: r44854
2009-10-09 23:09:28 +00:00
Max Horn
d0876b06ed Remove some unused variables
svn-id: r44853
2009-10-09 22:21:45 +00:00
Max Horn
99111f0ffd SCI: Fix some weird casting in the vectorPatternCircle and vectorPatternTexturedCircle
svn-id: r44851
2009-10-09 21:49:04 +00:00
Max Horn
2e964baeef Some const correctness changes; cleanup
svn-id: r44850
2009-10-09 21:47:33 +00:00
Florian Kagerer
6f1c43a731 LOL/PC-98: fixed last commit
svn-id: r44849
2009-10-09 21:42:37 +00:00
Max Horn
a8cd7694cc Fix warnings about non-static const member in class without a constructor
svn-id: r44848
2009-10-09 21:36:09 +00:00
Florian Kagerer
0d7d2b8371 LOL/PC-98: fixed monster drawing bug (some wrong pixels)
svn-id: r44847
2009-10-09 21:35:48 +00:00
Martin Kiewitz
e0b1ef6e46 SCI/newgui: changing SciGuiScreen::dither() for cel-undithering logic
svn-id: r44846
2009-10-09 20:54:02 +00:00
Martin Kiewitz
23887e9735 SCI/newgui: changing undithering logic again, palette now uses decoded color-combinations, fixup happens during dithering run on undithered mode
svn-id: r44845
2009-10-09 20:21:21 +00:00
Martin Kiewitz
5801dd2064 SCI/newgui: moved priority band initialization to init() call of SciGui to avoid having to call usesOldGfxFunctions() within constructor, where it would crash on some games (sq3)
svn-id: r44844
2009-10-09 19:50:20 +00:00
Martin Kiewitz
9f88122baa SCI/newgui: calling process_sound_events now directly within kAnimate(), fixes hanging scripts (e.g. sq3 exiting pod, kq1 getting killed)
svn-id: r44843
2009-10-09 19:41:39 +00:00
Martin Kiewitz
e387d274dd SCI/newgui: adding inactivate code for debug purposes to forward single methods to SciGui32 (testing only)
svn-id: r44842
2009-10-09 19:19:34 +00:00
Martin Kiewitz
918827ce99 SCI/newgui: correction for kAddToPic, fixes guards in 1st screen of kq1
svn-id: r44841
2009-10-09 18:57:16 +00:00
Martin Kiewitz
18df7c69ee SCI/newgui: kAnimate priority fixed
svn-id: r44840
2009-10-09 18:24:55 +00:00
Martin Kiewitz
dd0f5c318c SCI/newgui: pattern #defines moved into SciGuiPicture
svn-id: r44839
2009-10-09 18:08:13 +00:00
Martin Kiewitz
164611668b SCI/newgui: pattern and floodfill moved into SciGuiPicture
svn-id: r44838
2009-10-09 18:06:24 +00:00
Martin Kiewitz
01dc7545d2 SCI: drawMenuBar/clearMenuBar now using gui class, currently unimplemented in newgui, but so wont get affected by oldgui switching to visualScreen anymore (e.g. qfg2)
svn-id: r44837
2009-10-09 17:47:33 +00:00
Filippos Karapetis
14f8d50a62 Moved actor movement detection in state.cpp, together with the other detections and rewrote it to work in a similar fashion to the other detections
svn-id: r44836
2009-10-09 17:41:59 +00:00
Martin Kiewitz
a38d6451ba SCI: kgraphics.cpp cleanup (no code changes)
svn-id: r44835
2009-10-09 17:34:52 +00:00
Florian Kagerer
7825128639 LOL/PC-98: fixed minor bugs in text displayer
svn-id: r44834
2009-10-09 17:31:01 +00:00
Martin Kiewitz
efb1c33715 SCI/newgui: priority band init fix
svn-id: r44833
2009-10-09 17:16:34 +00:00
Martin Kiewitz
ab1184770b SCI/newgui: kCanBeHere partially implemented, little corrections
svn-id: r44832
2009-10-09 16:51:10 +00:00
Filippos Karapetis
53b1ff79a3 Oops...
svn-id: r44830
2009-10-09 16:21:37 +00:00
Filippos Karapetis
6e6336ece7 Fixed an issue when examining callk calls in the new graphics functions detection routine
svn-id: r44829
2009-10-09 16:20:15 +00:00
Filippos Karapetis
4011e948e7 Finished the automatic detection of the graphics functions used in SCI0 games. Also, introduced a new helper function to detect the offset of a ret call inside a script, with possible uses in other script detection routines
svn-id: r44828
2009-10-09 16:15:56 +00:00
Martin Kiewitz
c26e283d1b SCI/newgui: priority bands support for ega pictures
svn-id: r44827
2009-10-09 13:43:20 +00:00
Martin Kiewitz
79bbcdac7d SCI/newgui: some more priority band usage in kAnimate
svn-id: r44826
2009-10-09 13:25:32 +00:00
Martin Kiewitz
ed5a4625d5 SCI/newgui: support for priority bands, kCoordPri kPriCoord implemented, priority band picture support also added
svn-id: r44825
2009-10-09 13:15:37 +00:00
Martin Kiewitz
0d5ba6ac6c SCI/newgui: SciGuiView now also locks resource
svn-id: r44823
2009-10-09 12:10:17 +00:00
Martin Kiewitz
ce8addf5e0 SCI: resmanager / include order change
svn-id: r44821
2009-10-09 12:09:52 +00:00
Martin Kiewitz
9f3c2c9083 SCI/newgui: SciGuiFont now locks the resourcedata, fixes broken fonts in games
svn-id: r44820
2009-10-09 12:04:07 +00:00
Max Horn
23ded6d955 Fix warning
svn-id: r44819
2009-10-09 12:01:22 +00:00
Martin Kiewitz
3135892df0 SCI/newgui: windowmgr cleanup
svn-id: r44815
2009-10-09 10:49:03 +00:00
Paul Gilbert
857a35f748 Fixed all memory leaks as far as the initial title screen
svn-id: r44814
2009-10-09 10:32:33 +00:00
Max Horn
b846fd6aca cleanup
svn-id: r44810
2009-10-09 09:41:53 +00:00
Max Horn
0d9e1ded6f Fix warning
svn-id: r44809
2009-10-09 09:41:35 +00:00
Paul Gilbert
8694b48ae3 Set up a basic tracing system for all memory allocations to help track down memory leaks
svn-id: r44808
2009-10-09 08:15:30 +00:00
Martin Kiewitz
3072d54589 SCI/newgui: Implemented kAddToPic (almost complete, but z-sorting and some extra code missing)
svn-id: r44807
2009-10-09 07:50:37 +00:00
Max Horn
0c457be0fb SCI: Turn reconstruct_scripts into SegManager::reconstructScripts
svn-id: r44806
2009-10-08 22:03:55 +00:00
Willem Jan Palenstijn
860f7ce39b SCI: Remove outdated comment
svn-id: r44805
2009-10-08 21:39:33 +00:00
Willem Jan Palenstijn
2f1c7f779a SCI: Don't iterate past end of list
svn-id: r44804
2009-10-08 21:32:04 +00:00
Max Horn
76996301d1 SCI: Removed obsolete stringfrags code
svn-id: r44803
2009-10-08 21:29:45 +00:00
Max Horn
3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Martin Kiewitz
2ab906bafd SCI/newgui: RestoreBits() now ignores empty handles
svn-id: r44801
2009-10-08 21:00:21 +00:00
Martin Kiewitz
b6967bc70d SCI/newgui: more cleanup
svn-id: r44799
2009-10-08 20:51:49 +00:00
Florian Kagerer
64c4a8f901 LOL/PC-98: fixed lightning spell
svn-id: r44798
2009-10-08 20:37:10 +00:00
Florian Kagerer
f8cdacdeea LOLLOL/PC-98: fixed add-spell-to-scroll animation
svn-id: r44797
2009-10-08 20:22:12 +00:00
Martin Kiewitz
b0eeb3636c SCI/newgui: cleanup, fixing uninitialized variable in SciGuiPalette
svn-id: r44796
2009-10-08 20:13:52 +00:00
Max Horn
d56d072fb2 SCI: Removed SegManager::getDescription
svn-id: r44795
2009-10-08 20:07:00 +00:00
Florian Kagerer
a121c822eb LOLLOL/PC-98: fixed ghorka swamp freeze mode
svn-id: r44794
2009-10-08 19:42:39 +00:00
Max Horn
42120ed626 Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
2009-10-08 19:41:38 +00:00
Martin Kiewitz
f5ccaf7e29 SCI/newgui: floodfill cleanup, pattern drawing: helper went private, clipping implemented
svn-id: r44792
2009-10-08 19:14:58 +00:00
Max Horn
d46aac8404 SCI: Fix warning
svn-id: r44791
2009-10-08 18:59:45 +00:00
Martin Kiewitz
03ee8c00be SCI/newgui: remarks about _menuPort, uninitialized usage in SciGuiPalette removed, _menuPort and _mainPort get deleted in destructor
svn-id: r44790
2009-10-08 18:34:49 +00:00
Martin Kiewitz
aab278974a SCI/newgui: kAnimate changes
svn-id: r44789
2009-10-08 18:07:49 +00:00
Martin Kiewitz
61952c3ac1 SCI/newgui: implemented more of kAnimate, currently crashes on windowMgr update.
svn-id: r44788
2009-10-08 16:23:46 +00:00
Filippos Karapetis
bcade54247 Started rewriting the check for the graphics functions type (still not finished)
svn-id: r44787
2009-10-08 14:37:55 +00:00
Arnaud Boutonné
caaba2ae95 Add a hack that fixes bug #2858887 and #2859606
svn-id: r44785
2009-10-08 12:04:34 +00:00
Martin Kiewitz
43a60d965a SCI/newgui: change to nsRect, scripts expect that. Fixes mouse clicking on several games
svn-id: r44784
2009-10-08 11:57:17 +00:00
Martin Kiewitz
8f8b84f774 SCI/newgui: kAnimate - coordinates fixed
svn-id: r44783
2009-10-08 11:49:11 +00:00
Martin Kiewitz
120b6b9392 SCI/newgui: kAnimate - _delete invoking implemented
svn-id: r44782
2009-10-08 11:23:53 +00:00
Martin Kiewitz
cce8d2e279 SCI/newgui: kAnimate - more implemented, cels are now drawn but isnt working correctly currently
svn-id: r44781
2009-10-08 10:35:12 +00:00
Martin Kiewitz
d1dcd82ac0 SCI/newgui: kAnimate SciGuiGfx::AnimateFill implemented
svn-id: r44780
2009-10-08 10:02:26 +00:00
Travis Howell
982950941c The layout of global object data is different in the PCE version of Loom.
svn-id: r44779
2009-10-08 09:33:20 +00:00