Skip to content

Commit 3093a3f

Browse files
committed
expand documentation
1 parent 594e1de commit 3093a3f

File tree

1 file changed

+50
-4
lines changed

1 file changed

+50
-4
lines changed

docs/plugins/spectate.rst

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ Examples
6363
Show informative tooltips that follow each unit on the map. Note that this
6464
can be enabled independently of `spectate` itself.
6565

66+
``spectate set tooltip-follow-job-shortenings "Store item in stockpile" "Store item"``
67+
Set a (see ``tooltip-follow-job-shortenings`` for details).
68+
6669
Settings
6770
--------
6871

@@ -108,8 +111,8 @@ Settings
108111
tooltips that follow onscreen dwarves around the map.
109112

110113
``tooltip-follow-blink-milliseconds`` (default: 3000)
111-
If the ``spectate.tooltip`` overlay is enabled, set tooltip's blink duration
112-
in milliseconds. Set to 0 to always show.
114+
If the ``spectate.tooltip`` overlay is enabled, set the tooltip's blink
115+
duration in milliseconds. Set to 0 to always show.
113116

114117
``tooltip-follow-job`` (default: enabled)
115118
If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the
@@ -118,6 +121,7 @@ Settings
118121
``tooltip-follow-job-shortenings``
119122
If the ``spectate.tooltip`` overlay is enabled, this dictionary is used to
120123
shorten some job names, f.e. "Store item in stockpile" becomes "Store item".
124+
See examples for an example.
121125

122126
``tooltip-follow-name`` (default: enabled)
123127
If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the
@@ -130,7 +134,8 @@ Settings
130134
``tooltip-follow-stress-levels`` (default: Displeased, Content, Pleased are disabled)
131135
If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the
132136
specific happiness level (stress) of the dwarf in the tooltip. F.e.
133-
``tooltip-follow-stress-levels 2 true`` would show Displeased emoticon.
137+
``tooltip-follow-stress-levels 2 true`` would show the Displeased emoticon.
138+
See ``tooltip-stress-levels`` for details.
134139

135140
``tooltip-hover`` (default: enabled)
136141
If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the
@@ -151,12 +156,53 @@ Settings
151156
``tooltip-hover-stress-levels`` (default: Displeased, Content, Pleased are disabled)
152157
If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the
153158
specific happiness level (stress) of the dwarf in the hover panel. F.e.
154-
``tooltip-hover-stress-levels 2 true`` would show Displeased emoticon.
159+
``tooltip-hover-stress-levels 2 true`` would show the Displeased emoticon.
160+
See ``tooltip-stress-levels`` for details.
155161

156162
``tooltip-stress-levels``
157163
Controls how happiness levels (stress) are displayed (emoticon and color).
158164
F.e. ``tooltip-stress-levels 6 text XD`` will change the emoticon for
159165
Ecstatic dwarves to ``XD``.
166+
Default values are:
167+
168+
.. list-table::
169+
:widths: 25 25 25 25
170+
:header-rows: 1
171+
172+
* - Level
173+
- name
174+
- text
175+
- pen
176+
* - 0
177+
- Miserable
178+
- =C
179+
- COLOR_RED
180+
* - 1
181+
- Unhappy
182+
- :C
183+
- COLOR_LIGHTRED
184+
* - 2
185+
- Displeased
186+
- :(
187+
- COLOR_YELLOW
188+
* - 3
189+
- Content
190+
- :]
191+
- COLOR_GREY
192+
* - 4
193+
- Pleased
194+
- :)
195+
- COLOR_GREEN
196+
* - 5
197+
- Happy
198+
- :D
199+
- COLOR_LIGHTGREEN
200+
* - 6
201+
- Ecstatic
202+
- =D
203+
- COLOR_LIGHTCYAN
204+
205+
Keep in mind that the text will look different with the game's font.
160206

161207
Overlays
162208
--------

0 commit comments

Comments
 (0)