2023-01-16 19:56:39 +00:00
|
|
|
title: $:/plugins/tiddlywiki/tour/panel
|
|
|
|
tags: $:/tags/PageTemplate
|
|
|
|
|
2023-02-01 21:14:29 +00:00
|
|
|
\define tour-buttons()
|
2023-07-20 07:45:44 +00:00
|
|
|
\define tv-action-refresh-policy() always
|
|
|
|
<div class="tc-tour-panel-navigation">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}count[]compare:number:gt[0]]" variable="ignore">
|
2023-05-10 09:14:26 +00:00
|
|
|
<$button class="tc-btn-big-green" style="background-color: red;">
|
|
|
|
<$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[]] }}}/>
|
2023-07-20 07:45:44 +00:00
|
|
|
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
|
2023-01-16 19:56:39 +00:00
|
|
|
back
|
|
|
|
</$button>
|
2023-05-10 09:14:26 +00:00
|
|
|
</$list>
|
|
|
|
<$button class="tc-btn-big-green" style="background-color: purple;">
|
2023-01-16 19:56:39 +00:00
|
|
|
<$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]] }}}/>
|
2023-07-20 07:45:44 +00:00
|
|
|
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
|
2023-01-16 19:56:39 +00:00
|
|
|
next
|
|
|
|
</$button>
|
2023-07-20 07:45:44 +00:00
|
|
|
</div>
|
2023-01-16 19:56:39 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
<$list filter="[{$:/config/ShowTour}!is[blank]else[show]match[show]]" variable="ignore">
|
2023-07-20 07:45:44 +00:00
|
|
|
<div class={{{ tc-tour-panel [{$:/state/tour/step}get[display-mode]else[normal]addprefix[tc-tour-panel-]] +[join[ ]] }}}>
|
|
|
|
[img class="tc-tour-panel-banner-image" [$:/tour/BannerImage]]
|
|
|
|
<div class="tc-tour-panel-inner">
|
|
|
|
<div class="tc-tiddler-controls tc-tour-panel-controls">
|
2023-09-10 10:00:55 +00:00
|
|
|
<$button set="$:/config/ShowTour" setTo="no" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <span class="tc-tour-panel-controls-icon">{{$:/plugins/tiddlywiki/tour/tour-button-icon}}</span> ''Tour'': {{$:/tags/TourStep!!text}}
|
2023-01-16 19:56:39 +00:00
|
|
|
</div>
|
|
|
|
<$transclude tiddler={{$:/state/tour/step}} mode="block"/>
|
2023-07-20 07:45:44 +00:00
|
|
|
<$list filter="[{$:/state/tour/step}has[selector]]" variable="ignore">
|
2023-05-10 09:14:26 +00:00
|
|
|
<$button class="tc-btn-big-green" style="background-color: green;">
|
2023-02-01 21:14:29 +00:00
|
|
|
<$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]] }}}/>
|
2023-07-20 07:45:44 +00:00
|
|
|
show me a hint
|
2023-02-01 21:14:29 +00:00
|
|
|
</$button>
|
2023-07-20 07:45:44 +00:00
|
|
|
</$list>
|
|
|
|
</div>
|
2023-01-16 19:56:39 +00:00
|
|
|
</div>
|
|
|
|
</$list>
|