diff --git a/Source/Editor/GUI/Input/ValueBox.cs b/Source/Editor/GUI/Input/ValueBox.cs index ff824d76c..4b9ef8a51 100644 --- a/Source/Editor/GUI/Input/ValueBox.cs +++ b/Source/Editor/GUI/Input/ValueBox.cs @@ -172,6 +172,7 @@ namespace FlaxEditor.GUI.Input { _isSliding = false; EndMouseCapture(); + Cursor = CursorType.Default; SlidingEnd?.Invoke(); } @@ -236,6 +237,7 @@ namespace FlaxEditor.GUI.Input _startSlideLocation = location; _startSlideValue = _value; StartMouseCapture(true); + Cursor = CursorType.SizeWE; SlidingStart?.Invoke(); return true; } @@ -256,6 +258,16 @@ namespace FlaxEditor.GUI.Input ApplySliding(Mathf.RoundToInt(slideLocation.X - _startSlideLocation.X) * _slideSpeed); return; } + + // Update cursor type so user knows they can slide value + if (CanUseSliding && SlideRect.Contains(location)) + { + Cursor = CursorType.SizeWE; + } + else if (!_isSliding) + { + Cursor = CursorType.Default; + } base.OnMouseMove(location); } diff --git a/Source/Engine/UI/GUI/Panels/SplitPanel.cs b/Source/Engine/UI/GUI/Panels/SplitPanel.cs index 8772c78e6..563f1974b 100644 --- a/Source/Engine/UI/GUI/Panels/SplitPanel.cs +++ b/Source/Engine/UI/GUI/Panels/SplitPanel.cs @@ -161,6 +161,15 @@ namespace FlaxEngine.GUI if (_splitterClicked) { SplitterValue = _orientation == Orientation.Horizontal ? location.X / Width : location.Y / Height; + Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS; + } + else if (_mouseOverSplitter) + { + Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS; + } + else + { + Cursor = CursorType.Default; } base.OnMouseMove(location);