Commit Graph

19 Commits

Author SHA1 Message Date
Subhraman Sarkar
0302dd8601 tutorial: UI improvements
uses portraits in the character selection and single click selection on pictures instead of buttons
also adds a dark background to hint messages to make them easier to read
adds arrow markers in the beginning on the units
2024-11-02 12:56:29 +05:30
Celtic Minstrel
915fd49ae6 Tutorial: Specify the side of Li'sar in the char select
When a unit data passed to `to_map` either lacks a side or has
side zero, implementation automatically sets it to 1, thus the
existing code worked fine. However:

1. The lack of a `side` could trigger a warning in EmmyLua. It
currently doesn't trigger that, but would with Celtic Minstrel's
planned improvements in Wesnoth's lint hints.

2. The tutorial should be good example code, and the special-case
in the C++ code that made this work is a case of "assume it's a
SP situation, and choose the result that benefits side 1".
2024-02-15 09:57:17 +01:00
Pentarctagon
9bfd432abe Update image pages for webp extension. 2022-04-30 14:23:32 -05:00
Steve Cotton
3d50320369 Tutorial S01: Synchronise the choice of character
This avoids showing the dialog during replays, and thus avoids an
OOS if the person watching the replay chooses the other character.
2021-07-29 01:12:14 +02:00
Celtic Minstrel
cc12e342a0 tutorial: Convert character dialog to WML 2021-03-31 09:43:48 -04:00
Celtic Minstrel
f57217f6c4 Convert uses of deprecated GUI2 API
This covers everything:
- SotA zombie dialog (was mostly converted already, just needed module name update)
- The remaining minor World Conquest dialogs that had yet to be converted
- Tutorial character select
- Test scenario sample dialog

This also replaces any uses of "callback" in favour of "on_xxx".
2020-09-27 16:44:28 -04: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
Severin Glöckner
322afd978a Tutorial: show the female fighteress in the help (if she is chosen)
Uses the workaround mentioned in #3012

[ci skip]

(cherry-picked from commit 18a101be66)
2018-10-07 03:22:24 +00:00
mattsc
1c88a6d8c8 Do not load helper.lua where it is not used any more
(cherry-picked from commit 4b6681a300)
2018-10-07 03:21:10 +00:00
Charles Dang
3783693cbe Campaigns: cleaned up more cases of deprecated Lua API usage
[ci skip]
2018-03-16 11:23:30 +11:00
Charles Dang
b92ee187b8 Cleaned up use of deprecated APIs in campaign Lua
[ci skip]
2018-03-13 08:06:11 +11:00
Celtic Minstrel
ae0ba18f96 Tutorial: Fix flag tooltip reading "Konrad" even when playing as "Li'sar"
Addresses #1175
2018-02-18 12:53:07 -05:00
Celtic Minstrel
8d4cf3cf62 Shorten requires where possible 2017-05-03 02:42:25 -04:00
Severin Glöckner
0d5db80e5b Tutorial adjustments:
Do not show traits in the wiki for Li'sar and Konrad, since they can't get them.
Li'sars new sprite seems to use rather a sword than a saber.
Copied defense animation for Li'sar from HttT.
Changed lua due to deprecation warning.

[ci skip]
2017-03-11 00:00:53 +11:00
ln-zookeeper
adb37f3a53 Updated tutorial with new Li'sar sprite 2016-05-16 16:03:36 +03:00
sigurdfdragon
c970efa6bf T: Make Konrad & Li'sar unnameable. 2016-02-24 15:34:41 -05:00
Charles Dang
d595c97fc0 T: create a new unit object if player chooses Li'sar, so she has correct attacks and animations 2015-03-29 03:38:04 +11:00
Charles Dang
e10dfeb92c T: eliminate the 'gender' variable by using the SUF gender= key 2015-01-03 21:34:36 +11:00
Charles Dang
a50225922c T: converted character selection dialog to a custom GUI2 one 2015-01-03 15:35:46 +11:00