SCED/src/playercards/Tarotcard.ttslua

16 lines
310 B
Plaintext
Raw Normal View History

-- context menu to manually fix rotation
function onLoad()
self.addContextMenuItem("rotate alt preview", reverse)
end
-- rotates the alt_view_angle
function reverse()
local angle = self.alt_view_angle
if angle.y == 0 then
angle.y = 180
else
angle.y = 0
end
self.alt_view_angle = angle
end