diff --git a/docs/changelog.txt b/docs/changelog.txt index 8d84e3cff..871526c85 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -36,7 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## New Plugins ## Fixes -- Fix issues with clicks "passing through" some DFHack window elements, like scrollbars +-@ Fix issues with clicks "passing through" some DFHack window elements, like scrollbars ## Misc Improvements - A new cross-compile build script was added for building the Windows files from a Linux Docker builder (see the Compile instructions in the docs) @@ -50,6 +50,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## Documentation ## API +- ``Buildings::containsTile()``: no longer takes a ``room`` parameter since that's not how rooms work anymore. If the building has extents, the extents will be checked. otherwise, the result just depends on whether the tile is within the building's bounding box. ## Lua - `helpdb`: new function: ``helpdb.refresh()`` to force a refresh of the database. Call if you are a developer adding new scripts, loading new plugins, or changing help text during play diff --git a/docs/dev/Lua API.rst b/docs/dev/Lua API.rst index eb05db0a1..a21ed0aba 100644 --- a/docs/dev/Lua API.rst +++ b/docs/dev/Lua API.rst @@ -1933,9 +1933,11 @@ General Returns the number of tiles included by extents, or defval. -* ``dfhack.buildings.containsTile(building, x, y[, room])`` +* ``dfhack.buildings.containsTile(building, x, y)`` - Checks if the building contains the specified tile, either directly, or as room. + Checks if the building contains the specified tile. If the building contains extents, + then the extents are checked. Otherwise, returns whether the x and y map coordinates + are within the building's bounding box. * ``dfhack.buildings.hasSupport(pos,size)`` @@ -5603,6 +5605,13 @@ sort The `sort ` plugin does not export any native functions as of now. Instead, it calls Lua code to perform the actual ordering of list items. +tiletypes +========= + +* ``bool tiletypes_setTile(pos, shape, material, special, variant)`` where + the parameters are enum values from ``df.tiletype_shape``, + ``df.tiletype_material``, etc. Returns whether the conversion succeeded. + .. _xlsxreader-api: xlsxreader