fix
This commit is contained in:
@@ -45,16 +45,16 @@ function coords_partial_to_screenwriter(pos_px, scale_px, anchor)
|
|||||||
|
|
||||||
if anchor == 1 then --top left
|
if anchor == 1 then --top left
|
||||||
x_px = pos_px.x + scale_px.x / 2
|
x_px = pos_px.x + scale_px.x / 2
|
||||||
y_px = pos_px.y + scale_px.y / 2
|
y_px = pos_px.y - scale_px.y / 2
|
||||||
elseif anchor == 2 then --top right
|
elseif anchor == 2 then --top right
|
||||||
x_px = pos_px.x - scale_px.x / 2
|
x_px = pos_px.x - scale_px.x / 2
|
||||||
y_px = pos_px.y + scale_px.y / 2
|
y_px = pos_px.y - scale_px.y / 2
|
||||||
elseif anchor == 3 then --bottom right
|
elseif anchor == 3 then --bottom right
|
||||||
x_px = pos_px.x - scale_px.x / 2
|
x_px = pos_px.x - scale_px.x / 2
|
||||||
y_px = pos_px.y - scale_px.y / 2
|
y_px = pos_px.y + scale_px.y / 2
|
||||||
elseif anchor == 4 then --bottom left
|
elseif anchor == 4 then --bottom left
|
||||||
x_px = pos_px.x + scale_px.x / 2
|
x_px = pos_px.x + scale_px.x / 2
|
||||||
y_px = pos_px.y - scale_px.y / 2
|
y_px = pos_px.y + scale_px.y / 2
|
||||||
else --center
|
else --center
|
||||||
x_px = pos_px.x
|
x_px = pos_px.x
|
||||||
y_px = pos_px.y
|
y_px = pos_px.y
|
||||||
|
|||||||
Reference in New Issue
Block a user