This returns a label handle which allows you to remove, reposition, or replace the label later.
In addition to all the features of wesnoth.print, you can now specify where the label appears onscreen, as well as a fadeout time separate from the duration.
You can also anchor the text to an edge or corner instead of centering in on the screen,
specify the maximum width it can occupy as an absolute width or a percentage,
and specify a background colour and transparency.
It includes a demo scenario that demonstrates many of the capabilities of the API.
To play the demo scenario, run with -toverlay_text_demo or select it from the in-game test list.
Sadly, this takes the campaign up to 100 string changes between 1.16.2 and
1.16.3. The only one of these that was already going to change for 1.16.3 is
S04t's volcanic forge one.
(cherry picked from commit a1e60f061d)
Justification: ally_name variable actually holds the ID attribute of the unit, not the name attribute.
This change was originally included in #6165, which has since been reverted, so reinstating the variable renaming here.
The particular discussion which led to this reversion relates to the Czech translation.
Revert "Refactor handling of allies in UtBS. Resolves #6158."
Revert "Add po hints where self-referential troll names have been replaced with variables."
This reverts commit 541f0a1e73.
This reverts commit 4a3ddfb143.
I don't like the explanation of the tools being made of unobtainium, so changed
it to use a convenient plot device. I think this also solves a plot hole about
the forge; instead of it being near the Shorbear Caves by random chance, this
gives a reason for the Shorbear Clan to live there (even if they haven't been
in there in living memory).
The whitespace-fixing script seems to be slightly different depending on the platform.
Even though it produces no effect in the CI, it made these changes locally on my Mac.
I'm committing them now so as to avoid unrelated files being changed in other pull requests.
Arguably, references to generic sceptres, as is the case with references to the Sceptre of Fire before its completion throughout the rest of this campaign, ought to use the default US English spelling of 'scepter'. This was the case in The Rise of Wesnoth where Haldric quips that the Ruby of Fire should be made into a 'scepter'.
[ci skip]
* SoF Proofread Pass and Campaign Prose edits
This is a proofread pass. But this also has edits that are more than just minor edits which try to improve the campaign text.
commit
* SoF Proofread Second Draft
This is a changelog relative to the first draft:
- Fixed up "nor" in S1.
- reverted the ellipsis I added to indicate pause in story part of S2.
- Reworded my edit in S3 to be closer to the original.
- Followed Wedge's suggestion for S4.
- S5: Exchanged Shorbear dwarves and elves, removed introductory clause in ln 560, rewording in ln 592.
- Reverted my edit in S6.
- in S8, converted comma into ellipsis to indicate pause.
- S9: Reworded exposition of Thursagan, changed wording in ln1221, changed a period to a semi-colon.
* SoF Proofread Third Draft
* Update 4t_The_Jeweler.cfg
* Update 1_A_Bargain_is_Struck.cfg
removed a comma
* Update 1_A_Bargain_is_Struck.cfg
* More prose edits (SoF)
* Update 4t_The_Jeweler.cfg
* SoF Proofread Pass edits
* Capitalize Sceptre
* S5 and S9 small dialog change
* S6 change semicolon to period
* S9 change semicolon to exclamation