@@ -2,61 +2,147 @@ spectate
22========
33
44.. dfhack-tool ::
5- :summary: Automatically follow productive dwarves.
6- :tags: fort interface
5+ :summary: Automated spectator mode.
6+ :tags: fort inspection interface
7+
8+ This tool is for those who like to watch their dwarves go about their business.
9+
10+ When enabled, `spectate ` will lock the camera to following the dwarves
11+ scurrying around your fort. Every once in a while, it will automatically switch
12+ to following a different dwarf. It can also switch to following animals,
13+ hostiles, or visiting units. You can switch to the next target (or a previous
14+ target) immediately with the left/right arrow keys.
15+
16+ `spectate ` will disengage and turn itself off when you move the map, just like
17+ the vanilla follow mechanic. It will also disengage immediately if you open the
18+ squads menu for military action.
19+
20+ It can also annotate your dwarves on the map with their name, job, and other
21+ information, either as floating tooltips or in a panel that comes up when you
22+ hover the mouse over a target.
23+
24+ Run `gui/spectate ` to configure the plugin's settings.
25+
26+ Settings are saved globally, so your preferences for `spectate ` and its
27+ overlays will apply to all forts, not just the currently loaded one. Follow
28+ mode is automatically disabled when you load a fort so you can get your
29+ bearings before re-enabling.
730
831Usage
932-----
1033
1134::
1235
1336 enable spectate
14- spectate
37+ spectate [status]
38+ spectate toggle
1539 spectate set <setting> <value>
16- spectate enable|disable <feature>
17-
18- When enabled, the plugin will lock the camera to following the dwarves
19- scurrying around your fort. Every once in a while, it will automatically switch
20- to following a different dwarf, preferring dwarves on z-levels with the highest
21- job activity.
22-
23- If you have the ``auto-disengage `` feature disabled, you can switch to a new
24- dwarf immediately by hitting one of the map movement keys (``wasd `` by
25- default). To stop following dwarves, bring up `gui/launcher ` and run
26- ``disable spectate ``.
27-
28- Changes to settings will be saved with your fort, but if `spectate ` is enabled
29- when you save the fort, it will disenable itself when you load so you can get
30- your bearings before re-enabling follow mode with ``enable spectate `` again.
40+ spectate overlay <name> enable|disable
3141
3242Examples
3343--------
3444
3545``enable spectate ``
36- Starting following dwarves and observing life in your fort.
46+ Start following dwarves and observing life in your fort.
47+
48+ ``spectate toggle ``
49+ Toggle the plugin on or off. Intended for use with a keybinding. The
50+ default is Ctrl-Shift-S.
3751
3852``spectate ``
3953 The plugin reports its configured status.
4054
41- ``spectate enable auto-unpause ``
42- Enable the spectate plugin to automatically dismiss pause events caused
43- by the game. Siege events are one example of such a game event .
55+ ``spectate set auto-unpause true ``
56+ Configure ` spectate ` to automatically dismiss popups and pause events, like
57+ siege announcements .
4458
45- ``spectate set tick-threshold 1000 ``
46- Set the tick interval between camera changes back to its default value .
59+ ``spectate set follow-seconds 30 ``
60+ Configure ` spectate ` to switch targets every 30 seconds when in follow mode .
4761
48- Features
49- --------
50- :auto-unpause: Toggle auto-dismissal of game pause events. (default: disabled)
51- :auto-disengage: Toggle auto-disengagement of plugin through player
52- intervention while unpaused. (default: disabled)
53- :animals: Toggle whether to sometimes follow animals. (default: disabled)
54- :hostiles: Toggle whether to sometimes follow hostiles (eg. undead,
55- titans, invaders, etc.) (default: disabled)
56- :visiting: Toggle whether to sometimes follow visiting units (eg.
57- diplomats)
62+ ``spectate overlay follow enable ``
63+ Show informative tooltips that follow each unit on the map.
5864
5965Settings
6066--------
61- :tick-threshold: Set the plugin's tick interval for changing the followed
62- dwarf. (default: 1000)
67+
68+ ``auto-disengage `` (default: enabled)
69+ Toggle automatically disabling the plugin when the player moves the map or
70+ opens the squad panel. If this is disabled, you will need to manually
71+ disable the plugin to turn off follow mode.
72+
73+ ``auto-unpause `` (default: disabled)
74+ Toggle auto-dismissal of announcements that pause the game, like sieges,
75+ forgotten beasts, etc.
76+
77+ ``cinematic-action `` (default: enabled)
78+ Toggle whether to switch targets more rapidly when there is conflict.
79+
80+ ``follow-seconds `` (default: 10)
81+ Set the time interval for changing the followed unit. The interval does not
82+ include time that the game is paused.
83+
84+ ``include-animals `` (default: disabled)
85+ Toggle whether to sometimes follow fort animals.
86+
87+ ``include-hostiles `` (default: disabled)
88+ Toggle whether to sometimes follow hostiles (eg. undead, titans, invaders,
89+ etc.)
90+
91+ ``include-visitors `` (default: disabled)
92+ Toggle whether to sometimes follow visiting units, like diplomats.
93+
94+ ``include-wildlife `` (default: disabled)
95+ Toggle whether to sometimes follow wildlife.
96+
97+ ``prefer-conflict `` (default: enabled)
98+ Toggle whether to prefer following units in active conflict.
99+
100+ ``prefer-new-arrivals `` (default: enabled)
101+ Toggle whether to prefer following (non-siege) units that have newly
102+ arrived on the map.
103+
104+ ``tooltip-follow-job `` (default: enabled)
105+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
106+ job of the dwarf in the tooltip.
107+
108+ ``tooltip-follow-name `` (default: enabled)
109+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
110+ name of the dwarf in the tooltip.
111+
112+ ``tooltip-follow-stress `` (default: enabled)
113+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
114+ happiness level (stress) of the dwarf in the tooltip.
115+
116+ ``tooltip-hover-job `` (default: enabled)
117+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
118+ job of the dwarf in the hover panel.
119+
120+ ``tooltip-hover-name `` (default: enabled)
121+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
122+ name of the dwarf in the hover panel.
123+
124+ ``tooltip-hover-stress `` (default: enabled)
125+ If the ``spectate.follow `` overlay is enabled, toggle whether to show the
126+ happiness level (stress) of the dwarf in the hover panel.
127+
128+ Overlays
129+ --------
130+
131+ ``spectate `` provides two overlays via the `overlay ` framework to add
132+ information and functionality to the main map. These overlays can be controlled
133+ via the ``spectate overlay `` command or the ``Overlays `` tab in
134+ `gui/control-panel `.
135+
136+ The information displayed by these overlays can be configured via the
137+ ``spectate set `` command or the `gui/spectate ` interface.
138+
139+ ``spectate.follow ``
140+ Show informative tooltips that follow each unit on the map. You can enable
141+ this overlay by running ``spectate overlay follow enable `` or,
142+ equivalently, ``overlay enable spectate.follow ``.
143+
144+ ``spectate.hover ``
145+ Show a popup panel with selected information when your mouse cursor hovers
146+ over a unit. You can enable this overlay by running
147+ ``spectate overlay hover enable `` or, equivalently,
148+ ``overlay enable spectate.hover ``.
0 commit comments