Commit Graph

36608 Commits

Author SHA1 Message Date
Mark de Wever
d8fd44ce8d Disable the recursion locker.
This locker isn't needed for a top level dispatcher and it seems to
break (at least in this case). I however assume this commit fixes a
symptom not a cause...
2009-10-11 15:08:46 +00:00
Mark de Wever
6fc3fe8553 Set the window type as id.
This helps debugging since the id is printed in the event debug
messages.
2009-10-11 15:08:42 +00:00
Mark de Wever
e8649fa9d4 Convert a button callback to a signal handler.
Just a proof of concept change, the rest of the callbacks will be
changed post 1.8.
2009-10-11 15:08:39 +00:00
Mark de Wever
cf70494c46 Wire in the first public widget signal handler.
These signals should replace the callbacks, but this project will be
done post 1.8. But it shows the design idea.
2009-10-11 15:08:35 +00:00
Mark de Wever
99bd003b89 Let the new dispatcher do the event handling.
The old code remains but ifdef'ed out so can be restored if needed.
2009-10-11 13:36:37 +00:00
Mark de Wever
ac4fad5a53 Add a new event distributor class.
This class is meant to replace the current event handler class. The
replacement will be done in a later commit.
2009-10-11 13:05:30 +00:00
Mark de Wever
b1d131ff9f Remove assert so the compiler can properly warn. 2009-10-11 10:39:20 +00:00
Mark de Wever
0a981495ac Allow to disconnect signals. 2009-10-11 10:39:15 +00:00
Nils Kneuper
2886907c0c updated Shavian translation 2009-10-11 09:36:50 +00:00
Chusslove Illich
b2ac4cc5a7 Images used in the tutorial on image localization. 2009-10-11 09:11:53 +00:00
Mark de Wever
9359184556 Improve po-update to avoid nop updates.
The last change caused a lot of files be updated with the only change
the pot-update header. In the Wesnoth wiki there was a hint to use
msgattrib to cleanup the changes poedit makes. Using this on the file
seems to give the wanted output, proper files and no "dummy" updates.

Ivanovic please test this change.
2009-10-11 07:08:49 +00:00
Richard Kettering
b1a94d4a76 Added new hammer frames for the dwarvish lord and steelclad. 2009-10-11 07:08:38 +00:00
Richard Kettering
6ac51ac467 Added a new, complete goblin variant of the walking corpse and soulless. 2009-10-11 06:33:01 +00:00
Ali El Gariani
a536b3fac3 Commit experimental bugfix for default AI in RCA AI (exerimental targeting)
Fix a very old bug making the AI rates targets as if they were all
reachable in 1 turn. AI should now prefer targets reachable in 2 turns
against one needing 3 (if same value).

Note that it only affects targets needing more than 1 turn to reach.

This also make "complex targetting" works and should make the AI pick
the best unit to reach the best target (probably begin by sending
scouts grab undefended villages)
2009-10-10 22:46:12 +00:00
Iurii Chernyi
3de0a8247f players_changelog entry for above commit 2009-10-10 21:49:03 +00:00
Iurii Chernyi
a264913088 fix a serious enough bug in default ai targeting,
...uncovered with the help of Aethaeryn, who provided a test case. The
bug caused the AI, in certain situations, to make weird
shuffle-doing-nothing moves and not seek enemies or their villages
2009-10-10 21:35:16 +00:00
Guillaume Melquiond
382c94e8b6 Removed unused fields ntime::source::time_ and index_. 2009-10-10 20:15:26 +00:00
Guillaume Melquiond
e390a7441f Removed unused enumeration ntime::source::time_mode. 2009-10-10 20:15:02 +00:00
Guillaume Melquiond
f90b78de62 Removed unused class unit_map::xy_accessor_base. 2009-10-10 19:05:46 +00:00
Guillaume Melquiond
38f1a101f3 Fixed dangling pointer when the current weapon...
...subreptitiously disappears from the unit, while the other unit was removed.
2009-10-10 19:05:41 +00:00
Guillaume Melquiond
f132d4ee13 Directly checked unit validity instead of relying on xy_accessor.
Indeed, if another unit takes the place of the attacker or the
defender (e.g. Trinity scenario K02), the change would go undetected,
hence causing a segfault at attack end.
2009-10-10 19:05:36 +00:00
Guillaume Melquiond
14032eaa0d Reduced dependency on unit_map iterators. 2009-10-10 19:05:31 +00:00
Guillaume Melquiond
a257e408cd Removed battle execution from constructor,
...so that thrown exceptions are less harmful.
2009-10-10 19:05:26 +00:00
Guillaume Melquiond
584ef33493 Moved the attack class out of the way, as it was completely private anyway. 2009-10-10 19:05:19 +00:00
Guillaume Melquiond
d93ecac3ad Reverted commit 2009-10-09T20:42:56Z!haskjold@pvv.org so that WML [message] buttons show...
...light text on dark background.

The current situation (light text on light background) makes it
impossible for people with low contrast sensibility to read the text
of the buttons.

(I suppose the current situation also affects people using poor LCD
displays, since the buttons are usually displayed at the bottom of the
screen, where the contrast for light colors is the worst.)
2009-10-10 16:19:56 +00:00
Guillaume Melquiond
c5d5b1efd4 Removed unused members of class CKey. 2009-10-10 16:19:51 +00:00
Guillaume Melquiond
be32933321 Removed unused members sound_source::*::add_location. 2009-10-10 16:19:45 +00:00
Mark de Wever
0788c3d81e Create new events for getting and losing focus.
Uses the new notifications to send the events, this means only the
widget getting or losing the focus gets the event not it's parents.

Also comment out the old code to handle mouse focus.
2009-10-10 15:36:37 +00:00
Mark de Wever
7a1962c00a Add a signal handler fired upon destruction.
This way a widget notifies all it's parents of it's departure.
In order to allow this event a new signal type is used.
2009-10-10 15:36:25 +00:00
Nils Kneuper
a459614b70 updated Shavian translation 2009-10-10 14:40:28 +00:00
Mark de Wever
921cc5d04a Changelog and release notes update. 2009-10-10 11:14:05 +00:00
Mark de Wever
63408f2ac8 When an addon has invalid markup show an error.
Espreon discovered the issue with his addon.
2009-10-10 11:12:02 +00:00
Mark de Wever
f961dd6bbc Make showing a dialog exception safe. 2009-10-10 11:11:57 +00:00
Sergey Popov
068103c765 Added 'lockfile' option to scons
It uses a lockfile to prevent multiple instances of scons from being run
in the same working copy at the same time.
2009-10-10 11:00:12 +00:00
Guillaume Melquiond
15cc0203d0 Removed unused constructor sound::music_track. 2009-10-10 10:45:42 +00:00
Elias Pschernig
9607325744 [wesnoth_addon_manager] try to connect only once...
...to the server when --html is used in parallel to
--download/--list/--update
2009-10-10 10:12:54 +00:00
Guillaume Melquiond
1739459cd8 Switched labels and tooltips from SDL to Pango. 2009-10-10 09:36:43 +00:00
Guillaume Melquiond
c56050dda1 Sped up conversion from Pango surface to SDL surface.
(Reference compiler: gcc 4.3 on amd64.)
2009-10-10 09:36:39 +00:00
Mark de Wever
56fda937be Remove unused constructors. 2009-10-10 09:16:27 +00:00
Nils Kneuper
5f78a56a20 updated Shavian translation 2009-10-10 08:02:19 +00:00
Ali El Gariani
07b5cd9998 In recall dialog, for level, use same increasing brightness as in unit list. 2009-10-10 03:52:30 +00:00
Ali El Gariani
058f106945 Fix never worked "invisible" status in unit list.
When there is several status icons for the same unit, sort them by severity.
2009-10-10 03:26:21 +00:00
Ali El Gariani
9d014d27cd Change order columns in unit list:
Mainly sort stats by changing frequency and direct usefulness (+ some
readability concern).

Put level next to XP (as done in recall dialog), MP as first stat
(main use of unit list), use status to separate numbers and make the
large column (traits) in last position.  Initial sort by unit type and
add possibility to sort by status.
2009-10-10 03:16:49 +00:00
Ali El Gariani
8e09cacc6d Color XP in recall dialog (as we already do for unit list)
This makes the sorting a bit more intuitive: user sees different
colors, click on the sorting arrow sorts them by brightness which has
a known meaning from XP bar color (XP needed to level up). Fix bug
#14486.
2009-10-10 02:23:19 +00:00
Ali El Gariani
10caf03d73 Remove the use of level for sorting XP (recall and unit list dialogs).
Make no sense with the current "XP needed for the next level" sorting,
make it even more harder to understand that this order is used, and
using another column as main base to sort the clicked column was bad
UI.
2009-10-10 02:18:19 +00:00
Ignacio R. Morelle
948aa9f5f7 Simplify a GUI2 invocation. 2009-10-10 01:58:37 +00:00
Steven Panek
b7ede95442 Regenerated the main map and the campaign maps...
...that are derived from the main map.
2009-10-09 22:51:59 +00:00
Mark de Wever
e31aa39538 Comment out more old code. 2009-10-09 22:47:43 +00:00
Mark de Wever
6e0e9fbbc9 Fix changelog merge error. 2009-10-09 22:40:32 +00:00
Mark de Wever
c14ef8afe5 Disable closing the titlescreen with escape.
Fixes bug #14020.
2009-10-09 22:39:52 +00:00