title: $:/plugins/tiddlywiki/tour/panel
tags: $:/tags/PageTemplate
\whitespace trim
\procedure tour-buttons()
\procedure tv-action-refresh-policy() always
<$list filter="[function[tour-is-not-first-step]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: red;">
<>
back
$button>
$list>
<$list filter="[function[tour-is-not-last-step]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: purple;">
<>
next
$button>
$list>
<$list filter="[function[tour-is-last-step]]" variable="ignore">
<$confetti/>
<$confetti delay=100/>
<$confetti delay=200/>
<$confetti delay=300/>
<$confetti delay=400/>
<$confetti delay=500/>
$list>
\end
<$list filter="[{$:/config/ShowTour}!is[blank]else[show]match[show]]" variable="ignore">
<$image class="tc-tour-panel-banner-image" source={{{ [{$:/config/CurrentTour}get[logo]] }}}/>
<$button set="$:/config/ShowTour" setTo="no" class="tc-btn-invisible">{{$:/core/images/close-button}}$button>
<$button popup=<
> class="tc-btn-invisible tc-tour-panel-list-button" selectedClass="tc-selected">
''Tour'': <>
$button>
<$reveal state=<> type="popup" position="belowleft" animate="yes" tag="div">
$reveal>
<$let
currentTour={{$:/config/CurrentTour}}
currentTourStep={{$:/state/tour/step}}
condition-var={{{ [
get[condition-var]] :map[subfilter] }}}
>
<$list filter="[has[caption]]" variable="ignore">
<$transclude $tiddler=<> $field="caption" mode="inline"/>
$list>
<$list filter="[!has[condition]]" variable="ignore">
<$transclude tiddler=<> mode="block"/>
<>
$list>
<$list filter="[has[condition]]" variable="ignore">
<$transclude tiddler=<> mode="block"/>
<$list filter={{{ [get[condition]] }}} limit="1" variable="ignore">
<$confetti/>
Congratulations, you may proceed
<>
$list>
$list>
$let>
<$list filter="[{$:/state/tour/step}has[selector]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: green;">
<$action-sendmessage $message="tm-spotlight-element" selector={{{ [{$:/state/tour/step}get[selector]] }}} selector-fallback-1={{{ [{$:/state/tour/step}get[selector-fallback-1]] }}} selector-fallback-2={{{ [{$:/state/tour/step}get[selector-fallback-2]] }}}/>
show me a hint
$button>
$list>
$list>