49668 Commits

Author SHA1 Message Date
Mark de Wever
1888795a4d Update XCode for pane.cpp.
Patch provided by vultraz.
2012-04-29 14:37:54 +00:00
Mark de Wever
8b49a58d40 Found a better solution for 2012-04-29T14:15:57Z!koraq@xs4all.nl.
It's now possible to draw on the entire screen when using --new-widgets
and use proper clipping when not using --new-widgets.
2012-04-29 14:37:51 +00:00
Silas Brill
177c404589 Added files added by 2012-04-28T18:08:44Z!koraq@xs4all.nl to Code::Blocks project file 2012-04-29 14:16:52 +00:00
Mark de Wever
2dc4c0d3bf Fix 'flickering' in the main menu.
It makes no sence to set a clip_rect when it's destroyed directly.

The issue was spotted by Crendgrim.
2012-04-29 14:15:57 +00:00
Mark de Wever
aa51d1c6da Adds emulation for C++11's std::map::at().
It is used to test some new listbox code, but can be generally useful.

A non-official reference can be found here:
http://en.cppreference.com/w/cpp/container/map/at
2012-04-29 14:15:54 +00:00
Mark de Wever
3822677a8a Add a copyright header.
The file like formatter.hpp was introduced in 2008-03-03T05:40:29Z!davewx7@gmail.com. So used the
copyright statement of formatter.hpp.
2012-04-29 14:15:51 +00:00
Mark de Wever
80269f9d34 Update copyright header. 2012-04-29 14:15:48 +00:00
Mark de Wever
04f6b7927a Let the pane create a list of widgets.
The list of available addons is now drawn directly on the screen, but it
already looks like a list. No interaction with the widgets is possible
yet.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 12:17:15 +00:00
Mark de Wever
6717bc0771 Disable clipping when using --new-widgets.
This allows widgets to draw upon the entire screen, which makes testing
easier.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 12:17:12 +00:00
Mark de Wever
ad2501a07e Let tbuilder_grid::build() return a tgrid.
This makes writing some new code easier. It requires the inclusion of
the grid header so the compiler can determine the relation between
twidget and tgrid and verify it's a valid covariant return type.
2012-04-29 12:17:09 +00:00
Mark de Wever
bf5ab53be6 Let listboxes and the addon code use the new pane.
Only when --new-widgets is specified since it will break a lot.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-28 19:16:17 +00:00
Mark de Wever
af00fd0f2f Add a move function for widgets.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-28 19:16:13 +00:00
Mark de Wever
8f945cf235 Add a new offsetted drawing method.
The code is mainly copy pasted from the current drawing code, but adds
some helpers as well.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-28 19:16:10 +00:00
Mark de Wever
a85b712e2a Add a new pane widget.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-28 18:08:44 +00:00
Silas Brill
6cf52d9e1e Removed some trailing whitespace 2012-04-28 14:52:09 +00:00
J. Tyne
bbb6631f79 Functions to rotate an image 90- or 180- degrees.
(Still need an Image Path Function to make these accessible from WML.)
2012-04-28 14:17:07 +00:00
Silas Brill
70b8ecd0a6 Ensure that multiple messages displayed simultaneously will not overlap
It's possible (at least) for the ambush message and the sighted
message to appear simultaneously (i.e. sighted an ally before being
ambushed).  The "Failed teleport!" message might also be able to occur
with the sighted message.
2012-04-28 08:31:41 +00:00
Mark de Wever
2e20ecba01 Restore the gui2 experimental addon dialog.
Somebody removed this feature, no idea why.
2012-04-28 07:15:19 +00:00
Ignacio R. Morelle
0a6c8813ba gui2/tnetwork_transmission: Fixed untranslatable Cancel button label
(bug #19659)
2012-04-27 07:26:28 +00:00
Elvish_Hunter
48c5bc34c9 DW and UtBS: updated Stun special to use [object] duration=turn 2012-04-26 08:02:37 +00:00
Ignacio R. Morelle
3dfad07694 Various changes to the Dismiss Unit prompt
* Gave the dialog a title

 * Hardcoded trailing blanks previous found in translatable strings

 * Removed 'excited' exclamation marks from UI strings

 * Removed the silly "My lord" at the start; merits no further
   explanation
2012-04-26 05:28:34 +00:00
Mark de Wever
1c0e203a79 Remove some unused functions. 2012-04-25 19:29:44 +00:00
Mark de Wever
8e49489784 Allow breakpoints by raising a SIGTRAP.
This allows breakpoints while testing the Pandora.
2012-04-25 19:28:39 +00:00
Silas Brill
432ba3cfa8 Moved changelog entry for 2012-04-25T08:22:33Z!brilliand@gmail.com 2012-04-25 08:30:48 +00:00
Silas Brill
62c894830f In HttT: Cliffs of Thoria...
...give the injured sergeant shared vision when he is discovered by
the player

Fix for bug #19517
2012-04-25 08:22:33 +00:00
Silas Brill
1094e80f73 In a replay, only call new_turn() for units on the side about to move
Fix for bug #19658
2012-04-25 04:20:12 +00:00
Fabian Müller
ed97c6954c Made [base_unit] work recursively. 2012-04-25 00:03:15 +00:00
Simon Forsyth
3b4d041f19 remove reference to Moradin
(is god of Dwarves in D&D Forgotten Realms so possibly copyright issue)
2012-04-24 04:08:38 +00:00
Silas Brill
09f66aa14f Added changelog entries for 2012-04-24T02:55:45Z!brilliand@gmail.com and 2012-04-24T03:04:06Z!brilliand@gmail.com 2012-04-24 03:30:22 +00:00
Silas Brill
c15140b06b Changed uses of "ai turn" to "side # turn" in Dead Water
("[event]name=ai turn" breaks replays)
2012-04-24 03:04:06 +00:00
Silas Brill
62d852957c Made turn refresh (healing, poison, etc.) occur on first turn of game
Fix for bug #19656
2012-04-24 02:55:45 +00:00
Gabriel Morin
2e84409933 Improve exception safety in the "execute all actions" whiteboard mechanism.
May help with bug #19622.
2012-04-23 05:19:10 +00:00
Gabriel Morin
efcc5e4d48 Add clear() method to my utility finalizer class. 2012-04-23 05:16:55 +00:00
Gabriel Morin
75650a7ee7 Add an assert. 2012-04-23 04:52:49 +00:00
Gabriel Morin
d7e8cd1c93 Changelog entries for bugs fixed as side-effects of my recent fixes. 2012-04-23 04:16:28 +00:00
Steven Panek
fe956e1415 Updated the changelogs. 2012-04-23 00:16:16 +00:00
Steven Panek
c2e8b5caad Rehydrate everyone quietly upon victory; fixes bug #19655. 2012-04-23 00:07:54 +00:00
Gabriel Morin
33af8de754 Reverted 2012-04-22T13:55:26Z!koraq@xs4all.nl and commited my own fix for bug #19626 2012-04-22 23:01:46 +00:00
J. Tyne
36996747b5 Don't count clearing border hexes of fog/shroud as "really" clearing anything. 2012-04-22 19:06:20 +00:00
Mark de Wever
93605b82ad Partly fixed segfaults on window resize
This partly fixes bug #19626 and applies patch #3248.
2012-04-22 13:55:26 +00:00
Mark de Wever
d1c76499d3 Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2012-04-22 13:52:28 +00:00
Mark de Wever
59bcbff885 Remove duplicate condition in a logical or.
Issue found by cppcheck.
2012-04-22 13:52:23 +00:00
Mark de Wever
8847fead0b Pass parameter by const value instead of const ref.
It makes no sense for an integer value. (Also gcc's 4.8 snapshot was
confused and thought it was a 0 pointer.)
2012-04-22 13:52:14 +00:00
Mark de Wever
d739da7125 Replace come 0 pointers with NULL. 2012-04-22 13:46:46 +00:00
Nils Kneuper
f00ae09b1f updated French translation 2012-04-22 13:34:02 +00:00
Elvish_Hunter
993861aff4 Pushed LOOT macro from LoW, TRoW and THoT in core, file utils.cfg.
wmlindent also reindented other two macro files
2012-04-22 09:12:48 +00:00
Elvish_Hunter
006f6d2f33 Added IS_LAST_SCENARIO to all final campaign scenarios 2012-04-22 08:46:46 +00:00
Gabriel Morin
f32b5d0e08 Remove an admittedly weird use of std::set::swap()...
...which was causing gcc to freak out.
2012-04-22 05:04:13 +00:00
Gabriel Morin
83ea918f1f Fix units planning attack-moves not being ghosted at all.
Also store the list of units that are ghosted in
wb::manager::pre_draw() to be able to unghost them afterwards even if
they lose their planned action before wb::manager::post_draw() gets
called.

Improves the fix for bug #19619, and fixes bug #19621.
2012-04-22 04:28:48 +00:00
Simon Forsyth
aa8fec2ded First pass at refactoring UtBS scenario 6b 2012-04-22 02:56:28 +00:00