2023-09-10 10:00:55 +00:00
|
|
|
title: $:/plugins/tiddlywiki/tour/globals
|
|
|
|
tags: $:/tags/Global
|
|
|
|
|
2023-09-10 10:28:23 +00:00
|
|
|
\procedure tour-initialise-current-tour-step()
|
2023-09-10 10:34:34 +00:00
|
|
|
<$transclude $tiddler={{$:/state/tour/step}} $field="enter-actions"/>
|
2023-09-10 10:28:23 +00:00
|
|
|
\end
|
|
|
|
|
2023-09-10 10:00:55 +00:00
|
|
|
\procedure tour-restart()
|
|
|
|
<$action-setfield $tiddler="$:/config/ShowTour" text="show"/>
|
|
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
|
2023-09-10 10:28:23 +00:00
|
|
|
<<tour-initialise-current-tour-step>>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\procedure tour-next-step()
|
|
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]after{$:/state/tour/step}else[$:/plugins/tiddlywiki/tour/steps/finished]] }}}/>
|
|
|
|
<<tour-initialise-current-tour-step>>
|
2023-09-10 10:00:55 +00:00
|
|
|
\end
|
2023-09-10 10:28:23 +00:00
|
|
|
|
|
|
|
\procedure tour-previous-step()
|
|
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
|
|
|
|
<<tour-initialise-current-tour-step>>
|
|
|
|
\end
|
|
|
|
|