75748 Commits

Author SHA1 Message Date
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
nemaara
72aacbe807 DiD: use new dela portrait 2019-11-12 21:14:21 -05:00
Elvish_Hunter
3f41184f4d UtBS: fixed several wmllint warnings
This fixed part of the warning listed in #4494 and part of #4381
2019-11-12 21:40:40 +01:00
pentarctagon
a247dc56fb
Update changelog for Private Replay MP toggle. 2019-11-12 13:33:19 -06:00
Iris Morelle
6e0b39f329 gui2/campaign_selection: Consider untranslated search terms
As I said in 739e2608db6b312a8e78b830e820a7970b52782c, the abbreviations
and names of campaigns in English tend to be better known by the
community, so they are also useful to consider when searching through
the list.

The description's untranslated version is also included in this even
though descriptions are longer and a bit more expensive to sift through.
It may still come in handy in cases where proper names get inflected or
transliterated I guess.
2019-11-12 16:21:59 -03:00
nemaara
15b2995c30 Revert "Steelclad: modify description"
This reverts commit 97a0d0f8d97c2076eb730ba81e2a209f018b1ea6.
2019-11-12 13:15:25 -05:00
nemaara
b27ab96bac Update dwarf changes to use correct format 2019-11-12 13:06:54 -05:00
nemaara
eb08be4e81 Update changelog with dwarf L2 rebalance 2019-11-12 13:00:34 -05:00
nemaara
6ee4f91a0a
Merge pull request #4544 from nemaara/dwarf_buffs
[Dwarves] Buff some level 2 units
2019-11-12 12:58:42 -05:00
Celtic Minstrel
9a6953d2de Accept heal_full in [effect]apply_to=variation
I thought this had been done in 217992a843f1ca9fc62eda02d0e376619ab786f7 but it turns out that was in the rejected version of the commit and didn't find its way into the final version.
Instead of reverting the schema and changelog mentions of it, I've just added the feature.
2019-11-12 08:02:16 -05:00
Celtic Minstrel
04207cc723 Update changelog
Oops! Forgot to add this to the commit!

[ci skip]
2019-11-11 23:52:37 -05:00
Celtic Minstrel
f1675f7bdd
Why the heck did no-one create a feature request template already!? 2019-11-11 22:33:35 -05:00
Celtic Minstrel
f6b6854c8d Support [set/clear_variable] inside [modify_unit/side] 2019-11-11 22:29:26 -05:00
pentarctagon
6371f0497c Add a separate toggle for if a replay should be public.
This makes it possible for a game to allow observers but have the replay not be public.
2019-11-11 18:13:51 -06:00
newfrenchy83
fdf98757e3 Schema: attempt to fix specials used as abilities 2019-11-11 17:19:13 +11:00
Iris Morelle
3beefca899 gui2/text_box: Add hover effect
This gives GUI2 textboxes (and password boxes since they are a subclass)
a simple hover effect by extending the canvas definitions for the widget
accordingly.
2019-11-11 17:16:39 +11:00
Iris Morelle
f4ca974cd1 Disambiguate uses of the Play button label
This extends to a few other button labels used for replay control. While
checking if commit 46dbbc06c967bfc8ee5acb6525e1f1bd96b53005 was fit for
backporting to 1.14 I found out that "Play" was already in use
exclusively for one of the replay control buttons (which means, no, it
can't be backported). This makes the disambiguation markers absolutely
necessary.

To give a more practical example of why this is a big deal, in Spanish,
"Play" would be translated as "Jugar" in the context of the Campaigns
menu, and "Reproducir" in the context of a replay (or movie). The
Spanish translation in fact already uses the latter in both 1.14 and
master.

[ci skip]
2019-11-10 23:43:05 -03:00
Iris Morelle
845a45da32 gui2/game_version: Increase maximum dialog height
I can see this dialog running out of vertical space on my Wine
configuration and winding up a victim of the dreaded Dialog-Wide
Scrollbar Syndrome.

[ci skip]
2019-11-10 23:43:05 -03:00
doofus-01
3995752782
Update Changelog 2019-11-10 15:55:53 -08:00
Celtic Minstrel
bbebd1eb91 Update schema and changelog 2019-11-10 17:22:04 -05:00
Celtic Minstrel
4db2d36af2 Fix [modify_unit] 2019-11-10 17:20:37 -05:00
doofus-01
212e802d7a
revisions to mushroom terrain graphics (#4525)
* revisions to mushroom terrain graphics to fix #4453

* make ^Tf overlay better mesh with water

* some touch-ups and more variety

* add some texture to base mushrooms
2019-11-10 13:34:30 -08:00
doofus-01
98b97eddbc
Addition of new stone wall terrain variation: "Xot" catacombs (#4527)
* new stone wall terrain variation -> catacombs

* Xot catacombs wall touchup and Efs flames overlay variation (candle)

* minor variations of walls can be spaced every other SE/SW facing panel

* make flames/torches overlay more responsive to type of wall variants if they are mixed

* Xot^Edb can now put skeletons in the SE/SW catacomb holes
2019-11-10 13:23:48 -08:00
Celtic Minstrel
bb351d431e Update changelog 2019-11-10 14:50:35 -05:00
Celtic Minstrel
217992a843 Fix bug: a modification set to change both type and variation would not work correctly 2019-11-10 14:49:33 -05:00
Celtic Minstrel
f765e0b862 [modify_unit]: support variation in the optimized path 2019-11-10 14:23:34 -05:00
Celtic Minstrel
595d102a23 Lua: Add optional variation parameter to unit:transform() 2019-11-10 14:17:57 -05:00
Celtic Minstrel
818aabdbc5 Don't duplicate the split function logic in [modify_unit] 2019-11-10 13:26:24 -05:00
Elvish_Hunter
f0bdd01918 help.cfg: fixed wmllint warnings about translation marks
Fixes some of the warnings listed in #4494
2019-11-10 15:45:04 +01:00
Nils Kneuper
a5892c1ec0 updated Russian translation 2019-11-10 10:54:58 +01:00