Position of scaled layers
Posted: Tue Jun 27, 2017 9:54 pm
Using position constants like #center, #top, etc. the scaled layers positioned accounting the original layer size.
Code: Select all
EnableLayers
Box(0,0,100,100,#RED)
WaitLeftMouse
ShowLayer(1,#RIGHT,0)
WaitLeftMouse
SetLayerStyle(1,{scalex=0.5})
ShowLayer(1,#RIGHT,#CENTER)
WaitLeftMouse