wesnoth/utils
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
..
ai_test
CI
dockerbuilds
emmylua
gdb
graphincludes/project
headers
mp-server
msvc
wesnoth-map-diff
autorevision.sh
campaignd_download_analyze.sh
collect_election_candidate_commits
compare_images.py
csv2img-exif
git_export_campaign
img-exif2csv
itchio_upload
optiwebp.py
png_format_check.sh
po_stat.py
po2po
pofix.py
prkill
README.md
sanity_check
simulate_lobby_traffic.py
simulate-lobby-activity.lua
tagfind
unused_functions.py
update_appdata
update_copyright.py
update_pathfinding
valgrind_memcheck_suppressions.supp
wesnoth-attack-sim.c
wesnoth-defaults
wesnothd.pl
wml_net.pm
wml.pm
wmlxgettext_perl
woptipng.py
wxdiff

This is a directory of miscellaneous developer tools for Battle for Wesnoth, mostly to support packaging, code integrity checks, and control of the Wesnoth servers.

Tools that work on data (WML, maps, images, sounds) no longer belong here. Go to data/tools for those.