Commit Graph

2462 Commits

Author SHA1 Message Date
Subhraman Sarkar
c3ef8084d5 wesnoth.terrain_types: add mvt_alias and def_alias
these expose `terrain_type::mvt_type()` and ``terrain_type::def_type()` respectively.
(#9969)
2025-03-14 08:55:18 +05:30
Gunter Labes
b2262d9bff
Fix readability of first line of changes 2025-03-10 23:19:24 +01:00
Gunter Labes
49564ed86c
Fix some indentation and make CI abort if wmlindent errors
Indentation was fixed by adding a newline to constructs with excessive density
and running wmlindent again. While the constructs were not particularly
readable it wouldn't hurt if wmlindent would cope a bit better.
2025-03-08 09:48:53 +01:00
Gunter Labes
80f37cf62b
Remove obsolete define
See 5431810b62.
2025-02-25 13:53:16 +01:00
pentarctagon
e8c2d6600b fix python syntax warning 2025-02-17 12:59:36 -06:00
pentarctagon
3b262d6f7b update steam runtime and boost version 2025-02-15 14:47:28 -06:00
Dalas121
6765db5431
DM -> TDG translations cleanup (#9779)
Various minor changes to tools to better-support the addition of TDG.
2025-02-09 07:48:36 -06:00
Subhraman Sarkar
969027b99e Update Android dockerfile 2025-02-08 15:54:31 +05:30
Subhraman Sarkar
b89727851d update android dockerfile
1. Removes installation of dependency libraries via apt, they are downloaded and built from source during build.
2. Sets some environment variables
2025-02-03 09:50:05 -06:00
pentarctagon
7be7792265 add android docker image 2025-02-02 23:06:16 -06:00
Pentarctagon
f5e3ea6f52
flatpak upgrades (#9833)
* added 24.08 runtime to the docker image
* removed 22.08 runtime from the docker image
* updated scons from 3.0.2 to 4.8.1 in the builder json
* updated boost from 1.67 to 1.87 in the builder json
2025-02-01 22:45:30 -06:00
pentarctagon
587a4a341c add python3-requests to docker image 2025-02-01 12:42:50 -06:00
Gunter Labes
e7da2b621a
Add optional date argument 2025-01-30 11:22:58 +01:00
Nils Kneuper
98bac658e2 remove old rule which makes a string in TSG now fuzzy 2025-01-26 12:23:00 +01:00
Steve Cotton
84a05d2269 For translation stats, TSG is now the tutorial
For working out which languages have 80% of core translated, TSG is
now relevant and the old tutorial isn't. This means that the 80%
threshold has increased by around 500 strings.

Add missing changelog entries for 1.19.8 directly to the changelog.
2025-01-24 16:43:08 +01:00
Subhraman Sarkar
5c97754115 lua: expose rich_label link handling mechanism
Adds `on_link_click` setter. The function set to this will be called with the target of the clicked link.
2025-01-23 09:14:54 +05:30
Dalas121
74da2a1724
TDG: add to schema, and fix schema issues (#9786)
While adding TDG to mainline, I missed adding it to the schema. As a result, a lot of issues went unnoticed.

This PR adds TDG to the schema, and fixes the various discovered errors. This PR also updates the schema to reflect the engine supporting multiple [filter] tags in events, and to reflect the engine supporting [change_theme] without keys.
2025-01-21 19:50:18 -06:00
Charles Dang
5dabb53088 GUI2/Units Dialog: simplify header handling
Any column with a sorter will automatically be shown. Also removes the show_header config option from the Lua wrapper.
2025-01-17 22:55:42 -05:00
Dalas121
e4c35031f7
The South Guard: add Dalas's tutorial revision to mainline (#9682)
This PR replaces the current TSG with Dalas's TSG tutorial revision from the addon server.
2025-01-17 08:26:44 -06:00
Celtic Minstrel
2fe080d968 Lua API: Plugins can now execute gamestate code once they are in the game context. 2025-01-15 09:46:42 -05:00
Celtic Minstrel
0f05094933 Lua API: Add a new plugin module with some useful functions for plugins 2025-01-15 09:46:42 -05:00
Subhraman Sarkar
8fcdccfbd3 lua: api for units dialog
introduces the gui.show_recrui_dialog and gui.show_recall_dialog functions.
2024-12-29 22:00:00 +05:30
pentarctagon
2139d5b7b6 add curl to CI image 2024-12-07 18:44:55 -06:00
white-haired-uncle
c2b2664eb2
GUI2 LuaAPI: expand widget attr support (#9497) 2024-11-19 22:41:47 -05:00
Gunter Labes
4e1666c7a1
autorevision: Revert nonsensical handling of untracked files 2024-10-20 21:18:48 +02:00
white-haired-uncle
d2e7fbbeb8
GUI2 LuaAPI: add clear_items() (#9418) 2024-10-09 01:37:03 -04:00
Soliton
2f8d471e80
Remove any_tag for a more useful schema validation 2024-09-24 08:58:11 +02:00
pentarctagon
815e3fe90b add clang-tidy 2024-09-23 17:44:02 -05:00
newfrenchy83
feef53d4ab
Add an 'alignment' attribute to attacks
This attribute, when set to a valid value of lawful|neutral|chaotic|liminal, will assign to the weapon a different alignment than the unit alignment used by default. This alignment is then used when attacking with this weapon.

The attribute is not accessible from lua so far since the fallback to unit alignment does not work.
2024-09-23 17:11:46 +02:00
Celtic Minstrel
6d8a17aa8d Lua API: Add mathx.lerp_index and wesnoth.game_config.palettes 2024-09-15 15:27:39 -04:00
Celtic Minstrel
2a26a68025 Some updates to Lua map location operations
* Rename the vector operations to hex_vector (to emphasize that they are NOT standard vector ops) and document them as official API
* Add new get_hexes_at_radius, which returns an unfilled ring (as opposed to get_hexes_in_radius which returns a filled circle)
* Expose the new cubic coordinate conversions
2024-09-15 15:27:39 -04:00
Gunter Labes
81229241bb
Fall back to master data dir (for dev versions for example) 2024-09-07 21:10:27 +02:00
Toom
06350c9ad8 Update units.lua 2024-09-03 13:37:34 -04:00
gfgtdf
b8c6edc53c
Fix indices in widget.add_item_of_type()/add_item()/remove_items_at() (#8516)
- widget:add_item_of_type() now uses lua 1-based indicies and throws lua errors on wrong indicies. (previously used c++ 0-based indexing, and could lead to assertions when wrong indicies were used, )
- widget:add_item() now has a optional location pos parameter as claimed in the wiki
- the pos and count paraemters in widget:remove_items_at() are now optional and default to removing the last element

With this is matches the behavior of the standart lua functions table.insert and table.remove which is imo what lua writers expect.
2024-09-03 14:17:57 +02:00
doofus-01
033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
Subhraman Sarkar
60640dc8bd Add lua function gui.switch_theme() to allow add-ons to switch themes in the middle of a scenario 2024-08-25 01:56:22 -04:00
Gunter Labes
8c581eee90
Avoid rewriting the same file multiple times
Also process some more extensions that current source files use.
2024-08-19 08:55:08 +02:00
Celtic Minstrel
8baf95601d [LuaDoc] Mark filesystem.asset_type as an enumerator 2024-08-13 08:54:04 -04:00
Celtic Minstrel
542581916f [Lua] Suppress some diagnostics and also recommend suppressing certain diagnostics globally 2024-08-13 08:54:04 -04:00
doofus-01
8700338c75
Moving image data to the image (#9023)
Add two maintenance scripts, to help transition from external copyright tracking to putting all info in the file metadata.
- One script to read read copyrights.csv and write data to Exif tags.
- One script to read the image Exif tags, and write to a CSV
2024-08-04 18:40:45 -07:00
Pentarctagon
5c3188581b
update CI to Ubuntu 24.04 (#9139) 2024-07-28 13:07:59 -05:00
pentarctagon
8a377e58b2 add database setup commands as well 2024-07-26 20:04:40 -05:00
Celtic Minstrel
e92ee5cb1b [LuaDoc] Document that mapgen wesnoth.map.find[_in_radius] can take a uncompiled filter table.
Also note the split-location, single location, and list overloads for find_in_radius's center and find's in_list.
2024-07-21 19:58:03 -04:00
Gunter Labes
56fc63e238
Remove superfluous double sort and use POSIX conform regex 2024-04-23 09:21:23 +02:00
pentarctagon
8e5404bc24 update steam runtime image. 2024-04-22 13:38:44 -05:00
Gunter Labes
0222fdad50
Various improvements for the server scripts
Respect server options given as script arguments.
Fix killing background process in trap.
Use printf instead of echo.
Keep upper case variable names reserved for env variables.
Logfilter scripts converted to sed -E and removed GNUisms.
2024-04-14 22:03:03 +02:00
Celtic Minstrel
7aa5450a41 [Lua] Replace gui.show_inspector's undocumented config parameter with a string parameter that does the same thing.
It's still supported to pass a config, just in case anything relied on that.

This also updates the LuaDoc documentation at the same time.
2024-04-11 23:49:15 -04:00
pentarctagon
fbaded8c01 Add another query to the MP Activity Report queries
count by map and era
2024-04-04 14:56:15 -05:00
Gunter Labes
de778b1232
Add support for 1.18 2024-03-28 13:41:20 +01:00
P. J. McDermott
2993757315 Add a CI check for missing images in WML macros
This detects image errors such as issue #8432.

Example output:

    data/multiplayer/scenarios/2p_Aethermaw.cfg:134: missing image: units/undead/shadow-s-attack-1.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:135: missing image: units/undead/shadow-n-attack-2.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:147: missing image: units/undead/shadow-n-3.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:149: missing image: units/undead/shadow-s-attack-4.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:196: missing image: units/human-loyalists/spearman-attack-se-10.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:197: missing image: units/human-loyalists/spearman-attack-s-6.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:198: missing image: units/human-loyalists/spearman-attack-se-9.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:203: missing image: units/human-loyalists/general-idle-5.png
2024-03-26 13:23:22 -05:00