55640 Commits

Author SHA1 Message Date
Nils Kneuper
93ef14dc3e updated screenshots for manual, part2
* created new screenshots
* wired in screenshots in manual.txt
* updated README to reflect latest version
2014-02-16 13:46:00 +01:00
Nils Kneuper
ff7547cc11 updates of ingame manual, part 1
* removed undergound illuminated image since it is not described in the
text
* updated description for orbs
* updated screenshots for orbs
2014-02-16 13:41:42 +01:00
Nils Kneuper
b609e59a92 updated ingame help screenshots and description of orbs 2014-02-16 13:38:53 +01:00
Ignacio R. Morelle
f29d8cf1a2 preprocessor: Don't indent the immediate location of a preprocessor error
Reverts the second portion of 95bcf34133e84d1333301d81b640f447553f6820
in a way (we still want it on a new line) for consistency with commit
996b31def547be7a093b699ec84c0581208308b9.
2014-02-16 07:53:08 -03:00
Ignacio R. Morelle
996b31def5 parser: parser::error() now takes the position message format as an argument
The optional argument allows us to specify a nicer and more relevant
position message format for the two parser errors that involve more than
one file location: missing closing tags (expected location and opening
location) and invalid closing tags (opening location and (invalid)
closing location).

This makes it easier to tell what's going on even when confronted with a
kilometric preprocessor brace-substitution trail, e.g:

> Found invalid closing tag [/tag2] for tag [tag1]
> Opened at ~add-ons/My_Add-on/scenarios/24.cfg:1090
>     included from ~add-ons/My_Add-on/scenarios/24.cfg:120
>     included from ~add-ons/My_Add-on/_main.cfg:42
>     [...]
> Closed at ~add-ons/My_Add-on/scenarios/24.cfg:1098
>     included from ~add-ons/My_Add-on/scenarios/24.cfg:120
>     included from ~add-ons/My_Add-on/_main.cfg:42
>     [...]

Some day we will be able to make it easier to handle these situations by
ensuring the trail format is concise and relevant, but that day will not
come before 1.13.0. Messing further with the main ::lineno_string()
function (in preprocessor.cpp) would be risky at this point with 1.12.0
approaching.
2014-02-16 07:46:44 -03:00
Ignacio R. Morelle
6eb2e7346c parser: Refactor to pass translated STL strings to parser::lineno_string()
Passing translated strings instead of translatable strings makes a bunch
of things easier:

 * We don't need to worry about forgetting to call gettext _() in
   lineno_string() (which, as a matter of fact, I forgot to do for
   hint_string, oops)
 * We can append and preprend stuff to the *translated* strings before
   passing to lineno_string() without breaking localization! Woo!

Using STL strings instead of C strings also makes things easier and
prettier. The negligible performance impact shouldn't be a concern here
because landing in parser::lineno_string() or parser::error() is a
worst-case situation since it only happens when the parser encounters an
error and cannot continue.

Also, parser::lineno_string() now takes an optional fifth argument
with the tokenizer state message to append to the end of the full
message and trail. We need that for the next commit.
2014-02-16 07:46:44 -03:00
Chusslove Illich (Часлав Илић)
ba30b70fbe Updated l10n-track. 2014-02-16 11:33:20 +01:00
Ignacio R. Morelle
8afb87e58b parser: Refactor the migraine-inducing parser::error() implementation a bit
Reading so many parentheses and string literals in the same expression
is killing my brain and I'm not done with this code yet.
2014-02-16 06:54:25 -03:00
Nils Kneuper
9b36ef3207 fix the issue with cmake adding -NDEBUG 2014-02-16 10:45:08 +01:00
Ignacio R. Morelle
4f243644cb Update utils::indent()'s documentation for factual accuracy 2014-02-16 05:58:02 -03:00
Ignacio R. Morelle
dd9b53f0de Return the indentation unit instead of an empty string with indent("",n) 2014-02-16 04:23:19 -03:00
Ignacio R. Morelle
f229367ca1 Return a copy of the original string with indent(str,0) instead of an empty one 2014-02-16 04:21:56 -03:00
Ignacio R. Morelle
ca7bac5f4f parser: Cleaner display of the tokenizer state on errors with DEBUG 2014-02-16 01:47:51 -03:00
Ignacio R. Morelle
2734999839 loadscreen: Update magic numbers 2014-02-16 01:12:35 -03:00
Alexander van Gessel
3473592e0c Merge branch 'bug21358' (PR #95) of github.com:sachith500/wesnoth-old 2014-02-16 05:04:55 +01:00
Alexander van Gessel
3d10304490 Merge pull request #96 from cbeck88/lua-get-era
add mp-only lua proxy for the current era
2014-02-16 05:01:30 +01:00
mattsc
bb977a5609 SotBE S16: balancing adjustments to turns and gold 2014-02-15 18:22:42 -08:00
mattsc
21565f63fa SotBE S16: map changes for balancing purposes
As in previous scenarios, taking villages off the map.
2014-02-15 18:22:42 -08:00
Ignacio R. Morelle
304af6bb09 editor: Use "Identifier:" instead of "ID" for the label for gui2::tedit_text 2014-02-15 22:28:45 -03:00
Ignacio R. Morelle
9edee42b7e gui2/teditor_edit_side: Let the team id/name input boxes grow horizontally 2014-02-15 22:28:17 -03:00
Ignacio R. Morelle
ebc214ff12 gui2/ttext_box: Use standard GUI__BACKGROUND_COLOR_* background colors
Note that this widget lacked a background before, making it look like
a simple label with a border and caret. In my opinion, the subtle
background is an improvement that highlights the widget's "dynamicness",
and makes it more obvious when it is disabled.
2014-02-15 22:21:42 -03:00
Ignacio R. Morelle
ecf62cdaf2 gui2/ttoggle_button et al: Make GUI__BACKGROUND_COLOR_DISABLED transparent
Affects ttoggle_button "listbox_text" and "listbox_text_with_icon", and
ttoggle_panel.
2014-02-15 22:15:22 -03:00
Ignacio R. Morelle
a4340c9375 gui2/tchat_log: Use GUI_FORCE_WIDGET_MINIMUM_SIZE macro instead of local hack
Turns out there already was a somewhat more elegant solution in use for
the GUI2 lobby and macroified for everyone else. It uses a
stacked_widget with a spacer within instead of the awkward 2x2
{[central widget,spacer],[spacer,spacer]} grid we were using here.
2014-02-15 21:58:04 -03:00
Ignacio R. Morelle
393ebb447c gui2/tprogress_bar: Use same background as listbox (children) widgets
Replaces the solid RGB background with the generic RGBA background
defined in GUI__BACKGROUND_COLOR_ENABLED.
2014-02-15 21:54:36 -03:00
Ignacio R. Morelle
c054a5e89a gui1: Reduce menu column text padding to 2px, use only on headers 2014-02-15 21:54:00 -03:00
Ignacio R. Morelle
f8f9338d55 gui1: Highlight currently-sorted column header even when not hovered 2014-02-15 21:38:56 -03:00
Ignacio R. Morelle
89f612a5ff gui1: Add some horizontal padding to menu header column text and sort indicator
Otherwise they are drawn on the very edge of the column, which isn't
nice.
2014-02-15 21:37:21 -03:00
Ignacio R. Morelle
e992f4eb84 gui2/ttoggle_button et al: Use transparent color background to match GUI1
Replace the definition of GUI__BACKGROUND_COLOR_ENABLED (used by the
"listbox_text" and "listbox_text_with_icon" variations of
ttoggle_button, and the default ttoggle_panel variation) so that it
matches the gui::menu::bluebg_style GUI1 menu style definition in
src/widgets/menu_style.cpp:29.

These controls are commonly used with gui2::tlistbox, so this change is
intended to make GUI2 listboxes in general have the same overall
appearance as GUI1 menus after the dialog background graphics were
replaced as part of the UI overhaul in 1.11.x.

The previous background definition for these GUI2 widgets was a solid
color, rgb(21, 19, 19), meaning that they necessarily wouldn't match
the standard bluebg_style GUI1 menu style, which uses rgba(0, 0, 0,
0.35).

Alpha 255 * 0.35 = 89.25, hence the new definition of
GUI__BACKGROUND_COLOR_ENABLED has an alpha channel value of 89 and not a
multiply of 10 or 2 like 90.
2014-02-15 19:38:35 -03:00
Mark de Wever
a6a12c9f1f Add a work-around for a blurring issue.
When pressing the next or previous tip button there is a drawing glitch.
As soon as the mouse pointer leaves the button area the glitch
disappears. For now force an update directly after the button is
pressed. This is not particularly elegant, but it works. The SDL2
transition will probably fix this issue automatically.
2014-02-15 21:53:17 +01:00
Mark de Wever
3c9f91a8af Enables blurring in the title screen.
Shadowm figured out why blurring didn't work properly in the title screen
and created a proof-of-concept patch. This patch is heavily based upon
that patch.
2014-02-15 18:55:13 +01:00
Mark de Wever
56b18db1fc Merge branch 'bug_21584'
Fixes bug #21584.
2014-02-15 17:13:13 +01:00
Mark de Wever
136f38c642 Properly redraw the minimap upon resizing.
When the main screen and in turn caused the minimap to resize this change
was not propagated to the minimap until one of the minimap view buttons
was pressed.

This fixes a part of bug #21584.
2014-02-15 17:06:08 +01:00
Mark de Wever
e6df6f7b87 Disallow change and remove sections without an id.
This change to the ThemeWML will avoid the offmap drawing issues due to
accidentaly changing or removing the main_map_border section from a
resolution. If it is really wanted it is possible to add an id to this
section, the game doesn't use it, but inheritance uses the raw config.

This fix rewrites the expand_partialresolution, adding the check and
making the code easier to follow.

This should avoid bugs like bug #21584.
2014-02-15 17:02:17 +01:00
Andrius Silinskas
f16c90be76 Translatable MP game types (MP Create).
Fixes bug #21574.
2014-02-15 15:37:48 +00:00
Mark de Wever
9bcfeffc42 Fix drawing the offmap area for small resolutions.
The problem was a bit tricky. A partial resolution removed an element with
an empty id. The main_map_border section has no id and thus an empty id.
So the inheritance removed this section by accident. Of course the id for
a removal or change should be mandatory, which the next patch will do.

This fixes a part of bug #21584.
2014-02-15 09:20:33 +01:00
Sachith Hasaranga Seneviratne
e5193966b4 Fixed bug#21358: Dead links in help for unit variations
The ".." in the unit reference for new soulless/walking corpses was not being added by the code.

https://gna.org/bugs/index.php?21358
2014-02-15 11:56:27 +05:30
mattsc
8b6b33a27f SotBE S16: rearrange some messages in opening dialog
No new messages, just a slightly different order.  The dialog flows
better that way, IMO.
2014-02-14 17:20:27 -08:00
mattsc
bbb2059b6a SotBE S15: balancing adjustments to turns and gold 2014-02-14 17:20:27 -08:00
mattsc
ad80628e3e SotBE S15: map changes for balancing
Taking a number of villages off the map.
2014-02-14 17:20:27 -08:00
David Mikos
60fe06b02e AnimationWML: add warning for mismatched leading zero paddings in square bracket expansions. 2014-02-15 08:16:41 +10:30
Mark de Wever
8a1ff1eca2 Adds -Wold-style-cast to the CMake strict flags. 2014-02-14 21:42:48 +01:00
Mark de Wever
0504f6c2ea Remove a no longer existing Doxygen param. 2014-02-14 20:49:18 +01:00
mattsc
4980d5f1ca EI S8 (Training the Ogres): add custom AI for the ogres 2014-02-14 10:12:43 -08:00
ln-zookeeper
d4d9960996 Fixed some screwups 2014-02-14 19:59:53 +02:00
ln-zookeeper
31ccbaf6e2 Rewrote 'Training the Ogres' 2014-02-14 19:03:49 +02:00
mattsc
69b3fe4728 SotBE S14: balancing adjustments to turns, gold, income 2014-02-14 08:30:13 -08:00
mattsc
a830516910 SotBE S14: map changes for rebalancing
Take about 40% of the villages off the map and change the paths in the
southeastern part of the map a little.  The latter is done so that the
eastern enemy focuses more on Kapou’e rather than the southeastern
ally, making the AI leader surviving less dependent on luck.
2014-02-14 08:30:13 -08:00
Ignacio R. Morelle
b0950f006c gui2/tchat_log: Hack to set a minimum cell size to 200x250
Because this window many contain a lot of text in both directions,
having it change size dynamically every time the log page is switched or
a new text filter is entered can be extremely annoying for the player.

Setting the scroll_label's parent (now ancestor) cell's minimum size to
something that isn't 0x0 mitigates the issue to some extent. Better than
nothing, I guess.

(Tested with a screen resolution of 800x480.)
2014-02-14 06:13:03 -03:00
Ignacio R. Morelle
1cdc5df63d gui2/tchat_log: Let the log scroll_label grow horizontally 2014-02-14 05:22:10 -03:00
Ignacio R. Morelle
b11bd24711 gui2/tchat_log: Use 'description' scroll_label type for the log 2014-02-14 05:21:52 -03:00