dfhack/library/lua
Tachytaenius b9c36c1e63
Added custom-raw-tokens utility (#2038)
* Added (chain) for [CHAIN_METAL_TEXT] armours in gui/materials.lua used by gui/create-item-- again (oops)

* Added customRawData utility

* Oops, whitespace

* Revised rawStringsFieldNames

* Dialed down on lua trickery and fixed wrongly formatted changelog entry

* Fixed changelog in wrong place and made customRawData a proper module

* Fixed not caching not-present tags, revised examples and fixed error

* Fixed whitespace. Changing settings in editor!

* customRawData docs

* Added getCreatureTag for respecting caste tags, "fixed" bizarre caching error (quotes because I don't even know what was causing it) and updated docs

* Added line limiting for docs, I guess

* Added missing string convert argument

* docs indent fix, code block fix, and revision

* Major revision

* gdi, docs error

* Another? But... huh.

* ...

* Made requested changes

* Whoops

* Rearrange docs lines

* Followed example, should fix linter issues

* fix typo. linted offline this time......

* Make it so that last instance of tag is what is read from

* Added requested change

* eventful key change

* i to lenArgs

* change eventful key

* add test for broken caste selection

* Major redesign

* tags --> tokens

* Added plant growth behaviour and did some requested changes

* More error handling

* fix docs

* Added basic error suppression

* Docs clarification.

* Docs registering example and fix error

* Strip errors on frame after onWorldLoad, not on map load

* Revert "Strip errors on frame after onWorldLoad, not on map load"

This reverts commit e20a0ef8d3743f79d961077f46910b77b16f36b9.

* Revert "Docs registering example and fix error"

This reverts commit 9c848c54c3f84e0ecc1dc421137c8a8b4a52280d.

* Revert "Docs clarification."

This reverts commit 6b4b6a1aa40c50398504f37ecf1ff0f93d6459b1.

* Revert "Added basic error suppression"

This reverts commit d11cb1438cf1e56ff700469e944f0b9af64651d7.

* Use more eventful key more consistent with other files

* use onStateChange instead of eventful and remove redundant utils require

* Code review stuff

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/Lua API.rst

committing a suggestion

Co-authored-by: Alan <lethosor@users.noreply.github.com>

* Prepend examples with DFHACK_

* Remove unused parameters

* Use new ensure_key global

* Named a couple of unnamed arguments (untested)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alan <lethosor@users.noreply.github.com>
2022-04-29 08:39:59 -07:00
..
3rdparty alt_getopt.lua: allow `?` as an option 2021-08-21 13:39:10 +02:00
dfhack only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
gui add scroll icons to Label widget (#2101) 2022-04-29 06:55:08 -07:00
json Lua: Indent array values 2015-03-22 14:04:03 -04:00
test_util make a (shallow) copy of table params 2022-02-18 13:33:08 -08:00
argparse.lua Document and update argparse module (#2089) 2022-04-11 16:16:55 -07:00
binpatch.lua binpatch.lua: check for empty patches 2018-01-31 09:57:11 -05:00
class.lua Add a script to complement the weapon rack binary patch. 2012-10-27 20:16:27 +04:00
custom-raw-tokens.lua Added custom-raw-tokens utility (#2038) 2022-04-29 08:39:59 -07:00
dfhack.lua add new global function: ensure_key 2022-04-27 17:35:49 -07:00
dumper.lua Fix whitespace issues 2015-02-14 22:53:06 -05:00
gui.lua add scroll icons to Label widget (#2101) 2022-04-29 06:55:08 -07:00
json.lua json: Improve IO-related error messages 2017-12-25 14:40:06 -05:00
luacov_helper.lua call luacov.runner.init directly and clean up dbg 2021-03-07 08:16:24 -08:00
makeown.lua fix of relations errors. 2017-04-24 07:07:08 -05:00
memscan.lua Fix out-of-bounds access in memscan.field_offset() 2021-08-10 11:26:06 -04:00
persist-table.lua persist-table bug. 2014-12-07 07:56:33 -05:00
profiler.lua Port profiler to lua 5.3 and dfhack 2018-06-06 19:18:18 +03:00
repeat-util.lua Apply initial pre-commit config 2022-04-12 14:48:19 -04:00
syndrome-util.lua Added function to remove syndrome wound data 2018-04-20 17:14:03 +02:00
tile-material.lua Apply initial pre-commit config 2022-04-12 14:48:19 -04:00
utils.lua migrate existing lua code to use new library fns 2021-07-05 15:48:51 -07:00