Commit graph

19991 commits

Author SHA1 Message Date
Chris Beck
9fb47d7f1f negate the output of location_set:empty, fixing logic error and
ensuring that a boolean value is returned
2014-02-16 19:36:09 -05:00
Elias Pschernig
ae3697d4e8 [wesnoth_addon_manager] Also upload sub-sections from the .pbl. 2014-02-16 23:08:26 +01:00
Elias Pschernig
10df18d7cf [wesnoth_addon_manager] Upload everything in the _server.pbl
There was no reason to filter the list of attributes, anything found in the _server.pbl is now also passed on to the addon server.
2014-02-16 21:12:34 +01:00
Nils Kneuper
b609e59a92 updated ingame help screenshots and description of orbs 2014-02-16 13:38:53 +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
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
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
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
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
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
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
Ignacio R. Morelle
29f08abd6f gui2/taddon_description: Let the description area grow horizontally
Let it grow to fill the space available when it's greater than the
description box's requested size (e.g. for very short descriptions).
2014-02-14 05:07:31 -03:00
Ignacio R. Morelle
30200a012c Move rules for trash terrains up to where they belong in terrain-graphics.cfg 2014-02-13 22:57:18 -03:00
Ignacio R. Morelle
a21d13f1f4 Refactored trash terrain gfx macros into a separate file, removed TRI prefix
The macro-less portions of these terrain graphics rules are now the
TRASH_A and LITTER_BASE macros. I tried to the best of my ability to
understand how they are supposed to work together, so this is the naming
scheme and parameter set I found to be the most optimal:

    #define TRASH_A TERRAIN PROB IMAGESTEM
        Covers the first and second rules, which are used on a single
        terrain pattern.
    #define LITTER_BASE TERRAIN IMAGESTEM
        Covers the third rule, which affects both trash terrains.
2014-02-13 22:54:06 -03:00
Ignacio R. Morelle
3486ad75d5 Strip optional whitespace in the test scenario's terrain map 2014-02-13 22:31:33 -03:00
Ignacio R. Morelle
cdaf2b14aa Move data/hardwired/tips.cfg to data/tips.cfg
Since the GUI2 titlescreen took over, the path to tips.cfg is not
hard-coded in the engine anymore; in fact, this commit also updates that
path, which is in data/gui/default.cfg.
2014-02-13 22:28:02 -03:00
mattsc
58185947a2 SotBE S14: minor change to dialog
The tone of the original messages just didn’t fit in with the rest of
the scenario and campaign.
2014-02-13 10:10:20 -08:00
mattsc
b45f6591b2 SotBE S13: balancing adjustments to gold and turn number 2014-02-13 09:42:13 -08:00
mattsc
985ff47602 SotBE S13: take half the villages off the map
This is for balancing reasons, to make the scenario a bit harder and
also to make carry-over smaller and more stable.
2014-02-13 09:42:13 -08:00
Ignacio R. Morelle
e4bed0ce96 gui2/twml_error: Add a button to copy the WML error report to clipboard 2014-02-13 06:24:03 -03:00
Ignacio R. Morelle
798c7402f1 gui2/twml_error: Add a post_summary field for advice on reporting add-on errors 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
9eeab249d1 gui2/twml_error: Limit maximum dialog size to 600x600 for readability 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
2659dfcb9d gui2/twml_error: Use the description scroll_label variant for the report 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
458b36d007 gui2/twml_error: Handle an optional list of faulty files separately
This allows us to be more self-contained and require less logic in the
instantiation site for preparing the report for display.

This requires adding a new row and label for displaying the list of
faulty files, which will be hidden when the list is empty or not
provided in the display() static member function.
2014-02-13 06:23:46 -03:00
Ignacio R. Morelle
d5a34a1460 gui2/twml_error: New GUI2 dialog to be used for WML parser/pp errors
This dialog features separate summary and detail sections along with a
small heading for the latter in bold face. More features may be added
later as part of my work on improving WML diagnostics, but for now we
have the bare minimum for better message formatting with a content
structure more or less identical to the current one.
2014-02-12 04:16:57 -03:00
Ignacio R. Morelle
a30c50d567 gui2/tlabel: Add 'default_bold' variant for text in bold 2014-02-12 04:16:56 -03:00
mattsc
77d258474e Hang Out MAI: use [ai][avoid] if [micro_ai][avoid] is not given
The scenario author now has the option to use either the default AI
[avoid] tag or a specialized [avoid] tag inside the [micro_ai] tag.  If
neither is given, the default remains all castle terrain.
2014-02-11 14:00:21 -08:00
ln-zookeeper
5cffc26832 Removed ~RIGHT from Delfador's portraits. 2014-02-11 10:51:55 +02:00
ln-zookeeper
9f27fad78f More tweaks to use of HttT portrait variations. 2014-02-11 10:44:15 +02:00
ln-zookeeper
a81dfaea0c Tweaks to the use of HttT portrait variations. 2014-02-11 10:35:43 +02:00
Ignacio R. Morelle
5293851c8e HttT S17: Use [note] for the scenario objective note 2014-02-11 04:34:33 -03:00
Ignacio R. Morelle
cd5974f5ec HttT S15: Try to spawn Burlin on a location that's not water 2014-02-11 04:34:33 -03:00
mattsc
9b8d8711b2 HttT S15: prevent non-player sides from triggering sighted events
If [filter_second] is not given, sighted events are now triggered by
_any_ side.  We need to figure out whether this is a bug or intended
behavior.  If the latter, all sighted events in mainline campaigns need
to be checked.
2014-02-10 15:34:10 -08:00
GunChleoc
8bdc96ecbb Merge branch 'master' of https://github.com/wesnoth/wesnoth-old.git 2014-02-10 12:58:20 +00:00
Ignacio R. Morelle
b488db4bc3 HttT scenario 4: Use find_vacant=yes to unstore Delfador at the end
Fixes the somewhat unlikely situation of him clobbering whichever unit
happens to be standing on 31,11 and causing it to disappear from the
game forever (especially bad if it's a player unit).

This commit is dedicated to my loyal Knight Haldiel, who became victim
to this oversight.
2014-02-08 23:53:30 -03:00
Mark de Wever
5da495122a Add a new GUI2 tooltip.
The placement of tooltip is controlled by the WML of the GUI engine. The
code is not used yet, only available with a proof-of-concept define named
DEBUG_TOOLTIP.
2014-02-08 21:13:08 +01:00