This shows you the differences between two versions of the page.
— |
snowman:passage-events [2018/06/02 06:37] (current) videlais created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Passage Events ====== | ||
+ | Snowman provides three different events that happen in sequence. | ||
+ | |||
+ | * [[https://github.com/klembot/snowman/blob/1.1/js/story.js#L316)|hidepassage]]: occurs as a passage is about to be replaced. The passage being replaced is sent as the 'passage' parameter to the event. | ||
+ | * [[https://github.com/klembot/snowman/blob/1.1/js/story.js#L326|showpassage]]: occurs before the passage is rendered. The passage about to be shown is the 'passage' parameter to the event. | ||
+ | * [[https://github.com/klembot/snowman/blob/1.1/js/story.js#L350|showpassage:after]]: occurs after everything has been processed. The now rendered passage is sent as the 'passage' parameter to the event. |