49687 Commits

Author SHA1 Message Date
Mark de Wever
02664dfb45 Remove the width limit from the campaign dialogue.
The previous limit was an artificial limit, using the character limit
feels less arbitrary. Did some other cosmetic fixes to let the dialogue
look nicely for different window widths.
2012-04-30 19:37:26 +00:00
Mark de Wever
8a4a4e6eae Adds a character limit width constrain to a label.
Lets the gui2 label use the code of the previous commit. Allow it
potentially for every control, only implemented for the label.
2012-04-30 19:37:24 +00:00
Mark de Wever
73e640b6d3 Adds character limit width constrain for a text.
The number of characters per line can now be limited for a text object.
The limit is an approximation since the character width for a true type
font is not fixed. When this constrain is used, the text should also be
allowed to wrap.
2012-04-30 19:37:20 +00:00
Mark de Wever
7ec06a071d Add a method to only move the child items.
After sorting there is no need to re-render the entire image.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-30 19:37:17 +00:00
Timotei Dolean
2ec880d6a8 Update the MSVC9 project 2012-04-30 18:30:57 +00:00
Fabian Müller
b6597782ee Support for vision= in [unit] and [unit_type].
If present it's used instead of the movement to calculate the sight of the unit.

Support for [vision_costs] in [movement_type].

If present it's used for the costs when calculationg the sight of the unit.
2012-04-30 18:03:48 +00:00
Ignacio R. Morelle
809c0e23ed Fix some inconsistent changelog indentation 2012-04-30 09:12:00 +00:00
Fabian Müller
d47748c915 Fixed the spelling in a comment. 2012-04-30 01:26:37 +00:00
Mark de Wever
8a3a435432 Add the description of the addon in the list.
The description needs some polishing to look properly.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:53 +00:00
Mark de Wever
0003120434 Add filtering to the pane.
Using a functor items can be shown or hidden.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:50 +00:00
Mark de Wever
c21bf34175 Add a place routine for the pane's children.
This version uses the visible state to determine whether or not to place
a grid.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:47 +00:00
Mark de Wever
8637f7edbd Add a NOTIFY_MODIFIED event for the text.
It fires when the text in the box is modified. Note the implementation
is not tested heavily.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:43 +00:00
Nils Kneuper
2f7383d94b updated Galician and Korean translation 2012-04-29 18:38:36 +00:00
Mark de Wever
5719cee9ba Add a generic sorting template function.
Also remove the sorting code from the addon list and use the new template
function.
2012-04-29 17:10:00 +00:00
Mark de Wever
3abac042d2 Fix a typo in the name of an include guard. 2012-04-29 17:08:00 +00:00
Mark de Wever
76bfba1fa0 Use SI units when displaying the addon size. 2012-04-29 16:51:27 +00:00
Mark de Wever
4d9cd65048 Add the initial pane sorter implementation.
The code can now sort addons on their name and size.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 16:51:22 +00:00
J. Tyne
02f7964a1b Make combined horizontal and vertical flips...
...slightly faster by doing both in one step.
2012-04-29 16:30:01 +00:00
J. Tyne
fff30d6839 Consistent shroud_map values for out-of-range locations.
(Specifically they are always true/shrouded, instead of false if too
high or too far to the left, and true otherwise.)
2012-04-29 16:06:13 +00:00
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