|
|
@ -1693,8 +1693,10 @@ Options:
|
|
|
|
|
|
|
|
|
|
|
|
``dwarfmonitor enable <mode>``:
|
|
|
|
``dwarfmonitor enable <mode>``:
|
|
|
|
Start monitoring ``mode``. ``mode`` can be "work", "misery", "weather", or "all".
|
|
|
|
Start monitoring ``mode``. ``mode`` can be "work", "misery", "weather", or "all".
|
|
|
|
|
|
|
|
This will enable all corresponding widgets, if applicable.
|
|
|
|
``dwarfmonitor disable <mode>``:
|
|
|
|
``dwarfmonitor disable <mode>``:
|
|
|
|
Stop monitoring ``mode`` (see above)
|
|
|
|
Stop monitoring ``mode`` (see above)
|
|
|
|
|
|
|
|
This will disable all corresponding widgets, if applicable.
|
|
|
|
``dwarfmonitor stats``:
|
|
|
|
``dwarfmonitor stats``:
|
|
|
|
Show statistics summary
|
|
|
|
Show statistics summary
|
|
|
|
``dwarfmonitor prefs``:
|
|
|
|
``dwarfmonitor prefs``:
|
|
|
@ -1704,16 +1706,23 @@ Options:
|
|
|
|
|
|
|
|
|
|
|
|
Widget configuration:
|
|
|
|
Widget configuration:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following types of widgets (defined in ``hack/lua/plugins/dwarfmonitor.lua``)
|
|
|
|
|
|
|
|
can be displayed on the main fortress mode screen:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* ``date``: Shows the in-game date
|
|
|
|
|
|
|
|
* ``misery``: Shows overall happiness levels of all dwarves
|
|
|
|
|
|
|
|
* ``weather``: Shows current weather (rain/snow)
|
|
|
|
|
|
|
|
* ``cursor``: Shows the current mouse cursor position
|
|
|
|
|
|
|
|
|
|
|
|
The file ``dfhack-config/dwarfmonitor.json`` can be edited to control the
|
|
|
|
The file ``dfhack-config/dwarfmonitor.json`` can be edited to control the
|
|
|
|
positions and settings of all widgets displayed on the main fortress mode screen
|
|
|
|
positions and settings of all widgets displayed. This file should contain a
|
|
|
|
(currently weather, misery, and date indicators). This file should contain a
|
|
|
|
|
|
|
|
JSON object with the key ``widgets`` containing an array of objects - see the
|
|
|
|
JSON object with the key ``widgets`` containing an array of objects - see the
|
|
|
|
included file in the ``dfhack-config`` folder for an example::
|
|
|
|
included file in the ``dfhack-config`` folder for an example::
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"widgets": [
|
|
|
|
"widgets": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "widget type (weather, misery, or date)",
|
|
|
|
"type": "widget type (weather, misery, etc.)",
|
|
|
|
"x": X coordinate,
|
|
|
|
"x": X coordinate,
|
|
|
|
"y": Y coordinate
|
|
|
|
"y": Y coordinate
|
|
|
|
<...additional options...>
|
|
|
|
<...additional options...>
|
|
|
@ -1730,8 +1739,12 @@ By default, the x and y coordinates given correspond to the leftmost tile of
|
|
|
|
the widget. Including an ``anchor`` option set to ``right`` will cause the
|
|
|
|
the widget. Including an ``anchor`` option set to ``right`` will cause the
|
|
|
|
rightmost tile of the widget to be located at this position instead.
|
|
|
|
rightmost tile of the widget to be located at this position instead.
|
|
|
|
|
|
|
|
|
|
|
|
The date widget supports an additional option, ``format``, which replaces the
|
|
|
|
Some widgets support additional options:
|
|
|
|
following characters (all others, such as punctuation, are not modified):
|
|
|
|
|
|
|
|
|
|
|
|
* ``date`` widget:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* ``format``: specifies the format of the date. The following characters
|
|
|
|
|
|
|
|
are replaced (all others, such as punctuation, are not modified)
|
|
|
|
|
|
|
|
|
|
|
|
* ``Y`` or ``y``: The current year
|
|
|
|
* ``Y`` or ``y``: The current year
|
|
|
|
* ``M``: The current month, zero-padded if necessary
|
|
|
|
* ``M``: The current month, zero-padded if necessary
|
|
|
@ -1741,6 +1754,15 @@ following characters (all others, such as punctuation, are not modified):
|
|
|
|
|
|
|
|
|
|
|
|
The default date format is ``Y-M-D``.
|
|
|
|
The default date format is ``Y-M-D``.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* ``cursor`` widget:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* ``format``: Specifies the format. ``X``, ``x``, ``Y``, and ``y`` are
|
|
|
|
|
|
|
|
replaced with the corresponding cursor cordinates, while all other
|
|
|
|
|
|
|
|
characters are unmodified.
|
|
|
|
|
|
|
|
* ``show_invalid``: If set to ``true``, the mouse coordinates will both be
|
|
|
|
|
|
|
|
displayed as ``-1`` when the cursor is outside of the DF window; otherwise,
|
|
|
|
|
|
|
|
nothing will be displayed.
|
|
|
|
|
|
|
|
|
|
|
|
seedwatch
|
|
|
|
seedwatch
|
|
|
|
---------
|
|
|
|
---------
|
|
|
|
Watches the numbers of seeds available and enables/disables seed and plant cooking.
|
|
|
|
Watches the numbers of seeds available and enables/disables seed and plant cooking.
|
|
|
|