140 Commits

Author SHA1 Message Date
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Mark de Wever
97ec101021 Fixed some more possible utf-8 related terminations. 2007-11-24 12:36:19 +00:00
Hans Joachim Gurt
cd5bcce303 doxygen, comments 2007-11-13 04:46:29 +00:00
Ali El Gariani
d7c01997ac fix some casting-warning 2007-11-04 19:50:35 +00:00
Ali El Gariani
177ba94b13 For story screen:
- in [image], add a key "scaled=yes" to scale image with the background

- allow images to go out of the background (it was an useless restriction)
2007-10-30 17:35:49 +00:00
Ali El Gariani
d1a6bb8495 Fix bug #7872: Centering [image]s in story screens
Inroduce the new WML key centered=yes for this

"no" is the current default, to avoid breaking UMC and mainline stuff
but later we can proabably use "yes".

Also killed the obsolete (not in wiki) key "flip". Use imagepath
function ~FL(horiz/vert) instead, cleaner and more powerfull.
2007-09-26 16:30:13 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Ali El Gariani
5898369e04 Use image::unscaled as the default for get_image(). Two reasons:
- it make more sense to scale only if we ask.

- only few "scaled" are used, but there is a lot more (40) of
  "unscaled" (this remove ~ 1KB of code)
2007-08-05 01:47:20 +00:00
Patrick Parker
c491f73077 the countdown timer alert can now start sounding while dialogs are open
added a mechanism for generic monitoring of events::pump()
2007-07-27 02:02:17 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Ali El Gariani
7a7baa2dc3 bug #6313 was fixed but the coding error existed also in an other place. 2007-04-25 20:27:14 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Ali El Gariani
6f81acc0fd Fix the bug #6313 (Glitch with the new and fancy stretched story images) 2007-04-01 19:23:44 +00:00
Karol Nowak
7c2c81762d Implement "Numpad Enter should function as Enter":
https://gna.org/bugs/index.php?6165
2007-03-20 18:29:21 +00:00
Karol Nowak
7d4e71668e Use the whole screen for campaign intro text. 2006-08-03 13:59:14 +00:00
Rusty Russell
34498a7914 Fix bug #5832, where last line of long stories is truncated
(we add 20 to texty, so we must take that into account when setting it)
2006-06-08 10:32:49 +00:00
Rusty Russell
8b69833317 Move away from SDL_Delay for gui-related delays,
so --nogui runs at full speed (doing AI testing)
2006-05-26 01:03:08 +00:00
Jörg Hinrichs
a7fd4e009b implements freim's wish for a slightly different layout of the story intro 2006-04-17 22:11:46 +00:00
Jörg Hinrichs
45dd38ff87 merges the gameplay_refactoring branch
please report any problems to me
2006-04-06 21:31:55 +00:00
David White
65518d22a4 fixed dot/cross position on maps 2006-02-24 00:33:56 +00:00
David White
bdbdbea53e made storyline images scale to screen size 2006-02-23 23:48:43 +00:00
Rusty Russell
ddff9378c2 More work on multiple music files
(Fixes: https://gna.org/bugs/index.php?func=detailitem&item_id=5100 )

- [music_list] now just [music] as it is in event.

- file tag is now name, as in event.

- music events supported

- 'play_once=yes' plays once immediately then resumes playlist

- 'append=yes' required not to overwrite previous playlist entries

- 'immediate=yes' to start playing this track (then rest of playlist)
  immediately.

Also, more comments, and play_music_file() changed to play_music_repeatedly().
2006-01-20 10:34:20 +00:00
Rusty Russell
140a72cfc6 Infrastructure for scenarios to specify more than one music file
(see https://gna.org/bugs/index.php?func=detailitem&item_id=4938).

Scenario files can specify:
[music-list]
	file="wesnoth-2.ogg"
	ms_before=5000
	ms_after=1500
[/music-list]

One or more times.  ms_before & ms_after specify the milliseconds of
silence before and after, and are optional (ie. 0 if not specified).
The old "music=" style is still supported if no [music-list] sections
are present.
2006-01-19 13:45:20 +00:00
Oron Peled
75916529d2 More Bidi support (applied patch #479)
Also added Ely Levy's name to the translation team credits.
2005-11-07 23:57:15 +00:00
Yann Dirson
5d352a5961 dependency cleanup: split font.* into marked-up_string.*,
...so that 'font' does not depend any more on 'team' (was a major
contributor to the dependency mess)
2005-10-28 21:03:07 +00:00
András Salamon
eb6805d96a codeclean 2005-09-06 13:53:14 +00:00
Philippe Plantier
d4d678095a Fixed #13961, part II.
Now the code manages to make the story text fit, even if
it is too large.
2005-09-05 19:07:21 +00:00
Philippe Plantier
814ad50cc3 Fixed bug #13961:
now, the campaign text + buttons are always at least 400px wide, even
if the image is smaller.
2005-08-21 19:07:08 +00:00
Philippe Plantier
369cd70edf Factored intro code with word_wrap_text
Fixed bug #13352
2005-07-23 18:07:09 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Dave White
1943ac5873 made menu widgets sortable 2005-05-10 22:15:57 +00:00
Guillaume Melquiond
3a25b0a67c Die cerr, die! 2005-03-28 09:44:05 +00:00
Philippe Plantier
ba195ecd8a [[Attack some problems with data serialization in saves]]
* Made serialized data be saved as untranslated. To achieve this, added the
  t_string class, which encapsulates a translatable string.

* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
  architecture. The parser is now much more strict and validates a WML grammar.

  - Change to the WML syntax: pluses are now ignored, spaces are now forbidden
    in WML keys

* Rewrote the way the variables are interpolated. There is no more default
  interpolation, however, the vconfig class was added, which provides a
  variable-interpolating proxy to config objects.

* There is still an important known bug: this is impossible to load textmode
  save games now, because the statistics module saves some WML with spaces in
  keys, which the parser refuses. I am commiting anyway to respect the string
  freeze; the fix for this bug will come tomorrow

Hoping I do not break everything...
2005-03-27 23:06:17 +00:00
Yann Dirson
d7d7ab8054 moved the overlay-related part of CVideo::flip() up to display;
this causes intro and about to require again a display, but that does
not harm much compared to this cleanup in video deps
2005-03-24 21:35:52 +00:00
Yann Dirson
1d9c2fec2a moved from show_dialog to sdl_utils those draw_ functions...
...that do not even need a CVideo.  hence much cleanup of deps against
show_dialog
2005-03-23 21:30:46 +00:00
Yann Dirson
eed2a54914 cleanup of deps against display: intro does not need a display 2005-03-20 16:27:44 +00:00
Yann Dirson
432a5eb12a cleanup of deps against display: most widgets do not need a display at all 2005-03-18 21:21:48 +00:00
Yann Dirson
f70fa4a8d1 more cleanup of deps against display 2005-03-16 20:36:36 +00:00
Yann Dirson
a5a9f8205d cleanup of deps against display: fonts do not need a display at all 2005-03-15 20:01:31 +00:00
Yann Dirson
59ad858b54 include cleanup: tooltips 2005-03-10 22:29:57 +00:00
Yann Dirson
ed6810894b include cleanup: gettext, language 2005-03-09 22:58:18 +00:00
Philippe Plantier
1949375acf Replaced split_utf8_string by a new "utf8_iterator" class
Moved all utf8 encoding / decoding-related code to
serialization/string_utils.hpp
2005-03-03 21:52:40 +00:00
Guillaume Melquiond
d7b3e389b7 Remove unused parameters and enum from font.cpp. 2004-11-27 10:24:50 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +00:00
Yann Dirson
819a9eca48 more room for story text in tinygui mode 2004-11-06 13:29:46 +00:00
Guillaume Melquiond
92cc99799b The widgets rewrite;
a whole lot of new bugs for those who were bored with the old ones. It
comes with a patch (see task #3503) in case somebody needs to revert
it.
2004-10-31 20:50:13 +00:00
Yann Dirson
1702b387ed more fontsize names, more source files converted, -DUSE_TINY_GUI can be used to test with smaller fonts 2004-09-25 19:46:33 +00:00
Dave White
03ba6323a2 added ending sequence for 'Heir to the Throne' 2004-08-28 23:00:13 +00:00