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

Commit f166fcb

Browse files
Merge pull request #1672 from livecode/bugfix-20039
[[ Bug 20039 ]] Tutorial 'do it for me' should center new controls
2 parents 6b78943 + c1a5963 commit f166fcb

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3389,7 +3389,11 @@ on revIDECreateObject pObjectTypeID, pTarget, pLoc
33893389
if sClassicObjectProperties is empty then __objectPropertiesRead
33903390
# Set the default stack to the target we're creating the object on
33913391
set the defaultstack to revIDEStackOfObject(pTarget)
3392-
3392+
3393+
if pLoc is empty then
3394+
put the loc of this card of the defaultStack into pLoc
3395+
end if
3396+
33933397
# Create the object
33943398
lock screen
33953399
lock messages

Toolset/palettes/tutorial/revtutorial.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3791,7 +3791,7 @@ on revTutorialCreateAndCaptureObjects pWaitData, pCaptureData, pHighlightData
37913791
else
37923792
if pHighlightData["tool"] is not empty then
37933793
dispatch function "toolObjectName" to stack "revTools" with pHighlightData["tool"]
3794-
revIDECreateObject the result, sTaggedObjects["stack"][tCapture["target stack"]["tag"]], "0,0"
3794+
revIDECreateObject the result, sTaggedObjects["stack"][tCapture["target stack"]["tag"]]
37953795
put the result into sTaggedObjects[tType][tCapture["tag"]]
37963796
else if pHighlightData["item"][1] contains "Import" then
37973797
# Deal with 'import'

notes/bugfix-20039.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Position tutorial controls in better location when using 'Do It For Me'

0 commit comments

Comments
 (0)