Skip to content

Commit 301b8fe

Browse files
authored
Merge pull request #1590 from Bumber64/machine-toggle
Add `machine-toggle` tool
2 parents 92aec15 + 8579680 commit 301b8fe

5 files changed

Lines changed: 404 additions & 341 deletions

File tree

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ Template for new versions:
2727
# Future
2828

2929
## New Tools
30+
- `machine-toggle`: interface for toggling gear assemblies, as well as pressure plates (previously in `trackstop`) (available only if ``armok`` tools are shown)
3031

3132
## New Features
3233

3334
## Fixes
3435

3536
## Misc Improvements
37+
- `trackstop`: ``pressureplate`` overlay moved to `machine-toggle` as an ``armok`` tool
3638

3739
## Removed
3840

docs/machine-toggle.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
machine-toggle
2+
==============
3+
4+
.. dfhack-tool::
5+
:summary: Overlay to modify pressure plates and gear assemblies after construction.
6+
:tags: fort armok buildings interface
7+
8+
This script provides 2 overlays that are managed by the `overlay` framework.
9+
The script does nothing when executed.
10+
Track stops and rollers are handled by `trackstop`.
11+
12+
The ``pressureplate`` overlay allows the player to change the trigger settings
13+
of a selected pressure plate after it has been constructed. Manual value entry
14+
of ranges for minecart and creature triggers is provided, allowing greater
15+
precision than the game interface normally permits. Incrementing or decrementing
16+
values always restricts them to the usual intervals.
17+
18+
The ``gearassembly`` overlay allows the player to toggle the state of a selected
19+
gear assembly without linking it to a lever first. This is useful for dwarfputing
20+
and other applications where it may be desirable to default to the disengaged
21+
state until triggered.

docs/trackstop.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,15 @@ trackstop
22
=========
33

44
.. dfhack-tool::
5-
:summary: Overlay to allow changing track stop and related building settings after construction.
5+
:summary: Overlay to allow changing track stop and roller settings after construction.
66
:tags: fort buildings interface
77

8-
This script provides 3 overlays that are managed by the `overlay` framework.
8+
This script provides 2 overlays that are managed by the `overlay` framework.
99
The script does nothing when executed.
10+
Pressure plates and gear assemblies are handled by `machine-toggle`.
1011

1112
The ``trackstop`` overlay allows the player to change the friction and dump
1213
direction of a selected track stop after it has been constructed.
1314

1415
The ``rollers`` overlay allows the player to change the roller direction and
1516
speed of a selected roller after it has been constructed.
16-
17-
The ``pressureplate`` overlay allows the player to change the trigger settings
18-
of a selected pressure plate after it has been constructed. Manual value entry
19-
of ranges for minecart and creature triggers is provided, allowing greater
20-
precision than the game interface normally permits. Incrementing or decrementing
21-
values always restricts them to the usual intervals.

0 commit comments

Comments
 (0)