This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
harlowe:live [2017/10/09 20:39] 127.0.0.1 external edit |
harlowe:live [2019/04/16 03:05] (current) l |
||
---|---|---|---|
Line 26: | Line 26: | ||
=== Details: === | === Details: === | ||
- | Live hooks will continue to re-render themselves until they encounter and print a [[harlowe:stop|(stop:)]] macro. | + | Live hooks will continue to re-render themselves until they encounter and print a [[harlowe:stop|(stop:)]] macro. [[harlowe:stop|(stop:)]] should be used whenever you don't need to keep the hook "live", to save on processing and passage repainting (which can interfere with clicking, selecting text, and other interactions). |
+ | |||
+ | If you want to just display a hook once a certain thing happens (that is, when the condition in an [[harlowe:if|(if:)]] macro becomes true) and then [[harlowe:stop|(stop:)]], then the [[harlowe:event|(event:)]] macro may be shorter and easier to use for this. | ||
+ | |||
+ | Currently, you **cannot** attach (live:) to a [[harlowe:command|command]] (such as in ''%%(live:2s)(link-goto:"?")%%''). You have to wrap the command in a hook (such as ''%%(live:2s)[(link-goto:"?")]%%''). | ||
+ | |||
+ | === See also: === | ||
+ | |||
+ | [[harlowe:event|(event:)]] |