Uses split cursor for SplitContainer
(cherry picked from commit 206b9f2d23
)
This commit is contained in:
parent
ac63e5d613
commit
be34e45233
1 changed files with 3 additions and 3 deletions
|
@ -266,7 +266,7 @@ void SplitContainer::_gui_input(const Ref<InputEvent> &p_event) {
|
||||||
Control::CursorShape SplitContainer::get_cursor_shape(const Point2 &p_pos) const {
|
Control::CursorShape SplitContainer::get_cursor_shape(const Point2 &p_pos) const {
|
||||||
|
|
||||||
if (dragging)
|
if (dragging)
|
||||||
return (vertical ? CURSOR_VSIZE : CURSOR_HSIZE);
|
return (vertical ? CURSOR_VSPLIT : CURSOR_HSPLIT);
|
||||||
|
|
||||||
if (!collapsed && _getch(0) && _getch(1) && dragger_visibility == DRAGGER_VISIBLE) {
|
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 (vertical) {
|
||||||
|
|
||||||
if (p_pos.y > middle_sep && p_pos.y < middle_sep + sep)
|
if (p_pos.y > middle_sep && p_pos.y < middle_sep + sep)
|
||||||
return CURSOR_VSIZE;
|
return CURSOR_VSPLIT;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (p_pos.x > middle_sep && p_pos.x < middle_sep + sep)
|
if (p_pos.x > middle_sep && p_pos.x < middle_sep + sep)
|
||||||
return CURSOR_HSIZE;
|
return CURSOR_HSPLIT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue