75801 Commits

Author SHA1 Message Date
nemaara
c98dd7bad3 DiD S9: reduce boss difficulty 2019-11-17 15:00:34 -05:00
Celtic Minstrel
981fa93a40 Make ilua output iterable userdata as tables
This means anything with __len and __pairs metamethods.
2019-11-17 14:23:59 -05:00
Celtic Minstrel
ece5490fd9 Improve ilua's table output for tables that have both an array part and additional keys
Previously for such tables it would just show the array part and ignore the rest.
2019-11-17 14:23:59 -05:00
Celtic Minstrel
61d0da9c84 Add __tostring metamethods to textdomains, races, unit types, weapons, and sides 2019-11-17 14:23:59 -05:00
Celtic Minstrel
d53ac4b496 Fix ilua not honouring __tostring functions for tables
This gives ilua full access to the debug module so that it can determine whether the table's metatable contains __tostring
2019-11-17 14:23:59 -05:00
Celtic Minstrel
12bb52fd4e Warn if trying to deprecate a table whose metatable is masked 2019-11-17 14:23:58 -05:00
nemaara
cd7160e8f7 DiD: reduce Mal Keshar base exp 2019-11-17 14:09:13 -05:00
pentarctagon
ed7cd5b78b
Remove the labeler workflow.
It's not actually doing anything currently besides making it look like at first glance that every commit to master has some kind of error.
2019-11-17 11:51:23 -06:00
Celtic Minstrel
212a91113c Convert wesnoth.sides to a module and move several functions to it
The old names still work but are deprecated.

In addition, all the moved functions now accept either a side number or a side userdata as the first parameter.
2019-11-17 11:35:56 -05:00
Nils Kneuper
7f785de4eb updated Portuguese (Brazil) translation 2019-11-17 11:35:27 +01:00
Iris Morelle
6ac5044e8a Update changelog
[ci skip]
2019-11-17 01:49:15 -03:00
Iris Morelle
34d45d3ee5 gui2/network_transmission: Modernize appearance
Following the previous commit altering the progress bar's styling, we
now rearrange the dialog to completely eliminate visual gaps during
add-ons server connection by having the status display share a row with
the Cancel button so as to not force extreme layout recalculations. The
status display is also smaller corresponding with its lesser importance
compared to the progress bar itself, which has now become the absolute
centerpiece of the dialog by taking up almost all of its horizontal
space even when the descriptive text is short.

There's an engine change in this, recommended by Vultraz to avoid
recalculating the UI unnecessarily during network transfers. It
necessitates a minor hack in the WML to ensure that the status label has
a non-0 initial size, but it's nothing too major.
2019-11-17 01:49:15 -03:00
Iris Morelle
335e5ccdf3 gui2/progress_bar: Modernize appearance
The old design was heavily based on the old GUI0 loadscreen, inheriting
the weird blocky 3D shading effect reminiscent of the old Windows 9x
times. This makes it look very obviously out of place with the current
Wesnoth UI look and feel.

We increase the default width of the progress bar to reduce visual gaps
between different phases of the add-ons client's initial connection
sequence, and decrease the height to something that is more in
proportion with the font size without taking up more space than
necessary. The colours are inspired by the current textbox and button
widgets while keeping consistency with the rest of the game's UI.

[ci skip]
2019-11-17 01:49:15 -03:00
Celtic Minstrel
dc0d389a22 Make unit.undead_variation not write-only 2019-11-16 17:57:48 -05:00
Celtic Minstrel
eab3692372 Deprecate unit.petrified 2019-11-16 17:46:28 -05:00
Celtic Minstrel
feeb57934d Allow writing to unit.loc on off-map units 2019-11-16 17:28:39 -05:00
Celtic Minstrel
c27863b6f5 Alias wesnoth.interface.scroll_to_hex to wesnoth.units.scroll_to 2019-11-16 17:12:27 -05:00
Celtic Minstrel
e0cf8c5982 Fix syntax error (trying to write Lua like C++) 2019-11-16 17:01:43 -05:00
nemaara
6f55cd3ba2 DID S6: use alternative objective caption 2019-11-16 16:12:18 -05:00
Elvish_Hunter
42dc95a373 SotBE: fixed wmllint warnings
Fixes a warning listed in #4494 as well as a few more 'unrecognized character' warnings not listed there; it's also part of #4381.
2019-11-16 22:10:33 +01:00
Elvish_Hunter
dd0c14ffdc TRoW: fixed two wmllint warnings listed in #4494
Fixes also part of #4381
2019-11-16 21:52:37 +01:00
nemaara
476a9b084c TSG: remove first time player recommendation 2019-11-16 15:36:13 -05:00
nemaara
8a51becf83 EI: change difficulty rating 2019-11-16 15:29:39 -05:00
nemaara
dd8c2563e9 DiD S8: increase turn limit 2019-11-16 15:17:18 -05:00
Celtic Minstrel
e2af5ac14b Correct an older changelog entry from 1.15.0 2019-11-16 15:14:09 -05:00
Celtic Minstrel
cd6283f8db Add a few more tags to the [modify_unit] optimized path 2019-11-16 15:14:09 -05:00
Celtic Minstrel
1f36590e80 Add a few more attributes to the [modify_unit] optimized path 2019-11-16 15:14:09 -05:00
Celtic Minstrel
2cc7fe6450 Revert "Add [modify_unit]rebuild=no"
This reverts commit 51d6402453db08d3add2cdb571abbf1d60272142.

After discussion with @gfgtdf it was determined that this is not a useful feature after all, since it was in fact the default behaviour for the optimized path.
2019-11-16 15:14:09 -05:00
nemaara
3686dba82c DiD: renumber scenarios 2019-11-16 14:58:44 -05:00
Iris Morelle
393d412b0d ui: Fix untranslated text in Rename Unit
Fixes #4569.
2019-11-16 15:19:07 -03:00
Celtic Minstrel
597ed24170 Remove the helper.deprecate function, which isn't used anywhere 2019-11-16 13:11:58 -05:00
Celtic Minstrel
24b11221cf Use wml.array_variables instead of wml.array_access.get/set 2019-11-16 13:09:04 -05:00
Celtic Minstrel
3cadac1124 Replace a use of deprecated gui functions 2019-11-16 13:03:25 -05:00
Celtic Minstrel
498a3e98c4 Lua: Flip functions moved to the gui module
This means that they are now added to the gui module by default in C++, and only duplicated to the Wesnoth module in Lua.
2019-11-16 12:57:50 -05:00
Celtic Minstrel
0ee05637d9 Lua: Replace uses of deprecated (moved) interface functions 2019-11-16 12:35:20 -05:00
Celtic Minstrel
f016ac7183 Lua: Flip functions moved to the interface module, as well as the theme_items table
This means that they are now added to the interface  module by default in C++, and only duplicated to the Wesnoth module in Lua.

Some additional functions were moved:
- wesnoth.scroll -> wesnoth.interface.scroll
- wesnoth.zoom -> wesnoth.interface.zoom
- wesnoth.get_mouseover_tile -> wesnoth.interface.get_hovered_hex
- wesnoth.color_adjust -> wesnoth.interface.color_adjust
- wesnoth.set_menu_item -> wesnoth.interface.set_menu_item
- wesnoth.clear_menu_item -> wesnoth.interface.clear_menu_item

Added wesnoth.units.get_hovered as an alias of wesnoth.interface.get_displayed_unit
2019-11-16 12:24:31 -05:00
Celtic Minstrel
abe117b08f fixup! Make the attacker argument to wesnoth.units.resistance optional 2019-11-15 23:29:58 -05:00
nemaara
7db49def97 TSG: remove explicit last scenario 2019-11-15 22:42:12 -05:00
Celtic Minstrel
18df2fd910 Make the attacker argument to wesnoth.units.resistance optional 2019-11-15 22:39:09 -05:00
Celtic Minstrel
aaa2dc4ece Rollback possibility of wesnoth.get_units matching recall list units
Now it's renamed to wesnoth.units.find_on_map.

wesnoth.units.find implements the case of finding units on either the map or a recall list.
2019-11-15 22:39:09 -05:00
Celtic Minstrel
6a87f5d48d Remove Lua implementation of wesnoth.units.find_on_recall
Since there's already a native C++ version we might as well just use it.
2019-11-15 22:39:08 -05:00
Celtic Minstrel
977f05d77f Lua: Replace uses of deprecated (moved) unit functions
Also backtracked the removal of wesnoth.get_recall_units, which is now available as wesnoth.units.find_on_recall - it's just more convenient than passing x=recall to wesnoth.units.find
2019-11-15 22:39:08 -05:00
Celtic Minstrel
4dc986f028 Lua: Flip functions moved to the units module
This means that they are now added to the units module by default in C++, and only duplicated to the Wesnoth module in Lua.

Some additional functions were moved:
- wesnoth.create_unit -> wesnoth.units.create
- wesnoth.get_units -> wesnoth.units.find
- wesnoth.get_unit -> wesnoth.units.get

Deprecated wesnoth.get_recall_units in favour of wesnoth.get_units, which has gained the ability to match units on the recall list if x="recall" or y="recall" appears in the filter at toplevel.

The wesnoth.units module now acts like a metatable for unit userdata, meaning that any functions (or attributes) added to the module will be visible through any unit.
2019-11-15 22:39:08 -05:00
Celtic Minstrel
3772e633fa Fix [modify_unit] optimized path producing an error on a recall list unit
Addresses #4556
2019-11-15 22:39:08 -05:00
pentarctagon
9a34cbb329
Add quotes around UID variable.
On my own system, this variable isn't set, which cases the command to fail.
2019-11-15 19:05:23 -06:00
pentarctagon
d83fd5d9c8 Add mingw crosscompile job to travis.
Of note:
* The image now created by Dockerfile-base-mingw is available on wesnoth's Docker Hub.
* Strict building is disabled, as there are a couple warnings that show up when crosscompiling.
2019-11-15 18:54:49 -06:00
Elvish_Hunter
4acb95d557 wmllint: don't warn about missing type= in [side] if there's a [leader] tag inside
Fixes a wmllint warning in TSG, which is listed in #4494
2019-11-15 23:32:56 +01:00
Elvish_Hunter
84100070be TSG: fixed most of the wmllint warnings listed in #4494 2019-11-15 22:12:03 +01:00
Severin Glöckner
5ee5920cbd ANL: remove direct use of overlay, switch to objects 2019-11-14 16:53:37 +01:00
loonycyborg
479278a0d9 Improve dockerbuild scripts
- recreate output dir
- write output at user's uid
- mount /build dir onto tmpfs
2019-11-14 17:33:22 +03:00