22 Commits

Author SHA1 Message Date
Pentarctagon
5c3188581b
update CI to Ubuntu 24.04 (#9139) 2024-07-28 13:07:59 -05:00
Toom
35e405dde5 Pick Advance: remove irrelevant objects, closes #5707 2024-07-07 13:56:24 +02:00
Toom
1f0ffe0058 Pick Advance: merge moveto event into turn_refresh, closes #8954 2024-07-07 13:56:24 +02:00
Toom
27e5dd50d2 Update all units of type and side after selection with is_game_override 2024-01-14 10:04:31 -06:00
gfgtdf
b5e646db25 Fix out of sync errors with pick advance mod
local lua variables  are not persitent over reloading.
moveto events that change the gamestate cannot be undoable unless on_undo code is provided.
2023-12-16 17:00:17 +01:00
Slayer95
0620822ab2
wmlxgettext: Improve parser resiliency for malformed files (#7625)
* wmlxgettext: Improve parser resiliency for malformed files

- WML files with no translatable strings will no longer
crash the script on unbalanced tags (but translatable will).
- .cfg files belonging to man(1) will no longer crash the script.

* Remove stray quotes from textdomain declarations

These are not recognized by the wmlxgettext parser.
2023-05-17 21:40:36 +02:00
Celtic Minstrel
497e6b7ca6 pick_advance whitespace 2023-05-02 21:04:41 -04:00
Celtic Minstrel
db0ee9f02c pick_advance: Load dialog from separate file so it can be validated 2023-05-02 21:04:41 -04:00
Steve Cotton
e3deff8bfd Make undo work again, undeprecate on_event()
Fixes #6898. The issue is that non-WML events added through the new events API
always disable undo with no equivalent of WML's `[allow_undo]`. The long-term
fix is to add a way to do that; however until that's available then listeners
for `moveto` need to use the old `on_event` API. The old `on_event` API can't
be deprecated yet, and this is enforced by our unit tests (the build fails if
there are unexpected deprecation warnings during the tests).

Reverts most of 7e234f8833282424b3535b9c334c751748f7222b. Does not revert files
that only listen for non-undoable events such as `die` or `new turn`.

Reverts the deprecation part of #5663's 8cd133263058a5df85f64988e348d2cf54d13a48.
2022-11-19 05:23:30 +01:00
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