75777 Commits

Author SHA1 Message Date
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
Celtic Minstrel
36dc3200c5 Lua: Flip functions moved to the wml module
This means that they are now added to the WML module by default in C++, and only duplicated to the Wesnoth module in Lua.
2019-11-13 00:40:29 -05:00
Celtic Minstrel
4f33470ada Why was an implementation detail function left public? 2019-11-13 00:26:58 -05:00
Celtic Minstrel
c602110e72 Support [variables] in [modify_side]
This allows merging in changes to side variables and may alleviate the lack of [set_variables] support for side variables
2019-11-13 00:22:50 -05:00
Iris Morelle
d17938d9ca gui1: Implement I-beam cursor for GUI1 textboxes 2019-11-13 01:44:26 -03:00
Iris Morelle
c31047af47 Set the I-beam cursor's hotspot properly
Otherwise it's a bit awkward to use and the selection ends up in the
wrong place.
2019-11-13 01:44:26 -03:00
Celtic Minstrel
5fc6360488 Revert "Blacklist core data directory for wml.load() - fixes #4302"
This reverts commit ddffc1a4fdabeeec13ee51f9f469563c8ff17ebb due to feedback from @shikadiqueen
Instead see #4564
2019-11-12 23:27:36 -05:00
Celtic Minstrel
ddffc1a4fd Blacklist core data directory for wml.load() - fixes #4302 2019-11-12 23:03:55 -05:00
Celtic Minstrel
f2f9bc5d80 Add more Lua functions for working with WML values 2019-11-12 23:03:55 -05:00
Celtic Minstrel
8374306009 Add six more known attributes to the [modify_unit] optimized path 2019-11-12 23:03:55 -05:00
Iris Morelle
fc04268aa4 Don't forcefully disable colour cursors
Oopsie-daisy.
2019-11-13 00:06:04 -03:00
Iris Morelle
d7f2595393 gui2/text_box: Implement I-beam cursor
This cursor is active when the widget has the mouse focus. You know,
like textboxes are wont to do anywhere else. Took long enough, although
there was an interaction issue with tooltips fixed in the previous
commit.

I still need to figure out how to make this work with GUI1 textboxes
(e.g. in-game console).

The colour version of the cursor was kindly provided by LordBob, and the
B&W version is my own.
2019-11-13 00:03:38 -03:00
Iris Morelle
47ddf8877f gui2: Delegate mouse cursor reset to modal dialogs
Currently it's the gui2::window class' responsibility, by inheriting
from cursor::setter (yes) and offering absolutely no way to control it.
Unfortunately, it turns out that this can cause issues with tooltips
resetting the cursor at unexpected times when they get
displayed/hidden while having widgets change the cursor depending on
whether they have the mouse focus or not.

Right now the only modeless dialog we have is the tooltip dialog, and
really there's no reason to say that modeless dialogs should have the
ability to reset the cursor without explicitly asking for it. As for
modal dialogs... I don't entirely agree that they should do it either,
but for tradition's sake, let's just keep the current behaviour with
them.

(In an ideal world the cursor business would be managed by the window
managaer IMO, but I'm not ready to argue my case.)
2019-11-13 00:02:57 -03:00
nemaara
14c91f6e99 DiD: upscale dela's base portrait 2019-11-12 21:58:27 -05:00
nemaara
a60f8c78c8 Add DiD update to changelog 2019-11-12 21:15:14 -05:00