From d96f19e5c66bc8f54bb806c515ce564d6b75260a Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Tue, 5 Sep 2023 08:44:59 -0500 Subject: [PATCH] Change exposed positionns to float 2 --- Source/Engine/UI/GUI/Common/Slider.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/UI/GUI/Common/Slider.cs b/Source/Engine/UI/GUI/Common/Slider.cs index b0344f055..d7324ae0e 100644 --- a/Source/Engine/UI/GUI/Common/Slider.cs +++ b/Source/Engine/UI/GUI/Common/Slider.cs @@ -88,19 +88,19 @@ public class Slider : ContainerControl /// The local position of the thumb center /// [HideInEditor] - public float ThumbCenter => _thumbCenter; + public Float2 ThumbCenter => new(_thumbCenter, Height / 2); /// /// The local position of the beginning of the track. /// [HideInEditor] - public float TrackBeginning => _thumbSize.X / 2; + public Float2 TrackBeginning => new(_thumbSize.X / 2, Height / 2); /// /// The local position of the end of the track. /// [HideInEditor] - public float TrackEnd => Width - _thumbSize.X / 2; + public Float2 TrackEnd => new(Width - _thumbSize.X / 2, Height / 2); /// /// The height of the track.