Commit Graph
165 Commits
Author SHA1 Message Date
Martin Kiewitz d982d10505 SCI: Make event constants more verbose
svn-id: r46255
2009-12-04 17:58:26 +00:00
Martin Kiewitz a5f1808c83 SCI: SciEvent created, kernel_sleep() created
svn-id: r46252
2009-12-04 17:38:24 +00:00
Martin Kiewitz 43abd8d2e9 SCI: Fixed kSetCursor (fixes qfg1vga menu immediately disappearing after opening)
svn-id: r46248
2009-12-04 12:55:53 +00:00
Martin Kiewitz df422c0894 SCI: Fix kSetCursor (Sci1.1) to behave like Sierra Sci (fixes cursor hiding/showing in kq6)
svn-id: r46224
2009-11-30 19:34:45 +00:00
Martin Kiewitz b85c254c5f SCI/newgui: support for disabled menu entries, changed textface (int) to greyedOutput (bool)
svn-id: r45863
2009-11-12 16:20:19 +00:00
Martin Kiewitz 1bc60e9d85 SCI/newgui: call menuReset() on game_init(), fixes double menu in pq2
svn-id: r45843
2009-11-11 21:22:04 +00:00
Martin Kiewitz 429d8be2dc SCI/newgui: Almost done with menu support
svn-id: r45838
2009-11-11 19:43:51 +00:00
Martin Kiewitz 0b8a2ff617 SCI/newgui: SciGuiMenu interactive keyboard support added (menu drawing still missing)
svn-id: r45684
2009-11-05 07:28:44 +00:00
Martin Kiewitz 14447f7e01 SCI/newgui: select() implemented (interactive modes not done yet)
svn-id: r45674
2009-11-04 21:03:57 +00:00
Martin Kiewitz c975c288ee SCI/newgui: SciGuiMenu select() created, little cleanup
svn-id: r45673
2009-11-04 16:16:55 +00:00
Martin Kiewitz a53fda32bb SCI/newgui: SciGuiMenu - set()/get() implemented
svn-id: r45671
2009-11-04 16:11:44 +00:00
Filippos Karapetis c8fbac1517 - Changed the segment manager to be a static part of the engine, and stopped deleting and recreating it when restoring games
- Merged game_exit(), script_free_vm_memory() and script_free_engine()
- Cleanup

svn-id: r45666
2009-11-04 14:22:17 +00:00
Filippos Karapetis 7030588e22 Removed the reference to EngineState from the SciGuiGfx class
svn-id: r45664
2009-11-04 13:26:43 +00:00
Martin Kiewitz 429c06c5ae SCI/newgui: kGraph / InitPriority changed to reflect sci0 implementation, also moved code
svn-id: r45661
2009-11-04 12:54:27 +00:00
Filippos Karapetis 12e3375f3b Removed the reference to SciGuiCursor from EngineState
svn-id: r45660
2009-11-04 12:19:05 +00:00
Filippos Karapetis f755311114 priority_first and priority_last are not used by the new drawing code, thus the new code didn't handle priority changes by kGraph()
svn-id: r45658
2009-11-04 11:52:11 +00:00
Martin Kiewitz 7bed008f8e SCI/newgui: fixes for statusbar and transitions, so menubar shows up in intro of qfg1ega
svn-id: r45635
2009-11-03 19:43:21 +00:00
Martin Kiewitz d758538eaa SCI/newgui: SciGuiMenu partially implemented
svn-id: r45634
2009-11-03 19:33:31 +00:00
Filippos Karapetis f0c628cc3c Remove the SegManager-related hacks for the selector defines, as the segMan parameter is explicit now
svn-id: r45626
2009-11-03 09:01:12 +00:00
Filippos Karapetis 9ec6208e2a Plugged a memory leak
svn-id: r45625
2009-11-03 08:23:58 +00:00
Filippos Karapetis bf8f8acb47 Don't keep a reference to SegManager, as it gets deleted when loading. Fixes a crash when loading games
svn-id: r45624
2009-11-03 08:23:02 +00:00
Martin Kiewitz 10a902735a SCI: SciGuiMenu created, kMenu-related stuff now using SciGui
svn-id: r45612
2009-11-02 17:59:19 +00:00
Martin Kiewitz f2dbd3357f SCI/newgui: kBaseSetter ported from gregs engine, kq5 pathfinding works now correctly
svn-id: r45601
2009-11-01 21:14:33 +00:00
Martin Kiewitz fdc6524fb3 SCI/newgui: fixing kDisposeWindow so that reanimate is correctly called (fixes cels disappearing after removing windows)
svn-id: r45588
2009-10-31 22:50:05 +00:00
Martin Kiewitz b29fd4dacd SCI/newgui: SciGuiPortrait created
svn-id: r45579
2009-10-31 19:48:28 +00:00
Martin Kiewitz cda9b293fd SCI/newgui: Changed code for graphSaveUpscaledHiresBox to not scale the position, its not needed and would actually result in a crash cause of 2 times scaling.
svn-id: r45569
2009-10-31 18:00:22 +00:00
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
Filippos Karapetis 29fb3b0f3f Plugged some memory leaks in the new graphics code
svn-id: r45550
2009-10-30 22:50:21 +00:00
Filippos Karapetis 8bf3e5b549 Added caching of views
svn-id: r45542
2009-10-30 17:38:11 +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
Filippos Karapetis 0cecbffb60 Restore the pen color after changing it in graphFrameBox()
svn-id: r45534
2009-10-30 12:03:31 +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 6c101f7c1a SCI/newgui: Reanimate implemented
svn-id: r45527
2009-10-30 09:26:14 +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 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
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
Martin Kiewitz e8cff408b4 SCI/newgui: Jones windowMgr Port adjustment, added explanatory comment
svn-id: r45460
2009-10-28 13:34:20 +00:00
Martin Kiewitz c6f96d6ac3 SCI/newgui: SciGuiControls created, SciGuiText now active
svn-id: r45457
2009-10-28 12:58:13 +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
Martin Kiewitz ce9dcd7aa8 SCI/newgui: kAddToPic - behaviour is different between SCI1EARLY and SCI1MIDDLE (fixes graphic glitch in qfg2 intro)
svn-id: r45373
2009-10-25 19:04:36 +00:00
Martin Kiewitz f6d8c1c40d SCI/newgui: removed list parameter from addToPicDrawCels()
svn-id: r45371
2009-10-25 17:37:44 +00:00
Martin Kiewitz c45efbe9ab SCI/newgui: dont react on paletteSet when playing an EGA game (fixes Xmas card EGA)
svn-id: r45363
2009-10-24 19:47:53 +00:00
Filippos Karapetis 1f4ad52c61 Moved the view loop counting code in the new GUI
svn-id: r45322
2009-10-22 05:41:50 +00:00
Filippos Karapetis b105d690e3 - Removed kShow() and the related code it uses - it's a debugging function, and we have the same functionality in the debug console
- Merged the view signal flags from kernel.h and gui_animate.h, and named them appropriately. Also, updated the notes next to them, cause some were incorrectly marked as not used in our engine
- Added a note about a hack used in the old GUI in the view signal flags
- Moved the control state flags inside gui_helpers.h

svn-id: r45310
2009-10-21 19:19:03 +00:00
Martin Kiewitz 9e864ff95b SCI/newgui: textedit control also changed to draw text like sierra sci
svn-id: r45289
2009-10-20 20:12:50 +00:00
Martin Kiewitz 1e1172af49 SCI/newgui: Changed kPalette(animate) and implemented setFlags/unsetFlags
svn-id: r45277
2009-10-20 18:45:46 +00:00
Martin Kiewitz 907134076d SCI/newgui: kPalette/animate - accidentally changed speed to uint16 in prev. revision although its signed
svn-id: r45274
2009-10-20 16:18:29 +00:00