443 Commits

Author SHA1 Message Date
Ali El Gariani
486240ffb8 Fix bug #11776 (Some network connection dialogs not cleared) 2008-06-01 15:06:35 +00:00
Ali El Gariani
04e77a677b Simplify by removing an recently added unused feature for filter:
Filter only on some columns (ex avoid images url)
2008-05-29 02:51:32 +00:00
Ali El Gariani
766a076320 Add a textbox filter to the Create Unit Dialog, allowing quick selection.
Also abstract the code of savegame's filter, and use it for this.
2008-05-27 18:08:11 +00:00
Thomas Baumhauer
2e3fb97a12 Adding double quote as illegal character in Windows file names,
...thanks to ilor for pointing this out.
2008-05-22 09:56:27 +00:00
Thomas Baumhauer
e4fcaf9638 Fixing bug #11665:
Filename saves allow illegal characters resulting in game crash.
2008-05-22 09:39:37 +00:00
Mark de Wever
0973bfccee Make some functions static. 2008-05-09 22:44:58 +00:00
David White
31e8b24c9b made it so accuracy is shown in the recruit dialog 2008-05-03 06:28:22 +00:00
Ignacio R. Morelle
29876c2bc7 New, less-confusing fallback text...
...when a saved game contains a null campaign field or the relevant
campaign cannot be located.

Output a campaign's internal id from saved game when debug mode is enabled
2008-05-02 01:16:17 +00:00
Tomasz Śniatowski
36d2ee8cd9 fix a possible crash caused by not checking if localtime() returned NULL 2008-04-12 20:02:45 +01:00
Eric S. Raymond
0d03d5930b Fix buggy unit-preview display. 2008-04-09 15:08:53 +00:00
Eric S. Raymond
6431ccdcd8 More name changes to avoid type vs. name confusion. 2008-04-09 15:02:43 +00:00
Eric S. Raymond
0371639b52 Change some internal names...
...to reduce confucion between unit names and unit type names.
2008-04-09 14:46:08 +00:00
Tomasz Śniatowski
7d56fe139a fix possible error in load_game_dialog if cancel_order checkbox was drawn but show_replay was not 2008-04-04 18:52:43 +01:00
Jörg Hinrichs
7e491a85c4 Cleaning up the unit_type stuff, to provide a much better encapsulation:
- get rid of redundant functionality

- make the unit_type_data interface more easily accessible

- reduce the public interface of unit_type_data

- rename unit_type_factory to unit_type_map_wrapper

- add a whole lot of "const"
2008-04-01 21:51:29 +00:00
Ignacio R. Morelle
fd632a6b96 Fix a possible NULL pointer dereference...
...when a saved game's campaign is not present (reported by UMC
Invasion from the Unknown)
2008-04-01 12:03:22 +00:00
Jörg Hinrichs
ce8f0b4a78 A better fix for the unit_type problems.
Unlike the last one it does not break help and also fixes creating
units in debug mode.
2008-03-30 21:57:29 +00:00
Jörg Hinrichs
95bf75315f Lazy loading for unit_types Step 2:
Rename game_data to unit_type_data and make it a singleton to prevent
passing the same instance throughout the whole code and make
subsequent optimization less painful.
2008-03-30 13:49:03 +00:00
Gunter Labes
211cc1506c committed patch #1024:
..."Optionally cancel unit orders (goto location) on load game" by ilor
2008-03-29 11:18:09 +00:00
Ignacio R. Morelle
605ef43cd3 Reflect branches/1.4 (2008-03-17T11:09:23Z!shadowm@wesnoth.org) 2008-03-17 11:10:00 +00:00
Eric S. Raymond
3e2f3a0a95 Tweak some structure member names to match new nomenclature. 2008-03-15 22:21:01 +00:00
Eric S. Raymond
b2b55e5996 description= -> name in [unit]
This will cause unit names to be displayed incorrectly from savefiles made 
since 2008-03-14T01:38:17Z!esr@thyrsus.com.  It was either that or break compatibility with 1.3/1.4 
savefiles.
2008-03-15 20:30:45 +00:00
Eric S. Raymond
f0c31af774 Rename unit::id() to unit::type_id(). 2008-03-12 11:38:42 +00:00
Ignacio R. Morelle
93b26eba79 Most boolean WML attribute probes use the standard util::string_bool() now
[set_variable] accepts string_length=

[variable] accepts boolean_not_equals=

[modify_side] can set a side's AI parameters now, using the [ai]
syntax as side declarations do (patch #984)
2008-03-06 11:14:52 +00:00
Mark de Wever
60a4ab64d3 Truncate names in the load dialog utf8 aware, might be related to bug #11186. 2008-03-01 22:57:55 +00:00
Patrick Parker
4e59e47d98 make the load game dialog prettier for SMALL_GUI 2008-02-20 02:38:55 +00:00
Nils Kneuper
e342857833 oops, used the wrong one... 2008-02-19 00:23:11 +00:00
Nils Kneuper
cce9f22f7c fixes for two issues with small-gui:
1) the close button in the preferences is now not overlayed anymore

2) when using --enable-smallgui, the 'ok', 'cancel' and 'delete save'
buttons are now in one row in the load game dialog to prevent the
'delete save' button from being coverd by the other two
2008-02-19 00:19:21 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
uso
a98982a3a8 show the name of the save file when asking for permission to overwrite it 2008-02-03 15:58:20 +00:00
Eric S. Raymond
0185d3ceb9 Address #10930. 2008-01-31 03:08:59 +00:00
Eric S. Raymond
b0768d4c0e Address bug #9680. Wrap the time-intensive part of the operation. 2008-01-30 20:14:47 +00:00
Pauli Nieminen
7743e2db02 Fixed minor visual glitch with network_data_dialog 2008-01-21 13:48:36 +00:00
Mark de Wever
3a1bf1edaa Added a more graceful handling of maps without a header (bug #10787).
Did some minor code and changelog cleanups.
2008-01-18 22:14:42 +00:00
uso
094af61f8f move the check for illegal characters and the suffix .gz in filenames...
...to get_save_name so that it's always used
2008-01-13 11:28:22 +00:00
Mark de Wever
420337ee75 Fix a compiler warning. 2008-01-12 19:12:11 +00:00
uso
fb8774de2d always ask for permission before overwriting an already existing replay file
(fixes bug #10689);

don't automatically save a replay for every game an observer visits if
the option 'Save Replay on SP/MP Victory ..' is enabled (fixes bug
#10690); matching only for the scenario name at the beginning of a
save file could lead to the removal of manually saved files from
unrelated games, changed the option 'Delete Saves on SP/MP Victory ..'
to remove only Auto-Saves to avoid this
2008-01-12 08:44:06 +00:00
Pauli Nieminen
23d5834ffa Fixing OoS when advancement is caused by message options 2008-01-12 08:18:38 +00:00
David White
cd9d30e0aa made it so auto-saves begin being deleted after there are more than 5 2008-01-05 08:10:49 +00:00
Ali El Gariani
7274be6249 Fix bug #8624 (unit_help doesn't work)
Now unit_help=true hides if in all the help, but works with "unit
description" context-menu action and little "profile" button from
recruit/recall.

The hyperlinks in different pages are also hidden and the advancement
links send to the "unknown unit" page (like unencountered
units). Still the problem of visible race section, ability and weapon
special if only this unit have it.

I will check how to hide at least race (maybe others too but less important).

+ done some other cleaning in help code, but others need to be done.
2008-01-04 00:26:03 +00:00
David White
d696aedb03 added filter textbox in load game dialog 2008-01-03 07:45:55 +00:00
Mark de Wever
3fcdae4768 More Sun Studio fixes (patch #911). 2008-01-01 21:29:15 +00:00
Mark de Wever
b67011171c Added more parts of patch #911. 2008-01-01 19:11:19 +00:00
Jérémy Rosen
9ff5682180 quick fix for the animation glitch
(sub frames not being synchronised) proper fix to come later...
2007-12-31 12:46:49 +00:00
Mark de Wever
12b0edcf7e Remove support for maps without a header 2007-12-29 12:39:12 +00:00
Mark de Wever
687d1aad5e Unclutter includes. 2007-12-22 16:29:55 +00:00
Mark de Wever
9822e57712 Unclutter includes. 2007-12-22 16:04:59 +00:00
Jérémy Rosen
5aba45d829 first go at the new animation API, still a WIP.
No regression expected. if anything changes, please tell me.

Note that:

* Fire and forget doesn't work yet, don't try using it

* I will probably change how mvt anims work as discussed in IRC, but
  that's for a future commit
2007-12-17 17:51:36 +00:00
Patrick Parker
23f4463a6f fix some redefinition errors
http://www.wesnoth.org/wiki/CodingStandards#Respect_for_loop_scoping_of_different_platforms
2007-12-02 20:39:26 +00:00
Mark de Wever
b229c4f240 Removed some not needed #include "wassert.hpp". 2007-12-02 14:51:23 +00:00
Ali El Gariani
4f92767d85 use flag_rgb() instead of "magenta" for ~RC in the new unit_type preview panel 2007-11-26 18:17:42 +00:00