Commit graph

68 commits

Author SHA1 Message Date
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
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
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
Martin Kiewitz
0b1a8dea2d SCI/newgui: kShakeScreen partially implemented
svn-id: r44897
2009-10-11 08:52:23 +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
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
Martin Kiewitz
0a3e03a166 SCI/newgui: removed hardcoded screen height/width
svn-id: r44881
2009-10-10 18:18:12 +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
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
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
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
Max Horn
0d9e1ded6f Fix warning
svn-id: r44809
2009-10-09 09:41:35 +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
Martin Kiewitz
b6967bc70d SCI/newgui: more cleanup
svn-id: r44799
2009-10-08 20:51:49 +00:00
Martin Kiewitz
b0eeb3636c SCI/newgui: cleanup, fixing uninitialized variable in SciGuiPalette
svn-id: r44796
2009-10-08 20:13:52 +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
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
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
Martin Kiewitz
a61076a645 SCI: debug command undither implemented
svn-id: r44761
2009-10-07 21:47:34 +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
0b83993a64 SCI/newgui: kDrawPic cleanup, addToFlag inverse detection currently not working needs fixing
svn-id: r44756
2009-10-07 20:58:33 +00:00
Martin Kiewitz
cb31d302b9 SCI/newgui: implemented debug command show_map
svn-id: r44735
2009-10-07 15:53:34 +00:00
Martin Kiewitz
1dfe7578cb SCI/newgui: kSetCursor (show, hide, pos, shape) implemented
svn-id: r44734
2009-10-07 14:53:15 +00:00
Martin Kiewitz
77b549a0ad SCI: SciGuiCursor class added, cleanup, OSystem removed from SciGui constructor
svn-id: r44730
2009-10-07 12:47:53 +00:00
Filippos Karapetis
f533e0ad9e Reverted #44697 (line drawing in the new GUI), with some function renaming. Apparently, Sierra's implementation of the Bresenham line drawing algorithm was a bit different than ours, which resulted in problems with flood fill
svn-id: r44720
2009-10-06 21:23:24 +00:00
Filippos Karapetis
6d135e904f WIP code for replacing the FreeSCI view decoding code with the new one (no changes to the logic, yet)
svn-id: r44717
2009-10-06 19:57:55 +00:00
Filippos Karapetis
c17495d895 - Fixed kGetTime() again
- Removed the odd way of calculating elapsed time in SciGui(). We got _system->getMillis() for that purpose
- Replaced the code in SciGui::wait() with the one in SciGui32::wait (which works fine, and is correct). The code in SciGui() was not polling for events while waiting, either

svn-id: r44712
2009-10-06 17:45:57 +00:00
Filippos Karapetis
1481c78d1a Removed yet another unused reference to OSystem
svn-id: r44708
2009-10-06 17:18:44 +00:00
Filippos Karapetis
0b47085da0 Removed an unused reference to OSystem
svn-id: r44704
2009-10-06 17:09:34 +00:00
Martin Kiewitz
ca9f08c624 SCI/newgui: kHiLite support
svn-id: r44701
2009-10-06 16:36:28 +00:00
Martin Kiewitz
14dfa5d7b0 SCI/newgui: palette functions from SciGuiGfx now in SciGuiPalette
svn-id: r44698
2009-10-06 16:14:40 +00:00
Filippos Karapetis
5d382150df - Removed the SciGuiGfx parameter from SciGuiView
- Moved _sysPalette inside SciGuiScreen
- Made CreatePaletteFromData() a static helper function

svn-id: r44696
2009-10-06 14:37:25 +00:00
Filippos Karapetis
df29b0067e - Unified the screen buffers that are used by the current and the new GUI
- Replaced the FreeSCI line drawing code (which is actually Bresenham) with Graphics::drawLine(), after discussing with waltervn. This shouldn't bring any regressions, as we're no longer offering the option to scale the background at a vector level. After playing through some of the games, I haven't noticed any regressions
- Some cleanup

svn-id: r44692
2009-10-06 12:26:13 +00:00
Martin Kiewitz
64d73415ca SCI/newgui: changed the way dithering works on ega games, also default value change for kDrawStatus
svn-id: r44679
2009-10-05 21:38:51 +00:00
Martin Kiewitz
c30cdf65e7 SCI/newgui: color duplicated to upper 4 bits on EGA to remove dithering with black
svn-id: r44678
2009-10-05 20:46:19 +00:00
Martin Kiewitz
16580e53bf SCI: kDrawStatus changed, dont call gui if no text received
svn-id: r44674
2009-10-05 19:46:38 +00:00
Martin Kiewitz
3654cefe33 SVN/newgui: kDrawStatus implemented
svn-id: r44670
2009-10-05 19:20:52 +00:00
Filippos Karapetis
91a16e0c7d Moved the cursor movement code in the GUI
svn-id: r44664
2009-10-05 16:43:24 +00:00
Filippos Karapetis
4c35022f6b Lines are no longer treated as fake rectangles and are shown correctly again
svn-id: r44663
2009-10-05 13:33:26 +00:00
Filippos Karapetis
3e66ae85f6 Better naming for the palette setting functions, to disambiguate them from the existing ones
svn-id: r44662
2009-10-05 12:49:31 +00:00
Filippos Karapetis
f3d3596d54 Renamed
setCLUT() -> setPalette()
getCLUT() -> getPalette()

svn-id: r44661
2009-10-05 12:37:01 +00:00
Martin Kiewitz
7da723ab4e SCI/newgui: drawControlIcon - updates screen now
svn-id: r44660
2009-10-05 12:12:18 +00:00