Commit Graph

36387 Commits

Author SHA1 Message Date
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
Mark de Wever
56203964b7 Rename markup_mode to use_markup.
The old name was proper when there were three modi, now there are only
two so the new name is better.
2009-10-09 22:35:46 +00:00
Mark de Wever
ccd1bac40d Allow markup in a campaign description.
Fixes bug #14435.
2009-10-09 22:35:28 +00:00
Mark de Wever
da808a5239 Enables mouse wheel scrolling again.
Should fix bug #14459.
2009-10-09 22:26:35 +00:00
Mark de Wever
7bed703f05 Fix indention. 2009-10-09 22:26:29 +00:00
Steven Panek
9bccfdd164 Made the colors of the text consistent. 2009-10-09 22:24:58 +00:00
Nils Kneuper
027a1443df ran utils/wesnoth-optipng
Overall statistics (only for files with a smaller recompressed size):
  Original size: 3725 KiB on 74 files
 Optimized size: 3300 KiB
   Total saving: 425 KiB = 11% decrease
2009-10-09 22:21:52 +00:00
Steven Panek
2ed1d00d98 Made the label layers transparent. 2009-10-09 22:02:05 +00:00
Ali El Gariani
2479c5c569 Clean a little generate_gender:
Unify with other unit::generate_* function, also to better show that
it has side-effect.

Spare one useless RNG call when unit_type has only one gender.
2009-10-09 21:36:17 +00:00
Jérémy Rosen
2ab303050f fix the anim engine sometime choosing the default animation...
...when a valid user animation was available. Detected with drake
on-water anim, but could be triggered by anim animation. Also add a
security against force redraws between the end of a strike and the
next strike
2009-10-09 20:46:38 +00:00
Hogne Håskjold
01694d0f82 New transparent buttons 2009-10-09 20:42:56 +00:00
Nils Kneuper
fd2473c731 updated Shavian translation
added about entry for the translation
add a sort entry for the lang selection menu
2009-10-09 20:27:00 +00:00
Mark de Wever
1155ee1e3a Escape no longer escapes the gui2 dialog.
This caused the quit message to show when using escape in the message
dialog. (Fixes part 1 of bug #14458.)
2009-10-09 20:21:27 +00:00
Ali El Gariani
32c7e6d15f Fix an incorrect update of unit-preview when using filter and some sorting.
(to reproduce the bug, type "arc" in english create-unit dialog)
2009-10-09 14:38:38 +00:00
Nils Kneuper
0c550cefe1 updated Shavian translation 2009-10-09 14:24:07 +00:00
Nils Kneuper
998b0a48b9 fix locale string for en@shaw, now it should be selectable... 2009-10-09 10:11:42 +00:00
Ali El Gariani
da6dfa3b2b Continue to clean unit constructor:
Better control when we do random generation of traits, name and gender
(to avoid OoS)

Activate them for debug-created units.
2009-10-09 01:46:27 +00:00
Iurii Chernyi
71a84f6823 forked candidate action:
...testing_ai_default::default_move_to_targets_phase into
testing_ai_default::testing_move_to_targets_phase - set up everything
for experiments on ai movement and targeting phase
2009-10-09 00:53:04 +00:00
Nils Kneuper
28b2ec05b6 automatically add the new font (Andagii)...
...into the font list when pofix.py is run
2009-10-09 00:25:50 +00:00
Iurii Chernyi
afb3c3ce78 new candidate action:
...testing_ai_default::default_move_to_targets_phase - copy of default
ai movements and targeting phase, as a candidate action
2009-10-09 00:11:27 +00:00
Nils Kneuper
74978b6e3b updated Shavian translation 2009-10-08 23:53:50 +00:00
Ali El Gariani
4a6fbd5565 Simplify one unit constructor by removing most of its messy bool parameters.
Also make :create spawn (randomly) male and female.  I noticed an
error causing plague to only create male. I keep that behavior for the
moment but make it more clear.
2009-10-08 23:44:56 +00:00