This commit moves [event] to be implemented in lua/wml-tags.lua.
It turns out that because of some questionable ordering in
data/core/_main.cfg, none of the tags defined in
data/lua/wml-tags.lua are actually defined at the time that core
is read, instead they are defined right after this. This is broken,
the entire wml library should be defined before core is read. Thus
we reorder some directives in data/core/_main.cfg to ensure this.
This commit adds lua callbacks `wesnoth.add_event_handler`,
`wesnoth.remove_event_handler` as well.
This reverts commit 5d36e382c7919d25e987abf07c40e42e9b2e909e.
It's been found to cause all kinds of terrain glitches on Windows and
Linux. Please do not try experimental image compression alternatives
without discussing and reviewing first.
- Add an internal command logger to the lua kernel base, and expose
this.
- Redirect the internal lua `print` to the command logger.
- Add an external logger registration system to lua kernel, in
addition to the internal one.
- Add a lua console dialog which binds to a lua kernel base and
permits to review the contents of the logger and issue new commands,
and report errors.
- Add a hotkey binding to launch the lua console "`"
- Adds tab completion support to the lua console
This version of the commit removes the orphaned melee attack animation
frame, which is superseded by a 2-frame set. The 1.12.x version of this
commit keeps the file as a copy of the new melee attack animation frame
for compatibility with existing add-ons.
Animation WML and art reference taken from the existing L3 Lich.
Still not wmllint-clean, mostly because of help markup issues since
there is no wmllint-visible parent [help] tag to skip spellchecking.
(See also bug #22780.)
These towns were misspelled in their encyclopedia entries, compared to
the Wesnoth map. All of the instances in my UMC collection follow the map
spellings, so I am not leaving the incorrect spelling as an alternative.
Also, there were spelling rules for both "Memog" and Melmog on separate
lines. No reason to keep the mistake around.
An autogenerated description of the mixture properties of terrains
can now be found by opening the terrain description -- the help
entry for "terrains" now mentions this and explains how to open it.
This commit fleshes out the help page for terrains. It explains
mixed terrains and the different kinds of behavior they exhibit,
using images to give examples. These images use the same links
used on the terrain type help images.
This help page could be further improved by adding links to
terrain type descriptions in text, and also by fixing the link to
the page about Loyalist Cavalryman which I didn't get to work.