Gunter Labes
8ca29c4623
hand the CVideo reference around again...
...
...since we do sometimes save games outside of a scenario where
resources::screen is invalid
fixes bug #14457 : segfault after a :cl
2009-10-06 18:47:25 +00:00
Gunter Labes
4c18510673
reindented
2009-10-06 18:47:21 +00:00
Gunter Labes
df9cf5fbff
use a simple side turn event instead of a nested ai turn event
2009-10-06 18:47:11 +00:00
Ali El Gariani
6ec617607e
remove some other simple cases of now useless hidden=yes
2009-10-06 17:03:54 +00:00
Ali El Gariani
2b130b7851
remove now useless hidden=yes from [side]
2009-10-06 17:00:22 +00:00
Ali El Gariani
e0d3333cb6
Fix broken ambush/invisibility at first turn or at unit creation.
...
This set hidden=true as default, you can still overwrite it with
[status]hidden=no[/status] This means that all
[status]hidden=yes[/status] hack previously needed can be removed.
But if you want to show a new invisible unit spawn, then hidden=no is
now needed.
2009-10-06 16:46:34 +00:00
Ali El Gariani
b8808248c5
Fix a invalidation glitch with ambush reported in forum
2009-10-06 15:30:44 +00:00
Iurii Chernyi
b5539a3a1a
changelog entry for the above commit
2009-10-06 14:25:52 +00:00
Iurii Chernyi
bd629c8c49
added 'side X turn' and 'side X turn Y' events
2009-10-06 14:25:47 +00:00
Nils Kneuper
84858954c4
updated German translation
2009-10-06 11:29:05 +00:00
Ali El Gariani
0711a964f4
use recent new rate_target function to reduce cope cloning
2009-10-06 02:05:05 +00:00
Nils Kneuper
60f239d48a
updated Hungarian translation
2009-10-05 20:23:42 +00:00
Guillaume Melquiond
53d9af1f8e
Fixed constness in map_labels.
2009-10-05 19:38:53 +00:00
Guillaume Melquiond
fd16c7aac6
Removed unused field map_labels::label_cache_.
2009-10-05 19:38:50 +00:00
Guillaume Melquiond
de7e097109
Simplified map_labels::add_label.
2009-10-05 19:38:46 +00:00
Ali El Gariani
0688c6e909
remove dead code
2009-10-05 17:49:37 +00:00
Ali El Gariani
bd0f2a3a45
Optimize default AI targeting (prune most of targets)
...
No change in the AI behavior and with its current state, it seems that
we usually only need to consider the most promising target (sometimes
few more, but not the majority of them)
2009-10-05 15:54:11 +00:00
Guillaume Melquiond
ac84b5c19e
Reverted part of 2009-10-02T19:27:54Z!koraq@xs4all.nl.
...
As pointed by alink, tooltips do actually care about the area size.
2009-10-05 04:41:04 +00:00
Richard Kettering
e0872c8a0e
Minor tweak to the shadow opacity on one drake frame.
2009-10-05 00:57:25 +00:00
Guillaume Melquiond
4d031eab2b
Made it possible to separately set height and multiline behavior.
2009-10-04 20:15:01 +00:00
Guillaume Melquiond
15549e8c5c
Ensured surfaces returned by Pango are not bigger than expected.
2009-10-04 20:14:52 +00:00
Alexander van Gessel
bdaee5da15
Commit forgotten dutch translation update
2009-10-04 19:55:50 +01:00
Nils Kneuper
0ead9d86f4
updated Dutch translation
2009-10-04 18:22:23 +00:00
Mark de Wever
efadc53b10
Also forward the raw button events.
2009-10-04 16:16:53 +00:00
Nils Kneuper
f35fff6263
updated German translation
2009-10-04 14:52:30 +00:00
Mark de Wever
3edf2dd3fd
Rename the connect function to avoid clashes.
...
Also connect the dispatcher from the window itself which seems more
natural to do (we are the dispatcher).
2009-10-04 14:42:43 +00:00
Tomasz Śniatowski
4a340bc302
fix bug #14266 (revert all changes not working in the map editor)
2009-10-04 15:21:45 +01:00
Tomasz Śniatowski
bbc38b4799
avoid copying editor's map_contexts,
...
...fixing a memory leak during non-MDI load map with a non-empty undo
stack, as reported by Soliton
2009-10-04 15:21:14 +01:00
Tomasz Śniatowski
ec428d4f24
add editor action cloning
2009-10-04 15:18:57 +01:00
Mark de Wever
5b529e5be5
Allow properly clicking in a toggle panel.
...
This was a known problem but I didn't realize the panel was already
used. Double clicking in the list doesn't work yet. Code to enable that
is part of a larger WIP project. The issue was spotted by fendrin.
2009-10-04 12:05:19 +00:00
Mark de Wever
c896be2ee8
Send the SDL mouse motion properly.
...
This way a dispatcher can intercept and block the signal, which allows
resending the signal in a different fashion (which is wanted for some
nested widgets.).
2009-10-04 12:05:15 +00:00
Mark de Wever
f4b58c9b0b
Improve opening multiple dialogs.
...
I wasn't entirely happy with 2009-10-02T19:02:32Z!koraq@xs4all.nl since it seemed to fix a
symptom and not the cause, found the cause and reverted the code
introduced in 2009-10-02T19:02:32Z!koraq@xs4all.nl.
2009-10-04 12:05:10 +00:00
Chusslove Illich
90bc861827
Updated tracking index of localized images.
2009-10-04 09:54:03 +00:00
Nils Kneuper
6120295ab9
updated Dutch translation
2009-10-04 09:41:31 +00:00
Mark de Wever
160dcb2d37
Send the event to the proper widget.
...
Fixes bug #14434 .
2009-10-04 07:20:12 +00:00
Mark de Wever
207ae7c28b
Disable old event handling code.
2009-10-04 06:10:46 +00:00
Steven Panek
a44afd8a8e
Seperated the text from the labels in the main overlays and AoI's overlay.
2009-10-04 01:02:52 +00:00
Mark de Wever
713056fb86
Wire in the mouse wheel events.
2009-10-03 20:01:59 +00:00
Mark de Wever
3c6084cffe
Reenable text selection with mouse dragging.
2009-10-03 19:05:35 +00:00
Ignacio R. Morelle
ff72d01889
Remove a stray pixel from the Bandit's baseframe
...
This caused the sprite to appear misaligned in the sidebar.
2009-10-03 18:09:06 +00:00
Mark de Wever
92b97608b4
Enable the new event handling by default.
...
The code should act the same as the old event handling. The code has
been lightly tested and can be disabled by defining
GUI2_OLD_EVENT_HANDLING during compilation.
The old code is still fully there and shall be moved withing #ifdefs
soon. Also the event handler has theoretic support for nested event
handlers but this code hasn't been used yet, which will also happen
later on.
2009-10-03 17:52:13 +00:00
Mark de Wever
eab5ee0219
Allow dragging of a scrollbar grip.
2009-10-03 17:52:05 +00:00
Mark de Wever
fbacbd3a2c
Reenable the system events.
2009-10-03 17:52:02 +00:00
Mark de Wever
5b56521ef4
Enable wheel mouse actions.
...
Not tested due to lack of hardware.
2009-10-03 17:51:59 +00:00
Mark de Wever
d4a058fcc0
Enable the middle mouse button for the textwidget.
2009-10-03 17:51:56 +00:00
Mark de Wever
e37617f663
Wire in the rest of the mouse events.
2009-10-03 17:51:52 +00:00
Mark de Wever
823904390a
Add definitions for the rest of the mouse events.
2009-10-03 17:51:49 +00:00
Mark de Wever
6621162ec3
Fix a type s/CLICK/DOUBLE_CLICK/.
2009-10-03 17:51:45 +00:00
Mark de Wever
78b6975c4a
Allow proper selection in a textbox.
2009-10-03 17:51:42 +00:00
Mark de Wever
b86142a4ce
Also send the key down if the window is the child.
...
This allows windows without other widgets that want the mouse to close
themselves.
2009-10-03 17:51:38 +00:00