1117 Commits

Author SHA1 Message Date
Filippos Karapetis
c64fa600b7 - Added some TODOs
- Disabled the kGraph case used in KQ6 Windows for now, as it's problematic and crashes the game
- Added extra param to kDrawCel(), used in KQ6 Windows

The icon bar in KQ6 Windows is shown a bit better now

svn-id: r45567
2009-10-31 17:54:28 +00:00
Martin Kiewitz
99cd8d5d2f SCI/newgui: kGraph support for Save-UpscaledHires-Box (not sure if coordinates are really hires, it seems that they are not)
svn-id: r45564
2009-10-31 15:25:47 +00:00
Johannes Schickel
0867129399 Formatting.
svn-id: r45553
2009-10-30 23:44:12 +00:00
Filippos Karapetis
86cafd561f Some work on the kPortrait kernel function, used to show hires character portraits in the Windows CD version of KQ6
svn-id: r45552
2009-10-30 22:55:35 +00:00
Filippos Karapetis
1c158c52a1 Cleaned up kPlatform() a bit, and changed it to return appropriate values for the CD hires version of KQ6
svn-id: r45551
2009-10-30 22:53:00 +00:00
Martin Kiewitz
e87808d89b SCI: validate_variable fixed and now using bool instead of int (fixes pq3 demo crash on my computer)
svn-id: r45543
2009-10-30 18:01:27 +00:00
Filippos Karapetis
57266a7cba - Removed status_bar_foreground and status_bar_background variables from the engine state
- Implemented clearMenuBar() in the new graphics code
- Removed the "status_bar" command, which was used to set custom colors for the status bar

svn-id: r45538
2009-10-30 14:39:26 +00:00
Martin Kiewitz
3ec76350ec SCI: kStrAt offset checking fixed
svn-id: r45537
2009-10-30 14:22:22 +00:00
Filippos Karapetis
ff284c9f5b Remove unused includes when INCLUDE_OLDGFX is not set. Implemented the full screen updates that the current menu code is doing using new graphics functions (still unfinished). Some cleanup.
svn-id: r45536
2009-10-30 12:33:05 +00:00
Filippos Karapetis
932cd54bbe Rewrote the avoidpath debug code to use new graphics functions
svn-id: r45533
2009-10-30 11:26:00 +00:00
Martin Kiewitz
0c2ab71829 SCI: kStrAt / dont do call, when offset exceeds maxSize. fixes crash in kq5
svn-id: r45530
2009-10-30 10:06:35 +00:00
Walter van Niftrik
27df03a18e SCI: AvoidPath: Add workaround for pathfinding problem when Patti walks to
control room in LSL5, room 660.

svn-id: r45522
2009-10-30 04:47:02 +00:00
Walter van Niftrik
dba613ecd2 SCI: AvoidPath: Don't discard contained-access polygon when starting point
is right next to it.

svn-id: r45521
2009-10-30 03:54:50 +00:00
Filippos Karapetis
c8546fd92f Stop SQ4 floppy from updating the unused sq4sg.dir file when deleting a saved game
svn-id: r45507
2009-10-29 20:31:35 +00:00
Filippos Karapetis
89811d1ea4 Cleanup
svn-id: r45506
2009-10-29 19:32:27 +00:00
Filippos Karapetis
ebfcea35ec - Implemented savegame deletion for SQ4 floppy
- Added a more proper way to disable the "Change Directory" button, by checking its name, rather than the string it contains

svn-id: r45504
2009-10-29 18:07:39 +00:00
Filippos Karapetis
6eea032245 Disable the "Delete" button for all versions of SQ4 floppy, and the "Change Directory" button for all games (English and non-English versions)
svn-id: r45503
2009-10-29 16:27:23 +00:00
Filippos Karapetis
caa5136b5c Automatically create memory.drv (the file containing the LSL5 password) for non-English versions of LSL5, so that the games don't abort if it can't be found.
svn-id: r45502
2009-10-29 16:05:24 +00:00
Martin Kiewitz
8178d548eb SCI/newgui: Defining color white and others in SciGuiScreen and using that. Also clears screen with 0 on sci1.1 games (needs further investigation), fixes pictures
svn-id: r45500
2009-10-29 14:16:20 +00:00
Filippos Karapetis
e5e80dd6d6 Fixed the deletion of save games - the wrong save game would be deleted with the previous code, as we sort the list by date
svn-id: r45499
2009-10-29 09:58:36 +00:00
Filippos Karapetis
fa3305ee01 Moved some menu code outside the INCLUDE_OLDGFX safeguards
svn-id: r45496
2009-10-29 01:10:10 +00:00
Filippos Karapetis
8150fc07bc Added a workaround for the casino door in LSL1
svn-id: r45494
2009-10-28 23:32:28 +00:00
Filippos Karapetis
2d9d9bca13 Changed some of the menu code to use new graphics functions
svn-id: r45493
2009-10-28 23:04:56 +00:00
Filippos Karapetis
21323a8d12 Wrapped some more oldgui-specific code around INCLUDE_OLDGFX safeguards
svn-id: r45492
2009-10-28 22:01:42 +00:00
Filippos Karapetis
d62342b32b Wording. Added warnings for unimplemented menu-related functions in the new GUI code
svn-id: r45489
2009-10-28 21:49:16 +00:00
Filippos Karapetis
5d037f64ef Added detection for pq1, cnick-lslcasino and cnick-longbow to the fallback detector. Simplified the code which distinguishes between demo and full versions. Some cleanup
svn-id: r45488
2009-10-28 21:46:27 +00:00
Martin Kiewitz
5f71650520 SCI/newgui: BaseSetter moved to SciGui
svn-id: r45480
2009-10-28 19:19:35 +00:00
Martin Kiewitz
88e56f87eb SCI/newgui: IsItSkip moved into SciGui
svn-id: r45479
2009-10-28 19:10:39 +00:00
Martin Kiewitz
5abe6c8054 SCI/newgui: Cleanup
svn-id: r45478
2009-10-28 18:59:11 +00:00
Filippos Karapetis
fbbd0b1575 Fixed the rectangle top inside kBaseSetter()
svn-id: r45466
2009-10-28 14:45:26 +00:00
Filippos Karapetis
0851b00d4f Cleanup
svn-id: r45465
2009-10-28 14:35:47 +00:00
Filippos Karapetis
6ac2680e82 Oops, removed leftover code (z was taken into account after all, but in a different place...)
svn-id: r45464
2009-10-28 14:25:39 +00:00
Filippos Karapetis
394fc76719 Rewrote kBaseSetter() to use new graphics functions and behave like the original, and fixed a bug in the process (the previous code ignored z when calculating the height)
svn-id: r45463
2009-10-28 14:23:23 +00:00
Filippos Karapetis
0b83a8eec0 Reimplemented isItSkip() using new graphics code
svn-id: r45461
2009-10-28 13:43:09 +00:00
Filippos Karapetis
04ab6bc9fc Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard (defined in sci.h)
svn-id: r45459
2009-10-28 13:20:30 +00:00
Filippos Karapetis
7e0f8a9af9 Added proper detection and handling of transitive SCI1-SCI1.1 games, like PQ1 VGA. These used SCI1 resources and compression with a SCI1.1 kernel (thanks to waltervn's observations)
svn-id: r45420
2009-10-26 21:41:41 +00:00
Filippos Karapetis
b5feeb60b6 Moved the cel count calculation to the new graphics code
svn-id: r45379
2009-10-25 22:33:08 +00:00
Filippos Karapetis
1a4b617398 - Removed graphics options code from the old GUI. Almost all of them are not supposed to be modified by the user (e.g. the way lines and brushes are drawn), and we can implement any of them again if needed in the new GUI (but they shouldn't really be needed).
- Added a config option to disable dithering in the new GUI if requested, called "undither", which is set to true by default and can be changed to false if needed per game
- The per-resource palette code has been removed for now, to be replaced by regular hashmaps (once the FreeSCI scifx reading code has been converted)

svn-id: r45378
2009-10-25 20:53:07 +00:00
Martin Kiewitz
fa627f4233 SCI: kGameIsRestarting - another change, setting back delay back to 30msecs, but no delay during initial 50 calls. This seems to make qfg2 and iceman happy.
svn-id: r45376
2009-10-25 20:12:12 +00:00
Martin Kiewitz
c0235a268d SCI: kGameIsRestarting - changing speed throttler to 10 msecs, lsl5 is still "somewhat" playable, codename iceman and qfg2 didnt show some animations cause of the higher delay
svn-id: r45375
2009-10-25 20:03:10 +00:00
Martin Kiewitz
f0fc4810fd SCI: kAddToPic - removing support for argc==0 case, if this really gets used somewhere, we need to set _picNotValid in that case
svn-id: r45372
2009-10-25 18:43:23 +00:00
Matthew Hoops
55e0efeb8f Add support for CD Audio in Jones in the Fast Lane CD and KQ6 CD.
svn-id: r45367
2009-10-25 03:26:20 +00:00
Filippos Karapetis
452ae8a576 Cleanup
svn-id: r45366
2009-10-25 02:36:51 +00:00
Martin Kiewitz
701caea8d7 SCI: kAddToPic - abort when list is null reference (fixes qfg1 saved game loading on some screens)
svn-id: r45351
2009-10-23 20:41:59 +00:00
Filippos Karapetis
f0c4290287 Reset the graphics input after reconstructing game scripts. This fixes savegame loading in KQ4
svn-id: r45350
2009-10-23 20:10:51 +00:00
Martin Kiewitz
9c9181eed6 SCI: speed throttler moved to kGameIsRestarting for all games. Also made the delay shorter. sq3 now seems to work fine, kq1 also has animations and lsl5 mud wrestling is also working correctly.
svn-id: r45345
2009-10-23 11:25:48 +00:00
Martin Kiewitz
8e6291f7bb SCI: kGameIsRestarting - implemented speed throttler in here for sci0/sci01 games, test only!
svn-id: r45342
2009-10-22 21:30:30 +00:00
Martin Kiewitz
12cdcea516 SCI: kAnimate disable throttler for SCI0 and SCI01 games cause of issues in at least kq1. temporary solution only!
svn-id: r45341
2009-10-22 21:19:03 +00:00
Filippos Karapetis
42068f5853 Cleanup
svn-id: r45337
2009-10-22 15:12:54 +00:00
Filippos Karapetis
512c9cae11 Fixed a crash when selecting menu items
svn-id: r45334
2009-10-22 09:36:46 +00:00