13 Commits

Author SHA1 Message Date
Celtic Minstrel
26f977c9b2 PUA: Fix Lua error when a unit is recruited
Fixes #6897
2022-07-26 00:05:29 -04:00
Celtic Minstrel
7e234f8833 Replace deprecated usages of on_event() 2022-07-18 21:56:42 -04:00
Celtic Minstrel
5a1e38e99b
Add wesnoth.sync module for the synchronization-related commands (#5862) 2021-06-19 15:39:10 -04:00
Celtic Minstrel
1dccc3ad76 Update mainline content to use the mathx module 2021-05-08 17:20:49 -04:00
Celtic Minstrel
9d3bf196b0 Update everything to use the new wesnoth.map module
- get_terrain and set_terrain replaced with direct indexing operations
- get_map_size mostly replaced with either the iterator or an on_board call.
  Only a few cases really needed to know the size of the map for some other purpose.
- shroud and fog operations, village owner, time areas, and location filters
- get_terrain_info replaced with terrain_types table
- Map generation functions create_map and create_filter
2021-02-28 18:16:33 -05:00
Celtic Minstrel
54cde58860
pick_advance: Ignore units on the recall list 2021-02-17 09:32:24 -05:00
Celtic Minstrel
174f7365d2 pickadvance: Update deprecated things and other updates
- Use the functional library instead of a hand-rolled filter
- Use stringx.split
- No need for an object ID if using remove_modifications
2021-02-17 00:31:28 -05:00
Iris Morelle
184a154ded pick_advance: Do away with the Reset button and selection status text
This replaces the Reset button with a dedicated listbox entry, and
replaces the selection status text with code that sets the initial
selection for the listbox and an icon that's used to display whether a
selection applies globally or only to the current unit.
2021-02-17 01:08:13 -03:00
Iris Morelle
d69c735b75 pick_advance: Better dialog caption and menu label 2021-02-17 01:04:43 -03:00
Iris Morelle
1530ab8441 pick_advance: Add Cancel button
(CC #5555)
2021-02-16 23:08:38 -03:00
Iris Morelle
a426d9fa5f pick_advance: Use the correct team colour settings
Also removed a listbox selection callback that serves no purpose beyond
re-setting the selection's icon to what it already is. Weird code.

(CC #5555)
2021-02-16 22:54:25 -03:00
Iris Morelle
bb6ef63f0f pick_advance: Bring the UI layout more in line with the game engine
This does alter some of the code significantly to make it less "clever"
(no more dynamic build) but also less hostile to future modifications
like this.

(CC #5555)
2021-02-16 22:54:25 -03:00
Pentarctagon
093db78cc7 Add the Plan Unit Advance modification to mainline. 2021-02-13 19:16:37 -06:00