Commit Graph

12809 Commits

Author SHA1 Message Date
Martin Kiewitz
3dbf54267b SCI: onControl now uses gui classes
svn-id: r44595
2009-10-04 10:47:10 +00:00
Martin Kiewitz
a015e5f967 SCI/newgui: onControl implemented
svn-id: r44594
2009-10-04 10:46:25 +00:00
Martin Kiewitz
772cb33651 SCI/oldgui: onControl code moved
svn-id: r44593
2009-10-04 10:42:18 +00:00
Martin Kiewitz
bb7a728a99 SCI/newgui: TextColors and TextFonts implemented (for sq5)
svn-id: r44592
2009-10-04 09:38:57 +00:00
Robert Špalek
42ee5350c3 Hack Game::_shouldExitLoop.
Immediate exit needed when loading a savegame hurts waiting in an inner
(strange) loop inside a GPL program, because animations don't progress at
all.  Reverted to the previous behavior and kept the immediate exit as a
hack for loading the game.

svn-id: r44590
2009-10-04 09:33:07 +00:00
Filippos Karapetis
decdc5771a Applied patch #2872409 "MADE engine fixes" by agent-q, with one small modification (initialized _soundStarted in the ScriptFunctions constructor)
svn-id: r44589
2009-10-04 09:31:37 +00:00
Robert Špalek
1ed6a2668b Load inventory items properly after loading the game.
This solution is quite hacky, but so is the rest of the code, before a
future refactoring done one day.

svn-id: r44588
2009-10-04 09:13:15 +00:00
Martin Kiewitz
06f5393ed4 SCI: fixed crash in sq5/german (umlauts)
svn-id: r44587
2009-10-04 06:39:07 +00:00
Robert Špalek
df14027c41 Implemented rudimentary game loading/saving.
Fixed many bugs in the boilerplate.  Saving (only) things that really need to
be saved.  Loading seems to work modulo dialogs and (possibly) inventory.

svn-id: r44586
2009-10-04 05:44:23 +00:00
Martin Kiewitz
bf408b0dbe SCI/newgui: unfinished TextColors/TextFonts support/setting default palette mapping for kq5
svn-id: r44585
2009-10-04 05:22:49 +00:00
Martin Kiewitz
10d70ec742 SCI/newgui: cleanup
svn-id: r44584
2009-10-04 05:20:56 +00:00
Robert Špalek
b6d7da6927 Implement all boilerplate concerning Global Main Menu.
All currently defined featues will be supported.  I have implemented 
everything boilerplatish, except for the actual game saving/loading (which
will come in the next commit), getting volumes from the configuration
(because we don't play sounds yet), and changing subtitles.

svn-id: r44583
2009-10-04 03:50:10 +00:00
Florian Kagerer
b8e02a03c1 LOL: fixed minor bugs in text displayer
svn-id: r44582
2009-10-04 01:05:27 +00:00
Willem Jan Palenstijn
0ed87062ed SCI: Add hack to gui to fix loading
svn-id: r44581
2009-10-03 23:56:49 +00:00
Willem Jan Palenstijn
a8c4d70d3e SCI: attempt to fix wii/dc build error
svn-id: r44579
2009-10-03 23:01:22 +00:00
Willem Jan Palenstijn
f61bf4f97a SCI: Fix parse error in parse_reg_t
svn-id: r44578
2009-10-03 22:44:16 +00:00
Florian Kagerer
0e5836bb34 LOL/PC-98: add keyboard support for menus
svn-id: r44577
2009-10-03 22:39:46 +00:00
Willem Jan Palenstijn
bce248cab6 SCI: Redraw edit controls when they change.
svn-id: r44576
2009-10-03 22:10:45 +00:00
Robert Špalek
3035ca2fd3 Let Ctrl-Left click behave like Right lick in Dragon History.
Also, started implementing Advanced Engine Features:
- pause support
- RTL support

svn-id: r44575
2009-10-03 22:07:18 +00:00
Martin Kiewitz
c0773975f5 SCI/newgui: removed duplicate unused code
svn-id: r44574
2009-10-03 21:49:09 +00:00
Martin Kiewitz
93c3d07e2b SCI/newgui: constant 0xFFFF -> -1
svn-id: r44573
2009-10-03 21:30:36 +00:00
Willem Jan Palenstijn
75de46e9ab SCI: Fix sign issue in stringfrags
svn-id: r44572
2009-10-03 21:27:01 +00:00
Martin Kiewitz
cfb7632a77 SCI/newgui: Removed SciGUIpicture::drawPalette11
svn-id: r44571
2009-10-03 21:27:00 +00:00
Martin Kiewitz
204b975e7f SCI/newgui: initializer fixup
svn-id: r44570
2009-10-03 21:23:21 +00:00
Martin Kiewitz
4cb0359670 SCI/newgui: cellCount changed to uint16
svn-id: r44569
2009-10-03 21:16:11 +00:00
Martin Kiewitz
742d70204e SCI/newgui: virtual warnings fixed
svn-id: r44568
2009-10-03 21:14:52 +00:00
Martin Kiewitz
79b12939a8 SCI/newgui: set title on newWindow
svn-id: r44567
2009-10-03 21:06:45 +00:00
Willem Jan Palenstijn
b9cdb1abb7 SCI: Merge new GUI code written by m_kiewitz.
This is a major rewrite of the graphics code. A slightly adapted
version of the old code is still available and currently the default.
The new code is selectable in sci.cpp, but is not yet finished.

svn-id: r44565
2009-10-03 20:49:18 +00:00
Florian Kagerer
f6de0b4ec9 LOL/PC-98: add keyboard support
svn-id: r44564
2009-10-03 20:42:26 +00:00
Martin Kiewitz
a3fc7230eb fixed addMenu isspace() issue on umlauts
svn-id: r44563
2009-10-03 20:35:13 +00:00
Willem Jan Palenstijn
95959a88ef SCI: Fix typo
svn-id: r44561
2009-10-03 20:25:27 +00:00
Andre Heider
bbb3cc8086 If make*Stream failed, the file needs to be closed to prevent an assert on a consecutive open().
svn-id: r44557
2009-10-03 19:29:14 +00:00
Florian Kagerer
e515b57b67 LOL/PC-98: fixed automap
svn-id: r44554
2009-10-03 13:42:24 +00:00
Arnaud Boutonné
66233031d7 revert r44542: the fix reopens another previous bug
svn-id: r44553
2009-10-03 13:40:55 +00:00
Paul Gilbert
5d7caf3ca9 Added a +1 for dirty rectangle calculation so final column of changed area is included
svn-id: r44551
2009-10-03 08:59:11 +00:00
Robert Špalek
43f84746bf Fixed positioning and update of the title under the mouse pointer.
Clamping on the border of the screen works precisely.  When switched to the
inventory, titles of game items are displayed instead of a (sticky) title of
the last object before entering the inventory.  Put some const's where
appropriate.

svn-id: r44550
2009-10-03 05:16:19 +00:00
Florian Kagerer
548d139b48 LOL: cleanup
svn-id: r44549
2009-10-02 23:13:47 +00:00
Florian Kagerer
14d6b33e4f LOL/PC-98: fixed death menu, live/magic bar colors and money box
svn-id: r44548
2009-10-02 22:13:39 +00:00
Florian Kagerer
e5aae67e39 LOL/PC-98: - some more fixes for level graphics (shapes are still not quite right)
- fixed heal spell

svn-id: r44547
2009-10-02 21:27:10 +00:00
Max Horn
bfec2debe6 SCI: Fix parse_reg_t, it no longer modified the const string passed to it
svn-id: r44545
2009-10-02 20:20:45 +00:00
Torbjörn Andersson
41adc39d2d Fixed cppcheck warnings about mismatching allocation/deallocation.
svn-id: r44543
2009-10-02 18:38:52 +00:00
Arnaud Boutonné
f915a46e1f Fix for bug ref#2867294 (hopefully)
svn-id: r44542
2009-10-02 17:50:56 +00:00
Willem Jan Palenstijn
cbcd53f1f3 Fix cppcheck issue reported by salty-horse
svn-id: r44541
2009-10-02 15:02:57 +00:00
Max Horn
01176782ea Fix some cppcheck warnings reported by salty-horse
svn-id: r44538
2009-10-02 14:32:54 +00:00
Paul Gilbert
78578a042f Bugfix for dirty rects getting lost during room fade-ins
svn-id: r44536
2009-10-02 13:13:47 +00:00
Max Horn
908e13fa73 SCI: Remove PRINT_STK macro; cleanup
svn-id: r44533
2009-10-02 12:53:04 +00:00
Willem Jan Palenstijn
0fe40b5053 SCI: Use String::printf instead of temporary buffer
svn-id: r44532
2009-10-02 12:44:12 +00:00
Max Horn
292640b14e SCI: Make NULL_REG & SIGNAL_REG const; change validate_property so that its callers cannot modify NULL_REG accidentally anymore
svn-id: r44531
2009-10-02 11:04:36 +00:00
Max Horn
523f0b34fb SCI: Remove dead code
svn-id: r44530
2009-10-02 07:44:55 +00:00
Willem Jan Palenstijn
876a28d261 SCI: cleanup
svn-id: r44528
2009-10-01 17:30:10 +00:00