-
Notifications
You must be signed in to change notification settings - Fork 493
spectate.lua: implement unit banners and mouse tooltips #5264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
aedfa33
spectate.lua: implement unit banners and mouse tooltips
TymurGubayev 5a016ce
remove debug remnant
TymurGubayev 0265291
make it possible to set all settings
TymurGubayev 82ce1be
add options to enable/disable tooltips at once
TymurGubayev 9f103d1
add documentation for new options
TymurGubayev 1d79fd0
remove tabs
TymurGubayev e7ac8f2
Merge branch 'develop' into patch-10
TymurGubayev 6011cb3
Update docs/plugins/spectate.rst
TymurGubayev 594e1de
Update docs/plugins/spectate.rst
TymurGubayev 3093a3f
expand documentation
TymurGubayev 2c87cf8
doc clarifications
myk002 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,10 +103,22 @@ Settings | |
| Toggle whether to prefer following (non-siege) units that have newly | ||
| arrived on the map. | ||
|
|
||
| ``tooltip-follow`` (default: enabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| tooltip. | ||
|
|
||
| ``tooltip-follow-blink-milliseconds`` (default: 3000) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we'll have to get feedback on this in the beta. It might make sense to default to always on for graphics mode but default to a slow blink for ascii. Other tools that display things over the map do that, like the warm/damp overlay and the gui/quickfort preview shadow. |
||
| If the ``spectate.tooltip`` overlay is enabled, set tooltip's blink duration | ||
| in milliseconds. Set to 0 to always show. | ||
|
|
||
| ``tooltip-follow-job`` (default: enabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| job of the dwarf in the tooltip. | ||
|
|
||
| ``tooltip-follow-job-shortenings`` | ||
myk002 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
myk002 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| If the ``spectate.tooltip`` overlay is enabled, this dictionary is used to | ||
| shorten some job names, f.e. "Store item in stockpile" becomes "Store item". | ||
|
|
||
| ``tooltip-follow-name`` (default: enabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| name of the dwarf in the tooltip. | ||
|
|
@@ -115,6 +127,15 @@ Settings | |
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| happiness level (stress) of the dwarf in the tooltip. | ||
|
|
||
| ``tooltip-follow-stress-levels`` (default: Displeased, Content, Pleased are disabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| specific happiness level (stress) of the dwarf in the tooltip. F.e. | ||
| ``tooltip-follow-stress-levels 2 true`` would show Displeased emoticon. | ||
myk002 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ``tooltip-hover`` (default: enabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| hover panel. | ||
TymurGubayev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ``tooltip-hover-job`` (default: enabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| job of the dwarf in the hover panel. | ||
|
|
@@ -127,6 +148,16 @@ Settings | |
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| happiness level (stress) of the dwarf in the hover panel. | ||
|
|
||
| ``tooltip-hover-stress-levels`` (default: Displeased, Content, Pleased are disabled) | ||
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| specific happiness level (stress) of the dwarf in the hover panel. F.e. | ||
| ``tooltip-hover-stress-levels 2 true`` would show Displeased emoticon. | ||
|
|
||
| ``tooltip-stress-levels`` | ||
| Controls how happiness levels (stress) are displayed (emoticon and color). | ||
| F.e. ``tooltip-stress-levels 6 text XD`` will change the emoticon for | ||
| Ecstatic dwarves to ``XD``. | ||
myk002 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Overlays | ||
| -------- | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.