better visual positioning for cursor
This commit is contained in:
@@ -14,28 +14,22 @@ struct
|
|||||||
#[
|
#[
|
||||||
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
||||||
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b,
|
||||||
r, g, b,
|
xToNdc (xOffset, 7.000000000000000, scale, halfWidth),
|
||||||
xToNdc (xOffset, 6.000000000000000, scale, halfWidth),
|
|
||||||
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b,
|
||||||
r, g, b,
|
|
||||||
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
||||||
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b,
|
||||||
r, g, b,
|
|
||||||
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
xToNdc (xOffset, 0.000000000000000, scale, halfWidth),
|
||||||
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b,
|
||||||
r, g, b,
|
xToNdc (xOffset, 7.000000000000000, scale, halfWidth),
|
||||||
xToNdc (xOffset, 6.000000000000000, scale, halfWidth),
|
|
||||||
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 13.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b,
|
||||||
r, g, b,
|
xToNdc (xOffset, 7.000000000000000, scale, halfWidth),
|
||||||
xToNdc (xOffset, 6.000000000000000, scale, halfWidth),
|
|
||||||
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
yToNdc (yOffset, 0.000000000000000, scale, halfHeight),
|
||||||
z,
|
z, r, g, b
|
||||||
r, g, b
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ struct
|
|||||||
(* different functions to make vectors of different things we want to draw. *)
|
(* different functions to make vectors of different things we want to draw. *)
|
||||||
fun makeCursor (posX, posY, env: env_data) =
|
fun makeCursor (posX, posY, env: env_data) =
|
||||||
Rect.lerp
|
Rect.lerp
|
||||||
( Real32.fromInt (posX - 1)
|
( Real32.fromInt (posX - 2)
|
||||||
, Real32.fromInt posY
|
, Real32.fromInt posY
|
||||||
, #cursorZ env
|
, #cursorZ env
|
||||||
, TC.scale
|
, TC.scale
|
||||||
@@ -163,7 +163,7 @@ struct
|
|||||||
|
|
||||||
fun makeHighlight (posX, posY, env: env_data) =
|
fun makeHighlight (posX, posY, env: env_data) =
|
||||||
Rect.lerp
|
Rect.lerp
|
||||||
( Real32.fromInt (posX - 1)
|
( Real32.fromInt (posX - 2)
|
||||||
, Real32.fromInt posY
|
, Real32.fromInt posY
|
||||||
, #highlightZ env
|
, #highlightZ env
|
||||||
, TC.scale
|
, TC.scale
|
||||||
|
|||||||
Reference in New Issue
Block a user