resolving comments

This commit is contained in:
Chr1Z93 2023-04-27 13:15:34 +02:00
parent 3b8f048111
commit 6c06e9f42c

View File

@ -1,10 +1,7 @@
-- context menu to manually fix rotation
function onLoad()
self.addContextMenuItem("rotate preview", rotatePreview)
self.addContextMenuItem("rotate card+preview", function()
self.setRotationSmooth(self.getRotation() + Vector(0, 180, 0))
rotatePreview()
end)
self.addContextMenuItem("Rotate Preview", rotatePreview)
self.addContextMenuItem("Rotate Card + Preview", rotateSelfAndPreview)
end
-- rotates the alt_view_angle
@ -17,3 +14,9 @@ function rotatePreview()
end
self.alt_view_angle = angle
end
-- rotates this card and the preview
function rotateSelfAndPreview()
self.setRotationSmooth(self.getRotation() + Vector(0, 180, 0))
rotatePreview()
end