23466 Commits

Author SHA1 Message Date
Mark de Wever
6101e42337 Convert the line also to the formula system.
Documenation update for the rect and the line.
2008-03-16 18:38:21 +00:00
Eric S. Raymond
34180d285a Another consequence of unit_description -> name. 2008-03-16 18:30:42 +00:00
Eric S. Raymond
9b72d2af84 Address bug #11268. 2008-03-16 18:22:44 +00:00
Jérémy Rosen
219b163fc9 have frame parameters returned as a big struct,
...so future changes are waaaay simpler
2008-03-16 17:55:57 +00:00
Benoît Timbert
6384d3b1f3 New [unit_side] theme element. This is a flag of the side of the current unit. 2008-03-16 17:42:13 +00:00
Mark de Wever
48741f7406 Converted the rectangle shape class of the canvas to be able to use formulas.
I knew that I needed calculations to make the GUI stuff cool and I was right :-)
2008-03-16 16:11:30 +00:00
Nils Kneuper
7cefa2145e updated German translation 2008-03-16 15:27:23 +00:00
Karol Nowak
f50f49af9d Stop sound when sound source is removed. 2008-03-16 15:02:39 +00:00
Lari Nieminen
20368e4cd7 A fix by mesilliac to a mountain<->castle glitch. 2008-03-16 14:17:12 +00:00
Mark de Wever
b6d222a683 Moved the tsizer class to grid.?pp and renamed it to tgrid. 2008-03-16 14:04:18 +00:00
Karol Nowak
9f342c90e1 Made it possible to specify fading distance for a soundsource.
Removed specification of default value for full_range from game events code.
2008-03-16 13:56:13 +00:00
Mark de Wever
f2b701c996 Add some more debug domains in the gui area...
...(changes to log.?pp aren't committed).
2008-03-16 13:37:43 +00:00
David Philippi
67cf6cad9f hungarian translation update 2008-03-16 13:16:00 +00:00
Mark de Wever
c36093730c Adding the first proof-of-concept window builder code.
With this code it's possible to define a window from a config file.
The code needs a lot of extra love and polishing.
2008-03-16 12:10:43 +00:00
Eric S. Raymond
e6816f4c8d Implement feature request in bug #11265. 2008-03-16 11:16:30 +00:00
Eric S. Raymond
acd3f95a70 generate_description -> generate_name. 2008-03-16 11:08:04 +00:00
Benoît Timbert
d4b281f530 Actually AMLA without XP defined did not make any sense... 2008-03-16 10:44:50 +00:00
Eric S. Raymond
4a5a030151 Change definition-list format to carry more information. 2008-03-16 10:28:07 +00:00
Karol Nowak
3b9705905b Changed logic responsible for determining volume of sound sources.
It's now based on hex distance.
2008-03-16 10:22:25 +00:00
Karol Nowak
3e0594928c Work around for a bug in SDL_mixer...
...that makes the channel finished hook fire twice. Fixed a potential
problem with channel getting marked as busy even before sample was
(not) loaded. Removed (buggy) reseting of channel status in
reposition_sound().
2008-03-16 10:10:41 +00:00
Nils Kneuper
25188c34f8 updated Italian translation 2008-03-16 09:16:47 +00:00
Eric S. Raymond
51c60615df Address bug #11267. 2008-03-16 03:40:35 +00:00
Eric S. Raymond
9f92ced657 Clear SpellingMistakes problems. 2008-03-16 03:37:18 +00:00
Benoît Timbert
526f983612 Even more robust version...
...(see http://www.wesnoth.org/forum/viewtopic.php?f=7&t=20198)
2008-03-16 00:48:02 +00:00
Benoît Timbert
c7be012d7e French translation update 2008-03-16 00:27:34 +00:00
Benoît Timbert
cb272d0278 New [switch] WML tag.
It shall save us for the sometimetime highly nested [if]s.
Here is the basic syntax :

[switch]
   variable=foo
   [case]
      value="A"
      ... code if foo=A ...
   [/case]
   [case]
      value="B"
      ... code if foo=B ...
   [/case]
   [else]
      ... code if foo has another value ...
   [/else]
[/switch]
2008-03-15 23:54:06 +00:00
Nils Kneuper
17b9fd3e75 updated Italian translation 2008-03-15 23:16:12 +00:00
Christian Bielert
a509c0361b Add the actions [set_variable][join] and [set_variables]...
...which allows you to modify containers, also includes
[set_variables][split].
2008-03-15 22:53:53 +00:00
Mark de Wever
340d1531ac Turn all widths and heights into unsigned...
...and make a const parameter a reference instead of a copy.
2008-03-15 22:46:25 +00:00
Eric S. Raymond
c70a1064b3 Make WML match C++ reality,
...which is that object takes a "description" attribute rather than a
"user_description" attribute.  I think this error was a fossil from an
experiment just after 1.4.
2008-03-15 22:40:47 +00:00
Nils Kneuper
787e438af2 updated Greek translation 2008-03-15 22:38:27 +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
50132051fb Fix some more WML references. 2008-03-15 22:19:34 +00:00
Eric S. Raymond
4ec05d32b7 Fix up WML variable references...
...to track the SingleUnitWML attribute name changes.  These cannot be
lifted mechanically, but wmllint warns about possible problems.
2008-03-15 21:55:05 +00:00
Mark de Wever
e4c1da3ec6 Added proof-of-concept code to do the window drawing,
...the window can now draw it's own contents and the closing now
properly cleans up.
2008-03-15 21:35:00 +00:00
Karol Nowak
3d33008605 How did this become an int..? 2008-03-15 21:20:55 +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
Mark de Wever
7287928794 Fixed the rectangle code and did some testing with it. 2008-03-15 19:31:22 +00:00
Eric S. Raymond
b132442dd4 Don't add extraneous whitespace. 2008-03-15 18:35:39 +00:00
Eric S. Raymond
f1c78b1c1b Address bug #11263. 2008-03-15 18:10:07 +00:00
Benoît Timbert
8783dbb82b Apply a fix from caslav.ilic:
now the context analyser parses the entire file and no longer crash if
#textdomain is not used at the top level (see
http://forum.wesnoth.org/viewtopic.php?f=7&t=20198 for full details)
2008-03-15 18:06:34 +00:00
Eric S. Raymond
c157b90733 Improved end-to-end checking for modifications. 2008-03-15 18:03:52 +00:00
Eric S. Raymond
af26d0f07b Fix erroneous map headers. 2008-03-15 16:46:46 +00:00
Lari Nieminen
f0dbcd7825 Removed empty space from the top panel...
...to give space for the terrain description and generally reworked
the placement. The top panel in the 800x600 theme should now look much
better too.
2008-03-15 12:31:06 +00:00
Mark de Wever
fea178c276 removed the now unused tilestack based drawing.
convert the render engine to a z-ordered based engine, this allows to
have multiple layers and the calculation and rendering are separated
which means things can be drawn in front of units.
2008-03-15 12:02:38 +00:00
Lari Nieminen
069838e0a6 Revert patch #992 (it introduced a glitch). 2008-03-15 08:10:47 +00:00
Eric S. Raymond
43e2048246 No need for the speaker canomicalizatuin any more. 2008-03-15 07:08:07 +00:00
Eric S. Raymond
1b94e8f035 Better reporting of map header starts. 2008-03-15 06:56:37 +00:00
Eric S. Raymond
76ced7770e Fix an earlier created by an earlier iteration of wmllint. 2008-03-15 04:53:37 +00:00
Eric S. Raymond
141539b513 Fix a minor error I untroduced into wmllint last night. 2008-03-15 04:48:30 +00:00