Added a change in cursor type to assist in UX for resizing editor panels and changing the values in value boxes

This commit is contained in:
Chandler Cox
2022-09-30 19:25:50 -05:00
parent 76a66cf400
commit c19ff9b2ef
2 changed files with 21 additions and 0 deletions

View File

@@ -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);