diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-08 15:37:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-08 15:37:21 +0100 |
commit | a27715d0dac2046c7012a93d41cb5aece966cc19 (patch) | |
tree | 8df15f60f11243166b0a2a7ee9e3380a75c83746 | |
parent | 6203c38fd12c8aff26ea2e6d689f2d9b8ff1e0d0 (diff) | |
parent | 206b9f2d23ba1380de4c5b1c175b7ee5eadfd298 (diff) |
Merge pull request #35999 from timothyqiu/split-container-cursor
Uses split cursor for SplitContainer
-rw-r--r-- | scene/gui/split_container.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/split_container.cpp b/scene/gui/split_container.cpp index bb5260b15e..079907db07 100644 --- a/scene/gui/split_container.cpp +++ b/scene/gui/split_container.cpp @@ -266,7 +266,7 @@ void SplitContainer::_gui_input(const Ref<InputEvent> &p_event) { Control::CursorShape SplitContainer::get_cursor_shape(const Point2 &p_pos) const { if (dragging) - return (vertical ? CURSOR_VSIZE : CURSOR_HSIZE); + return (vertical ? CURSOR_VSPLIT : CURSOR_HSPLIT); if (!collapsed && _getch(0) && _getch(1) && dragger_visibility == DRAGGER_VISIBLE) { @@ -275,11 +275,11 @@ Control::CursorShape SplitContainer::get_cursor_shape(const Point2 &p_pos) const if (vertical) { if (p_pos.y > middle_sep && p_pos.y < middle_sep + sep) - return CURSOR_VSIZE; + return CURSOR_VSPLIT; } else { if (p_pos.x > middle_sep && p_pos.x < middle_sep + sep) - return CURSOR_HSIZE; + return CURSOR_HSPLIT; } } |