This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_entity_tooltip [2020/04/28 09:46] – justin | set_entity_tooltip [2021/04/21 18:51] (current) – justin | ||
---|---|---|---|
Line 12: | Line 12: | ||
|entity|[[Entity]] to change the tooltip for.|[[Entity]]|Yes| | |entity|[[Entity]] to change the tooltip for.|[[Entity]]|Yes| | ||
|tooltip_text|Text to display in the tooltip.|[[String]]|Yes| | |tooltip_text|Text to display in the tooltip.|[[String]]|Yes| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | You can use [[placeholder expression|placeholder expressions]] within the tooltip text, for example to update an [[entity|entity' | ||
+ | </ | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | set_entity_tooltip(self, | + | set_entity_tooltip(self, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |