44313 Commits

Author SHA1 Message Date
Guillaume Melquiond
6726504fa3 Added wesnoth.get_mouseover_tile function. 2010-12-26 20:01:13 +00:00
Guillaume Melquiond
86f5a00afe Removed redundant side number. 2010-12-26 20:01:10 +00:00
Guillaume Melquiond
02d1772101 Added wesnoth.register_theme_item...
...for setting custom drawing functions for theme widgets (e.g., turn
number, countdown, unit status, and so on).
2010-12-26 20:01:07 +00:00
Guillaume Melquiond
19c1b89910 Added support for dynamic report generators. 2010-12-26 20:01:03 +00:00
Guillaume Melquiond
ef36d05b20 Replaced the report and element classes...
...with a WML-friendly data structure, that is, config.
2010-12-26 20:01:00 +00:00
Guillaume Melquiond
f7dae4410c Removed hardcoded enum for report generators. Used their theme names instead. 2010-12-26 20:00:54 +00:00
Guillaume Melquiond
1160a2b5e1 Removed nonexistent file. 2010-12-26 20:00:50 +00:00
Guillaume Melquiond
f6465949e5 Split report generators into separate functions. 2010-12-26 20:00:45 +00:00
Mark de Wever
cbfa9218f5 Fix a MSVC compilation error.
Explicitely cast to int so MSVC can determine the proper overload.
2010-12-26 18:24:23 +00:00
Mark de Wever
21c721cbc6 Fix a include location broken due to 2010-12-26T15:58:45Z!crazy-ivanovic@gmx.net. 2010-12-26 18:04:19 +00:00
Mark de Wever
d8b025e716 Add a new debug clock dialog.
The dialog is used to test the drawing routines. The clock will need
some appearance changes later on. It's main goal is to test the drawing
routine timing and several other things I want to test in the near
future, where I want to see what parts get updated.
2010-12-26 17:07:48 +00:00
Nils Kneuper
9250e0de7d pot-update
also fixing the drake encyclopedia stuff being in the wrong folder/domain, now it is in wesnoth-help, where it belongs
2010-12-26 16:15:43 +00:00
Nils Kneuper
3dccbda7a1 fix typo (remove leading space)
this fix can't be fixed using pofix.py easily since it is at the
beginning of the string
2010-12-26 16:12:44 +00:00
Nils Kneuper
2c23ef0d4d move the drake specific encyclopedia entries...
...over to the encyclopedia instead of having them in the units folder
2010-12-26 15:58:45 +00:00
Nils Kneuper
911b92042c fix 2 typos pointed out by the galician translation maintainer 2010-12-26 15:56:28 +00:00
Mark de Wever
472056b19c Remove set_drawing function.
The builder can use the internal function and user code isn't really
supposed to use that interface.
2010-12-26 15:01:23 +00:00
Ignacio R. Morelle
198bba9ec4 GUI2: taddon_description: formula cleanup 2010-12-26 14:26:21 +00:00
Ignacio R. Morelle
c514d77361 GUI2: taddon_description:
Un-hardcode max icon size of 72x72 and avoid scaling smaller icons
(attacks/, etc.)
2010-12-26 14:19:58 +00:00
Mark de Wever
95b25e5527 Add sin and cos function. 2010-12-26 14:10:34 +00:00
Mark de Wever
46d6bb2444 Make pi a constant. 2010-12-26 14:10:29 +00:00
Mark de Wever
5e7a9fc7fb Add some comment.
The fix in 2010-12-24T09:09:51Z!guillaume.melquiond@gmail.com looks strange at first sight until...

...you see res is a reference.
2010-12-26 14:10:26 +00:00
Mark de Wever
1203d74e32 Add concatenate function. 2010-12-26 14:10:22 +00:00
Mark de Wever
04112eb00b Add length function to determine string length. 2010-12-26 14:10:17 +00:00
Mark de Wever
c8e4b49005 Fix gui2 line drawing algorithm.
The previous implementation of the Bresenham line algorithm had a bug,
took another implementation which doesn't have the glitch.

The problem only occered rare cases and never with a horizontal or
vertical line, which caused the bug to remain hidden that long.
2010-12-26 14:10:11 +00:00
Mark de Wever
51416bc610 Enable gui formula logging.
It's needed quite often during testing so enable it by default now.
2010-12-26 14:10:06 +00:00
Guillaume Melquiond
634d6fe885 Improved wesnoth.synchronize_choice so that AI handling comes for free. 2010-12-26 11:35:10 +00:00
Guillaume Melquiond
9d457f101d Changed the dialog test so that it also transforms units. 2010-12-26 11:35:07 +00:00
Guillaume Melquiond
669d1dd8b0 Added a wesnoth.transform_unit function. 2010-12-26 11:35:04 +00:00
Guillaume Melquiond
6c9c16f730 Added missing comment. 2010-12-26 11:35:00 +00:00
Guillaume Melquiond
f7a89b548d Added wesnoth-help as new text domain. 2010-12-26 10:14:01 +00:00
Mark de Wever
243f9fd87d Add a substring function to the formula language.
Also added a unit test for the function.
2010-12-26 09:47:09 +00:00
Nils Kneuper
c2b37db47b pot-update
regenerated doc files
2010-12-26 09:25:34 +00:00
Nils Kneuper
0d5dbb498e removed a pofix rule that breaks with the new encyclopedia...
(reference to drakes since it "fixes"

<ref>dst='..race_drake' text='drakes'</ref> to
<ref>dst='..race_drake' text='drakes’</ref>

which basically breaks the description text of the link
2010-12-26 09:21:26 +00:00
Nils Kneuper
e20e398d97 updated Slovak translation 2010-12-26 09:09:38 +00:00
Mark de Wever
e363927678 Rename a log domain macro.
The new name fits better with the domain it uses.
2010-12-26 08:33:18 +00:00
Guillaume Melquiond
d5e081efb2 Ensured that the AI algorithm set in an [ai] tag is preferred when it exists. 2010-12-26 08:05:41 +00:00
Steven Panek
e008466432 Set svn:eol-style. 2010-12-26 06:01:04 +00:00
Guillaume Melquiond
429c65fdbc Fixed RCA AI not loading for scenarios with a custom [ai] config,
...especially when the RCA AI is still the only choice available to
the user in the dropbox. (Fix for bug #16607.)
2010-12-25 21:06:27 +00:00
Anonymissimus
07ccfc6be4 CodeBlocks projectfile update 2010-12-24 15:12:22 +00:00
Guillaume Melquiond
bec8a218da Preserved item orders at load and save time. (Fix for bug #16771.) 2010-12-24 10:00:20 +00:00
Guillaume Melquiond
28db7a19d0 Ensured that delegated defense modifiers...
...are still stored into the cache. (Fix for bug #17235.)
2010-12-24 09:09:51 +00:00
Lari Nieminen
64a0e111e5 Fixed bug #17388 (typoed flag variant). 2010-12-24 08:33:14 +00:00
Timotei Dolean
4d75a28933 eclipse plugin: add the plain text readme format 2010-12-24 08:29:32 +00:00
Guillaume Melquiond
fdd00009ea Added a get_image_size function for querying the...
...width and height of an image. (Fix for bug #17387.)
2010-12-24 08:07:18 +00:00
Guillaume Melquiond
a7f8fed3a5 Fixed comments. 2010-12-24 08:07:14 +00:00
Timotei Dolean
08036b65a5 eclipse plugin: post release version bump 2010-12-24 07:02:31 +00:00
Mark de Wever
119349b09e Add drawing widget.
This widget allows to customize drawing the widget in the window definition.
The widget has, like the spacer a fixed best size.
2010-12-23 20:05:37 +00:00
Elias Pschernig
22f7e80164 [wmlunits]fix navbar for translations 2010-12-23 19:27:21 +00:00
Elias Pschernig
7524e6befc [wmlunits] use translations only for mainline units...
...(very few addon units had translations but creating all the addon
units in each language takes a lot of time and .html files). Also
report less errors for addons (the addon authors don't get to read
them anyway i'm afraid :/)
2010-12-22 23:34:08 +00:00
Guillaume Melquiond
a5576c461b Removed small portraits that are just scaled down versions...
...of the transparent ones.

Checked that they are identically rendered by the engine: MSE visual
distortion less than 0.007%.
2010-12-22 18:11:36 +00:00