Change exposed positionns to float 2
This commit is contained in:
@@ -88,19 +88,19 @@ public class Slider : ContainerControl
|
|||||||
/// The local position of the thumb center
|
/// The local position of the thumb center
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HideInEditor]
|
[HideInEditor]
|
||||||
public float ThumbCenter => _thumbCenter;
|
public Float2 ThumbCenter => new(_thumbCenter, Height / 2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The local position of the beginning of the track.
|
/// The local position of the beginning of the track.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HideInEditor]
|
[HideInEditor]
|
||||||
public float TrackBeginning => _thumbSize.X / 2;
|
public Float2 TrackBeginning => new(_thumbSize.X / 2, Height / 2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The local position of the end of the track.
|
/// The local position of the end of the track.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HideInEditor]
|
[HideInEditor]
|
||||||
public float TrackEnd => Width - _thumbSize.X / 2;
|
public Float2 TrackEnd => new(Width - _thumbSize.X / 2, Height / 2);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The height of the track.
|
/// The height of the track.
|
||||||
|
|||||||
Reference in New Issue
Block a user