Commit Graph
89 Commits
Author SHA1 Message Date
Martin Kiewitz ad24968f56 SCI: menu - handle right aligned "=" as actual text not as tag marker, also handle "=" as being a supported shortcut key
svn-id: r48747
2010-04-20 15:28:19 +00:00
Martin Kiewitz e70a484415 SCI: remove lone spaces at the end of right aligned menu items. fixes "wrongly" aligned menu items in some games
svn-id: r48746
2010-04-20 15:10:27 +00:00
Martin Kiewitz f68dfd61de SCI: fix regression from r48685 - english got always used for menu entries
svn-id: r48698
2010-04-18 10:15:56 +00:00
Martin Kiewitz 2ac3e93dab SCI: move menu window inside the screen, if parts of it are outside (happens in multilingual sq3 and lsl3)
svn-id: r48686
2010-04-17 13:42:19 +00:00
Martin Kiewitz 08ad84d556 SCI: implement ability to handle multilingual menu separators (is actually 2 separators with a language separator inbetween)
svn-id: r48685
2010-04-17 13:34:16 +00:00
Walter van Niftrik 20c461e541 SCI: Remove subtitles in menu.
svn-id: r48683
2010-04-17 03:11:54 +00:00
Martin Kiewitz 20392ebee8 SCI: split menu/item strings when displaying instead of when initializing - makes on-the-fly menu language changes possible (used by multilingual SCI01 games)
svn-id: r48659
2010-04-15 16:40:37 +00:00
Max Horn 2e68de1e5a SCI: Turn kernel_sleep() into SciEvent::sleep()
svn-id: r48119
2010-02-23 22:47:53 +00:00
Max Horn b9a11ddb0b SCI: Move language related code from EngineState to SciEngine
svn-id: r48052
2010-02-13 17:46:44 +00:00
Max Horn ac4d325e0d SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
2010-02-13 17:42:49 +00:00
Martin Kiewitz a4039182ce SCI: also reset some variables inside reset(), so we dont error() out in lsl2 and other games that reset game engine inbetween
svn-id: r48015
2010-02-09 18:24:54 +00:00
Max Horn f86618f92b SCI: Add a 'SELECTOR' macro
svn-id: r47918
2010-02-05 22:55:18 +00:00
Martin Kiewitz 16efee3c0d SCI: drawMenuBar, drawStatus now called directly and w/o SciGui
svn-id: r47913
2010-02-05 20:48:06 +00:00
Martin Kiewitz f3ea96d168 SCI: GfxCoordAdjuster class added, local2Global and global2Local use that class directly, kGraph / RedrawBox is now using GfxPaint16 directly
svn-id: r47908
2010-02-05 18:56:13 +00:00
Martin Kiewitz f8f490c565 SCI: calling most of the cursor functions directly via _gfxCursor instead of SciGui/32
svn-id: r47903
2010-02-05 14:48:51 +00:00
Martin Kiewitz 6c204cc890 SCI: renamed class Cursor to GfxCursor
svn-id: r47902
2010-02-05 13:05:26 +00:00
Martin Kiewitz a20f4ef1fc SCI: implemented reset for GfxMenu, not recreating object anymore
svn-id: r47793
2010-02-01 10:16:45 +00:00
Martin Kiewitz 845c245ff3 SCI: class menu renamed to GfxMenu - now getting called directly, also fix for loading savedgames
svn-id: r47792
2010-02-01 09:53:42 +00:00
Martin Kiewitz 19bca95905 SCI: renamed Text class to GfxText16
svn-id: r47780
2010-01-31 21:54:43 +00:00
Martin Kiewitz 72c2d360f7 SCI: renamed SciPalette to GfxPalette, Screen to GfxScreen, GfxPalette is now called directly w/o SciGui
svn-id: r47752
2010-01-31 16:21:11 +00:00
Martin Kiewitz 7929255cd9 SCI: cleaned up graphics classes, removed gfx&windowmgr, added gfxports, gfxcompare, gfxpaint16, gfxcache. kernel uses gfxports directly w/o going through SciGui
svn-id: r47745
2010-01-31 12:35:15 +00:00
Max Horn 4ffec28103 SCI: Move selector stuff to new header; reorder k_argc & k_argp param of invoke_selector
svn-id: r47665
2010-01-29 11:03:54 +00:00
Martin Kiewitz 9d1dc48a6e SCI: removed oldMenuId check for BitsShow in menu (was done for keyboard interaction) - using mouse its possible to leave the menu which would now result in inverted menu topic not displayed - fixed
svn-id: r47526
2010-01-24 21:24:07 +00:00
Martin Kiewitz 8f41cc0631 SCI: removed error inside Menu::mouseFindMenuItemSelection, instead returning 0
svn-id: r47442
2010-01-22 18:20:57 +00:00
Martin Kiewitz 61acb22fc5 SCI: draw a black line under menubar when menu is active (effectively for jones, wouldnt be needed otherwise), adjust inverting menu selections accordingly
svn-id: r47441
2010-01-22 17:38:06 +00:00
Martin Kiewitz f2ddf8cdd8 SCI: call showBits() on the line between menubar and the actual menu (because reanimate clips to picPort, so that line wouldnt be shown as restored)
svn-id: r47390
2010-01-19 19:48:56 +00:00
Martin Kiewitz 7b5a55a6a2 SCI: use reanimate instead of BitsShow() when removing menus
svn-id: r47386
2010-01-19 18:11:09 +00:00
Martin Kiewitz ef5c9f62d7 SCI: implemented mouse interaction while being in keyboard mode, also ignore disabled entries/separator lines within mouse mode
svn-id: r47285
2010-01-12 21:49:43 +00:00
Martin Kiewitz 1ebe047972 SCI: using _menuRect inside Menu::mouseFindMenuItemSelection for easier code, also fixed stupid oversight that made the code crash in e.g. lsl6
svn-id: r47278
2010-01-12 20:51:45 +00:00
Martin Kiewitz a62bf2528f SCI: interactive menu with mouse fully implemented, mouse within keyboard menu not yet done
svn-id: r47277
2010-01-12 20:38:57 +00:00
Martin Kiewitz 7ed2146977 SCI: changed interactive with mouse menu code (still not finished)
svn-id: r47273
2010-01-12 19:52:43 +00:00
Martin Kiewitz c1e4156587 SCI: added comment about "not behaving like sierra here", also added TODO on mouse state change
svn-id: r47270
2010-01-12 18:46:42 +00:00
Filippos Karapetis dc45c729a9 Added mouse click handling for top menus (mouse clicks on menu items of each menu are not handled yet)
svn-id: r47260
2010-01-12 00:18:40 +00:00
Martin Kiewitz c067bf053d SCI: support "Ctrl-" prefix keys in menu, makes Ctrl-keys work in lsl6
svn-id: r47164
2010-01-08 17:25:39 +00:00
Martin Kiewitz b5603ee822 SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)
svn-id: r47163
2010-01-08 16:52:45 +00:00
Martin Kiewitz 2aca490e13 SCI: remove displaying tag in menu of some games (e.g. qfg1ega)
svn-id: r47143
2010-01-07 23:32:45 +00:00
Martin Kiewitz 7d7d23ce2b SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
2010-01-06 13:05:14 +00:00
Filippos Karapetis e72e130048 Yet more renaming
svn-id: r47010
2010-01-05 01:47:44 +00:00
Filippos Karapetis d99aa0f126 More renaming
svn-id: r47009
2010-01-05 01:37:57 +00:00