Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 17964ae

Browse files
committed
[[ Tutorial ]] Don't show 'Do It For Me' in a popup answer dialog step
1 parent f854cbb commit 17964ae

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Toolset/palettes/tutorial/revtutorial.livecodescript

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,8 @@ on revTutorialPositionStack pStack, pObject, pWidthOverride, pForceVertical
877877
end if
878878

879879
# If this is a non-script action step, show the 'Do It For Me' button
880-
if sIsInterlude or tHasScript then
880+
if sIsInterlude or tHasScript or \
881+
revTutorialCanSkipStep() is not true then
881882
hide tDoItButtonID
882883
else
883884
put tDoItButtonID into tActionButton
@@ -1935,8 +1936,17 @@ on revTutorialSetContextualStepData pStepDataA
19351936
put pStepDataA["file"] into sStepContextA["file"]
19361937
put pStepDataA["value"] into sStepContextA["value"]
19371938
put pStepDataA["image"] into sStepContextA["image"]
1939+
if pStepDataA["actions"]["wait"]["wait condition"] is "pops up" then
1940+
put false into sStepContextA["can skip"]
1941+
else
1942+
put true into sStepContextA["can skip"]
1943+
end if
19381944
end revTutorialSetContextualStepData
19391945

1946+
function revTutorialCanSkipStep
1947+
return sStepContextA["can skip"]
1948+
end revTutorialCanSkipStep
1949+
19401950
##############################################################################
19411951
#
19421952
# ACTION IMPLEMENTATIONS

0 commit comments

Comments
 (0)