Commit Graph

36515 Commits

Author SHA1 Message Date
Gunter Labes
fc4ad3e7b3 optimized clone finding a bit 2009-10-19 18:59:28 +00:00
Gunter Labes
cba698cfc5 synchronised the Skeleton Rider stats from Liberty with the UtBS version
someone still needs to check the images/animations and then the unit
can be moved to core
2009-10-19 18:59:24 +00:00
Gunter Labes
9f1c14684a [[Era tuning]]
* Removed Elder Wose and Shock Trooper from random_leader of the default era.
* Removed Ancient Wose and Iron Mauler from random_leader of the AoH era.
2009-10-19 18:59:19 +00:00
Mark de Wever
87d012e7ab Renamed the cmake foo2 targets to foo. 2009-10-19 18:24:33 +00:00
Nils Kneuper
afc567e7af pot-update...
(2 new strings as overlay explaining the ingame clock in default theme)

regenerated doc files
2009-10-19 15:57:04 +00:00
Guillaume Melquiond
5b50bcd669 Delayed time area initializations until the level has started loading. 2009-10-19 05:30:07 +00:00
Guillaume Melquiond
399c2c0bac Moved resources setting in constructor to match the destructor. 2009-10-19 05:29:30 +00:00
Nils Kneuper
6e52ea3ee0 updated Finnish translation 2009-10-18 19:26:53 +00:00
Mark de Wever
825485314a Update release notes. 2009-10-18 12:43:29 +00:00
Chusslove Illich
02f6397f8f Updated translation for Serbian. 2009-10-18 11:57:15 +00:00
Jérémy Rosen
4930e19a99 add recruiting anim for all magic using undead leaders 2009-10-18 09:07:57 +00:00
Mark de Wever
dfdf3a2949 Filter out some characters for labels.
Those characters break the dot files so replace them with a safe
character.
2009-10-18 09:00:45 +00:00
Mark de Wever
177c95c4ec Add the window id to the debug dot files.
Now that windows automatically get an id it makes sense to show the
name.
2009-10-18 09:00:41 +00:00
Guillaume Melquiond
2f11ba7900 Fixed typo. 2009-10-18 08:50:01 +00:00
Jérémy Rosen
a6a80d379b fix Dark Sorc being stuck on last frame when recruiting 2009-10-18 08:09:03 +00:00
Jérémy Rosen
711218fd60 fix units with no victory animation...
...(more or less all units) staying stuck on their last attack frame
during death animation
2009-10-18 08:04:51 +00:00
Mark de Wever
ebee25fce1 Add an unhandled event to the ignore list.
gui2 generates double clicks itself so can ignore the ones generated by
the event handler.
2009-10-18 07:04:54 +00:00
Mark de Wever
445d1a54b3 Put the events in own context.
On some systems the shared context caused events to pass to other
dialogs. Fixes bug #14458.
2009-10-18 07:04:50 +00:00
Nils Kneuper
a33795e5b3 updated Hungarian translation 2009-10-18 00:14:58 +00:00
Mark de Wever
6f34e1d16a Fix scrollbars to show up when not needed.
Fixes bug #13996.
2009-10-17 21:15:32 +00:00
Mark de Wever
ab9342904e Fix a compiler error. 2009-10-17 20:21:58 +00:00
Mark de Wever
ee5cee21f6 Fix double click event dispatching.
Soliton ran into the problem that when using his touchpad to double
click on a campaign it might directly select the difficulty and dismiss
the next dialog. When using a mouse the problem didn't occur.

The output of events for the mouse were:
Push DOUBLE_CLICK_EVENT.
Process DOUBLE_CLICK_EVENT.
Window dtor.

The output of events for the touchpad were:
Push DOUBLE_CLICK_EVENT.
Window dtor.
Process DOUBLE_CLICK_EVENT.

This explains why the events are send to the next dialog. It doesn't
explain why it happens, but that might be the touchpad driver or OS.

The problem is solved by removing the extra events after closing the
dialog. Avoiding the events to be generated is tricky since a gui2
dialog can open a gui1 one, when that happens double clicks need to be
enabled temporary and then again disabled when that dialog closes.
2009-10-17 20:12:10 +00:00
Mark de Wever
5ef4b458a4 Don't allow a mouse click to be refocussed.
It fixes the following issue:

- press the left mouse button down on button 1

- move to button 2

- right click button 2

- release the left mouse button

In that case button 2 received a mouse click and button 1 never received
that the mouse left it.
2009-10-17 18:55:54 +00:00
Guillaume Melquiond
b067f78ed3 Fixed logic for considering or not the whole map. 2009-10-17 17:48:04 +00:00
Guillaume Melquiond
d8511388ab Passed border information from terrain_filter to parse_location_range. 2009-10-17 17:42:38 +00:00
Guillaume Melquiond
73b18ee114 Fixed minimap not being update when modifying shroud.
Removed meaningless message.
2009-10-17 17:14:09 +00:00
Guillaume Melquiond
5570681bdf Restricted location ranges to map tiles. (Fix for bug #14538.) 2009-10-17 17:07:17 +00:00
Guillaume Melquiond
f9f6a7e62e Fixed garbled chat messages. 2009-10-17 16:36:46 +00:00
Guillaume Melquiond
059ee3b1ec Forgot an occurrence of lua_getfield. 2009-10-17 16:36:42 +00:00
Guillaume Melquiond
143241c4b8 Added upper bound on cost for pathfinder. 2009-10-17 16:36:39 +00:00
Guillaume Melquiond
3281feee81 Avoided small potential leaks by forbidding metatable-redirections...
...in engine arguments. Hopefully it won't cripple things too much
while making the scripting engine a bit more robust.
2009-10-17 16:36:35 +00:00
Mark de Wever
72cf13ed3c Added a minimal implementation for the tooltips.
Since the tooltips are currently only used for the multiplayer menu the
have been impemented so they work there.
Post 1.8 it will be implemented better but it might be that the tooltips
then become separate floating windows. Since that's not sure added the
minimal version for 1.8 and look further after that version has been
shipped.
2009-10-17 15:06:39 +00:00
Nils Kneuper
6fb52460ec reapply the fix from 2009-10-15T19:37:16Z!koraq@xs4all.nl by mordante 2009-10-17 11:17:34 +00:00
Nils Kneuper
eb04d7280a updated Italian translation 2009-10-17 11:15:40 +00:00
Alexander van Gessel
c084802ca2 Fix a typo, enter it into pofix and run it on the po files 2009-10-17 11:54:01 +01:00
Mark de Wever
b1c1e81d03 Fix copy paste error. 2009-10-17 09:56:19 +00:00
Mark de Wever
bc7e6e2a34 Doxygen documentation update. 2009-10-17 09:55:21 +00:00
Mark de Wever
e87abf9202 Silently ignore the key up event.
The event is not useful since everything can be done with the down
event. Also a minor indention fix.
2009-10-17 09:55:17 +00:00
Mark de Wever
d077942d6c Polish the doxygen comment. 2009-10-17 09:55:13 +00:00
Steven Panek
9fd91e5b52 Made the village-burning event use torch.ogg instead of fire.wav. 2009-10-17 06:51:48 +00:00
Mark de Wever
b73d1ac9b8 Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2009-10-17 05:37:53 +00:00
Mark de Wever
ff27cb8f63 Update the mouse position after closing a dialog.
This makes sure the dialog below knows the proper location. It fixes the
following issue:

- multiplayer

- connect to server

- show list

- move mouse out of dialog

- press escape

Before this commit the show list button would still be highlighted as if
the mouse was still above it.
2009-10-16 19:42:56 +00:00
Mark de Wever
ee61765f0f Make init_mouse_location() a free function.
No need to keep it as member since it uses nothing of the class. Moved
it to the handler file since I'll need it there as well.
2009-10-16 19:42:49 +00:00
Mark de Wever
a6430e08f6 Fix the not properly drawing glitch.
When a window is closed the other dispatchers need to be set dirty so
they really redraw themselves the next drawing cycle.
2009-10-16 19:42:45 +00:00
Mark de Wever
c1634e23d4 Pre instead of post increment a variable.
Issue found by cppcheck.
2009-10-16 17:56:58 +00:00
Mark de Wever
ef02c3e269 Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2009-10-16 17:55:49 +00:00
Mark de Wever
93730b6c88 Strip trailing whitespace. 2009-10-16 17:55:44 +00:00
Sergey Popov
95d98488d0 Fixed compile warnings. 2009-10-16 14:17:31 +00:00
Jörg Hinrichs
5b21114d6d Removes num_turns from mp_game_settings,
...as that information is not unique to multiplayer. Also fixes
num_turns not being displayed for replays.
2009-10-15 21:59:43 +00:00
Nils Kneuper
928d985748 updated German translation 2009-10-15 21:02:06 +00:00