|
@@ -1724,13 +1724,6 @@ void AnimationTimelineEdit::_gui_input(const Ref<InputEvent> &p_event) {
|
|
|
Ref<InputEventMouseMotion> mm = p_event;
|
|
|
|
|
|
if (mm.is_valid()) {
|
|
|
- if (hsize_rect.has_point(mm->get_position())) {
|
|
|
- // Change the cursor to indicate that the track name column's width can be adjusted
|
|
|
- set_default_cursor_shape(Control::CURSOR_HSIZE);
|
|
|
- } else {
|
|
|
- set_default_cursor_shape(Control::CURSOR_ARROW);
|
|
|
- }
|
|
|
-
|
|
|
if (dragging_hsize) {
|
|
|
int ofs = mm->get_position().x - dragging_hsize_from;
|
|
|
name_limit = dragging_hsize_at + ofs;
|
|
@@ -1752,6 +1745,15 @@ void AnimationTimelineEdit::_gui_input(const Ref<InputEvent> &p_event) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+Control::CursorShape AnimationTimelineEdit::get_cursor_shape(const Point2 &p_pos) const {
|
|
|
+ if (dragging_hsize || hsize_rect.has_point(p_pos)) {
|
|
|
+ // Indicate that the track name column's width can be adjusted
|
|
|
+ return Control::CURSOR_HSIZE;
|
|
|
+ } else {
|
|
|
+ return get_default_cursor_shape();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void AnimationTimelineEdit::set_use_fps(bool p_use_fps) {
|
|
|
use_fps = p_use_fps;
|
|
|
update_values();
|