@ -3354,7 +3354,7 @@ A module for reading custom tokens added to the raws by mods.
Where ``typeInstance`` is a unit, entity, item, job, projectile, building, plant, or interaction
instance. Gets ``typeDefinition`` and then returns the same as ``getToken(typeDefinition, token)``.
For units, it gets the token from the race or caste instead if applicable. For plants growth items,
For units, it gets the token from the race or caste instead if applicable. For plant growth items,
it gets the token from the plant or plant growth instead if applicable. For plants it does the same
but with growth number -1.
@ -4052,7 +4052,11 @@ Scrollbars have the following attributes:
:fg:Specifies the pen for the scroll icons and the active part of the bar. Default is ``COLOR_LIGHTGREEN``.
:bg:Specifies the pen for the background part of the scrollbar. Default is ``COLOR_CYAN``.
:on_scroll:A callback called when the scrollbar is scrolled. It will be called with a single string parameter with a value of "up_large", "down_large", "up_small", or "down_small".
:on_scroll:A callback called when the scrollbar is scrolled. If the scrollbar is clicked,
the callback will be called with one of the following string parameters: "up_large",
"down_large", "up_small", or "down_small". If the scrollbar is dragged, the callback will
be called with the value that ``top_elem`` should be set to on the next call to
``update()`` (see below).
The Scrollbar widget implements the following methods:
@ -4062,8 +4066,10 @@ The Scrollbar widget implements the following methods:
The ``top_elem`` param is the (one-based) index of the first visible element.
The ``elems_per_page`` param is the maximum number of elements that can be
shown at one time. The ``num_elems`` param is the total number of elements
that the paried widget can scroll through. The scrollbar will adjust its
scrollbar size and position accordingly.
that the paried widget can scroll through. If ``elems_per_page`` or
``num_elems`` is not specified, the most recently specified value for these
parameters is used. The scrollbar will adjust its scrollbar size and position
according to the values passed to this function.
Clicking on the arrows at the top or the bottom of a scrollbar will scroll an
associated widget by a small amount. Clicking on the unfilled portion of the
@ -4382,7 +4388,8 @@ supports:
:edit_pen:If specified, used instead of ``cursor_pen`` for the edit field.
:edit_below:If true, the edit field is placed below the list instead of above.
:edit_key:If specified, the edit field is disabled until this key is pressed.
:edit_ignore_keys:If specified, must be a list of key names that the filter edit field should ignore.
:edit_ignore_keys:If specified, will be passed to the filter edit field as its ``ignore_keys`` attribute.
:edit_on_char:If specified, will be passed to the filter edit field as its ``on_char`` attribute.
:not_found_label:Specifies the text of the label shown when no items match the filter.
The list choices may include the following attributes:
@ -36,6 +36,8 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## New Plugins
## Fixes
- `gui/create-item`: prevent materials list filter from intercepting sublist hotkeys
- `tiletypes`: no longer resets dig priority to the default when updating other properties of a tile
## Misc Improvements
- `blueprint`: new ``--smooth`` option for recording all smoothed floors and walls instead of just the ones that require smoothing for later carving
@ -58,6 +60,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- `spectate`: new ``focus-jobs`` option for following a dwarf after their job has finished (when disabled).
- `spectate`: new ``tick-threshold``, option for specifying the change interval (maximum follow time when focus-jobs is enabled)
- `spectate`: added persistent configuration of the plugin settings
- `gui/cp437-table`: new global keybinding for the clickable on-screen keyboard for players with keyboard layouts that prevent them from using certain keys: Ctrl-Shift-K
## Documentation
- `spectate`: improved documentation of features and functionality
@ -69,6 +72,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- ``widgets.Scrollbar``: new scrollbar widget that can be paired with an associated scrollable widget. Integrated with ``widgets.Label`` and ``widgets.List``.
- ``dfhack.constructions.findAtTile()``: exposed preexisting function to Lua.
- ``dfhack.constructions.insert()``: exposed new function to Lua.
- ``widgets.EditField`` now allows other widgets to process characters that the ``on_char`` callback rejects.