Commit Graph
69 Commits
Author SHA1 Message Date
Torbjörn Andersson 6cfb37c441 Stop sounds at control panel, otherwise any looping sounds will still be
playing. (For instance, when getting yourself killed on top of the train.)

svn-id: r19574
2005-11-12 15:25:22 +00:00
Robert Göffringmann 6325516a0f clear screen when entering control panel. Fixes palette glitch after playing animations
svn-id: r19570
2005-11-12 09:14:07 +00:00
Torbjörn Andersson be5bae9106 Don't write empty save slot names to the savegame index. All that does is
raising the "I/O error" flag.

svn-id: r19514
2005-11-08 07:28:31 +00:00
Chris Apers 57698a16ab PalmOS ifdef
svn-id: r19475
2005-11-05 19:26:26 +00:00
Robert Göffringmann 70ea15410d removed old and unused defines.
svn-id: r19304
2005-10-26 06:37:09 +00:00
Robert Göffringmann ccd7557a87 added call to OutSaveFile::flush() and some more I/O error checks
svn-id: r19302
2005-10-26 06:30:28 +00:00
Robert Göffringmann 722e9a7986 fix for bug #1328022: BS1: savegame name text input ignores keypresses
svn-id: r19300
2005-10-26 06:16:14 +00:00
Eugene Sandulenko b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson 4a9bf82143 Decrease delay while editing savegame name. This way, there should be much
less risk of keypresses being lost.

svn-id: r19128
2005-10-17 07:15:18 +00:00
Torbjörn Andersson 8b1e22e964 Be more careful when subtracting from unsigned values. Fixes bug #1327972.
svn-id: r19110
2005-10-16 15:06:51 +00:00
Marcus Comstedt ee15539952 Try do display the virtual keyboard only when a string input widget has focus.
svn-id: r19102
2005-10-15 15:46:12 +00:00
Torbjörn Andersson d28cb8931e After saving, return to the game instead of the main control panel. This is
how the original did it (the DOS version, at least -- I couldn't get the
Windows version to install under Wine), and is part of RFE #1273746.

svn-id: r18795
2005-09-09 07:32:29 +00:00
Max Horn 3f2286031a Avoid putting non-ASCII chars into source files
svn-id: r18761
2005-09-03 19:59:33 +00:00
Torbjörn Andersson 41e9aa2f2c Added keyboard repeating.
svn-id: r18711
2005-08-25 15:33:38 +00:00
Torbjörn Andersson 3140dbebc4 The dialog windows now react to "Enter" and "Escape" in what I hope is a
sensible way. This is an extension of feature request #1265893.

svn-id: r18710
2005-08-24 16:10:09 +00:00
Eugene Sandulenko 6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn 72f4c03b0b Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
2005-05-10 23:17:38 +00:00
Max Horn b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Jonathan Gray 24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Torbjörn Andersson d5b2582aa5 Missed these.
svn-id: r17428
2005-04-07 08:50:48 +00:00
Max Horn 6f6668ce21 Reduce dependencies on common/savefile.h from 88 to 14
svn-id: r16528
2005-01-10 22:18:39 +00:00
Max Horn cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn 47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Chris Apers 099f5de891 Speedup a bit PalmOS port
svn-id: r16165
2004-12-20 16:55:55 +00:00
Chris Apers e1458ca1ff PalmOS stuffs
svn-id: r16011
2004-12-10 15:10:10 +00:00
Max Horn f09293b22c Clean up OSystem::Event
svn-id: r15990
2004-12-05 17:42:20 +00:00
Max Horn 876e738dce Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
2004-11-27 00:26:11 +00:00
Robert Göffringmann 17f23ad3d5 BS1 demo is basically fully supported now.
only some SFX are flipped.

svn-id: r15819
2004-11-15 08:23:09 +00:00
Chris Apers 2abe17e594 Cleanup
svn-id: r15739
2004-11-09 10:26:33 +00:00
Robert Göffringmann 021f2cbcce free memory on quit.
Still leaks some, though

svn-id: r15735
2004-11-09 04:06:10 +00:00
Robert Göffringmann 561f6ab6e8 enable czech control panel. should work.
svn-id: r15628
2004-10-21 08:47:13 +00:00
Max Horn ce8c99bf62 Rename remaining OSystem methods to match our coding guidelines
svn-id: r15332
2004-09-28 20:19:37 +00:00
Torbjörn Andersson 0e2c7d6d7f Let displayMessage() restore the mouse pointer to the standard BS1 arrow
once it's done.

svn-id: r14258
2004-07-18 17:47:19 +00:00
Max Horn 6b722ff11b Added Engine::_saveFileMan; thus was able to get rid of auto_ptr usage again
svn-id: r14058
2004-06-25 22:39:21 +00:00
Max Horn 7a8d469c66 Use auto_ptr to avoid leaks
svn-id: r14057
2004-06-25 22:12:57 +00:00
Torbjörn Andersson d40de10534 Some usability fixes to the control panel code:
* Draw a blinking cursor when typing savegame names. (Bug #908679)

* Number the savegame slots. At the moment they are numbered differently
  than in BS2 in that they start on 1 instead of 0. As far as I recall,
  this was the case with the original engine as well, but we may want to
  reconsider.

* Added scroll wheel support. This wasn't in the original, but it's a nice
  thing to have. Particularly since the scroll buttons don't repeat. (It
  would be nice if they did.)

I would like this patch to be considered for 0.6.1, if there aren't any
obvious problems with it.

svn-id: r13833
2004-05-12 06:21:44 +00:00
Max Horn 933aab3100 Use vsprintf instead of vsnprintf: more portable, less safe (but then again, vsnprinft isn't that safe either)
svn-id: r13434
2004-03-30 22:56:57 +00:00
Paweł Kołodziejski 70545f2c01 please fix
svn-id: r13433
2004-03-30 07:11:01 +00:00
Max Horn 14378cb56e Renamed more OSystem methods
svn-id: r13410
2004-03-28 16:30:50 +00:00
Max Horn 9d89a5f543 Fix bug #920491 (BS1: Game crashes when savepath is invalid)
svn-id: r13396
2004-03-28 12:59:51 +00:00
Nicolas Bacca 30d169d2be Display keyboard when saving
svn-id: r13151
2004-03-02 19:47:17 +00:00
Max Horn c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn 25e2688b4d help poor VC7
svn-id: r12711
2004-02-01 21:10:26 +00:00
Torbjörn Andersson cf0a73f913 Introduced new namespace, Sword1, removing the "Sword" and "Bs" prefixes in
the process, except for SwordEngine.

Some minor cleanups along the wa, e.g. stdafx.h already includes <stdio.h>,
<stdlib.h> and <math.h> so there shouldn't be any need to do it elsewhere.

svn-id: r12320
2004-01-11 15:47:41 +00:00
Robert Göffringmann 8e30afd438 some changes for Czech version
svn-id: r12221
2004-01-07 18:08:24 +00:00
Robert Göffringmann 8030f1b148 implemented volume control panel
svn-id: r12220
2004-01-07 17:47:46 +00:00
Max Horn 033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Robert Göffringmann a9a84aee22 added control panel confirmation dialog.
svn-id: r12128
2004-01-04 06:31:29 +00:00
Robert Göffringmann f0d0e4d4b3 removed speed button from control panel and made the game do a full screen refresh after leaving the control panel
svn-id: r12127
2004-01-04 05:21:22 +00:00