Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion Toolset/palettes/tutorial/revtutorial.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ on revTutorialConfigureMessage pData
local tImageFile
if pData["image"] is not empty then
local tImageWidth
put revIDETutorialInternalResource(pData["image"]) into tImageFile
put revTutorialImageForScreenSize(pData["image"]) into tImageFile
set the filename of image "Image" of stack "revTutorial" to tImageFile
put the formattedWidth of image "Image" of stack "revTutorial" + 2 * kMargin into tImageWidth
put max(tWidthOverride, tImageWidth) into tWidthOverride
Expand Down Expand Up @@ -2162,6 +2162,23 @@ on revTutorialConfigureMessage pData
revTutorialPositionStack "", "", tWidthOverride, false
end revTutorialConfigureMessage

function revTutorialImageForScreenSize pImage
local tScreen, tScreenRect
put the screen of stack "revTutorial" into tScreen
put line tScreen of the the screenrects into tScreenRect
if item 4 of tScreenRect - item 2 of tScreenRect <= 1080 then
local tSmallImage, tFile
put pImage into tSmallImage
set the itemdelimiter to "."
put "_small" after item -2 of tSmallImage
put revIDETutorialInternalResource(tSmallImage) into tFile
if there is a file tFile then
return tFile
end if
end if
return revIDETutorialInternalResource(pImage)
end revTutorialImageForScreenSize

function revTutorialScriptRetry pCurrent
local tText
put "Your script is not quite right. You have:" & return & return after tText
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-20040.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Use smaller images of todo list on smaller screens