Commit Graph
614 Commits
Author SHA1 Message Date
Matthew Hoops b43e99566e Converting AVIPlayer into a class that inherits from VideoDecoder and adapt SCI to use this. Also, moving the codec and Codec class into their own folder. (Based on a patch by md5)
svn-id: r45170
2009-10-16 18:05:56 +00:00
Martin Kiewitz c213032da9 SCI: insert comment about kq6 issue caused by new speed throttler. theoretically this could go away when reanimate/cel updates are implemented
svn-id: r45160
2009-10-16 11:22:06 +00:00
Filippos Karapetis 600d5199fc Moved the SEQ decoder outside the gfx directory, as it is completely stand alone now and no longer uses any GUI-related code
svn-id: r45153
2009-10-16 08:26:41 +00:00
Filippos Karapetis 422b732dba Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
svn-id: r45151
2009-10-16 07:42:23 +00:00
Filippos Karapetis da7652deb3 Changed the KQ6 floppy SEQ decoder to use the common VideoPlayer interface. Some cleanup
svn-id: r45124
2009-10-15 15:17:54 +00:00
Martin Kiewitz e195b88707 SCI: kAnimate speed throttler fix
svn-id: r45118
2009-10-15 13:30:18 +00:00
Martin Kiewitz 0868fd24d2 SCI: kAnimate now uses gfxop_sleep for sleeping, mouse cursor is more fluid that way
svn-id: r45105
2009-10-15 07:50:10 +00:00
Martin Kiewitz 942dc2ce84 SCI: included stub for kPalVary to make Pharkas work a little bit more (currently crashes in kMessage)
svn-id: r45102
2009-10-15 06: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
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
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 5da32b16c2 SCI: kDrawPic - flags is actually uint16
svn-id: r45069
2009-10-14 11:28:50 +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
Max Horn 28034ef298 SCI: Fix warning, cleanup
svn-id: r45059
2009-10-14 09:36:39 +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
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
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
Martin Kiewitz f5b73061e4 SCI/newgui: K_CONTROL_* renamed to SCI_CONTROLS_TYPE_*
svn-id: r45035
2009-10-13 18:49: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
Filippos Karapetis 4e0046dd1f Merged the rest of the cursor code
svn-id: r45029
2009-10-13 17:09:32 +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 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
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 713f573735 SCI/newgui: implemented kPicNotValid
svn-id: r44968
2009-10-12 07:30:55 +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
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
Martin Kiewitz ba9a9422b4 SCI/newgui: list control implemented
svn-id: r44929
2009-10-11 15:41:52 +00:00
Walter van Niftrik 4a157d43b3 SCI: Implement CoordPri() with two args.
svn-id: r44927
2009-10-11 14:58:58 +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
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
Martin Kiewitz 0b1a8dea2d SCI/newgui: kShakeScreen partially implemented
svn-id: r44897
2009-10-11 08:52:23 +00:00
Filippos Karapetis 053cbdecc7 Merged _k_base_setter() inside kBaseSetter()
svn-id: r44866
2009-10-10 10:48:46 +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 a38d6451ba SCI: kgraphics.cpp cleanup (no code changes)
svn-id: r44835
2009-10-09 17:34:52 +00:00
Martin Kiewitz ab1184770b SCI/newgui: kCanBeHere partially implemented, little corrections
svn-id: r44832
2009-10-09 16:51:10 +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
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
Max Horn 0988e273ec SCI: Turn lookup_node & lookup_list into SegManager::lookupNode & SegManager::lookupList
svn-id: r44769
2009-10-07 23:34:24 +00:00
Filippos Karapetis 1562add631 - Cleaned up the cursor code
- Renamed gui -> _gui in EngineState, for consistency
- Added a reference to SciGuiCursor in EngineState, to be used by current code
- Renamed setCursorHide -> hideCursor, setCursorShow -> showCursor
- Moved the cursor zone limiting code inside SciGuiCursor. This code is currently not functioning, as we need to call refreshPosition() before each updateScreen() call to limit the cursor position.

svn-id: r44760
2009-10-07 21:29:47 +00:00
Martin Kiewitz 80d136a362 SCI: kDrawPic / had an error in previous revision
svn-id: r44759
2009-10-07 21:25:31 +00:00