75791 Commits

Author SHA1 Message Date
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
Steve Cotton
3a8dc9c361 trackplacer3 a utility to export and import tmx files (#4365)
The python2 trackplacer included both the handling of the file format, and the
GUI application. This trackplacer3 is a library for the file format, without
the GUI.

The new tmx_trackplacer is a command-line tool for exporting the data to
Tiled's .tmx format, and re-importing it back to .cfg files, so that the GUI of
Tiled can be used to avoid reimplementing the GUI of Trackplacer in Python 3.

The implementation uses Tiled's Object Layers (not Tile Layers).  This allows
additional journey markers to be added with the "Insert Tile" tool, and
additional journeys to be added as new layers.

It can also read in a .cfg and then re-export it to a new .cfg file, to see if
the data is preserved. The format is chosen by the output filename.

The old trackplacer2 isn't removed in this commit - before removing it, I think
trackplacer3 needs some way to preview the animation.

----- Comments on the mainline campaigns: -----

AToTB, DM, LoW, NR and THoT will work with this. But:

Northern Rebirth's bigmap.cfg has a track RECOVERY whose STAGE1 starts with
an OLD_REST - that isn't handled by trackplacer, it must have been hand-edited.
That OLD_REST will be lost when read by either trackplacer2 or trackplacer3,
similarly the OLD_BATTLE of LoW's SAURIANS track will be lost.

Delfador's Memoirs SEARCH_STAGE1 is omitted from all subsequent parts of
SEARCH. Also in DM, SEARCH_STAGE3 has a point which is then moved in STAGE4
onwards - I guess a hand edit. Both of this will be overwritten if the file
is edited with either this tool or with the python2 trackplacer.

SotA's journey_chapter*.cfg files and WoV's bigmap.cfg file have some of the
trackplacer comments removed, they won't be handled by this tool, at least not
until better error handling is added.
2019-11-14 13:43:25 +01:00
pentarctagon
a8a5812928 Move travis' dockerfiles to common directory. 2019-11-13 19:48:14 -06:00
Steve Cotton
4c48defdd0 Remove journeylifter from data/tools/README.md
Of the removed tools, it's the only one listed in this readme. The removal
was b8965178348fab03718fb4b7fb798e8427d7cbb9.
2019-11-14 01:11:16 +01:00
Elvish_Hunter
6ec75e9d54 wmllint: ignore id= keys in [candidate_action]
Fixes the TB warning listed in #4494
2019-11-13 22:31:28 +01:00
Elvish_Hunter
83ce0480c7 wmllint: don't consider [special_note] tags, only NOTE macros
Fixes the warnings for Swordsman and Royal Guard units listed in #4494
2019-11-13 22:17:48 +01:00
Celtic Minstrel
fda3c9af75 [modify_unit]: fix handling of unrenamable in the optimized path 2019-11-13 07:39:20 -05:00
Celtic Minstrel
51d6402453 Add [modify_unit]rebuild=no 2019-11-13 01:00:36 -05:00
Celtic Minstrel
06a3799b46 Add handling of [modify_unit][effect] on the optimized path 2019-11-13 00:53:19 -05:00
Celtic Minstrel
1ac4cb4f5a Lua: Replace uses of deprecated (moved) GUI2 functions 2019-11-13 00:51:26 -05:00
Celtic Minstrel
7e6c173b0a Replace instances of deprecated get/set_variable 2019-11-13 00:46:03 -05:00