1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Inspect hovered node while dragging

This commit is contained in:
AeioMuch
2024-04-07 23:04:36 +02:00
parent e5b4ef8e95
commit 0ba1adfaf9
3 changed files with 67 additions and 0 deletions

View File

@@ -234,6 +234,14 @@ class SceneTreeDock : public VBoxContainer {
void _node_prerenamed(Node *p_node, const String &p_new_name);
void _nodes_drag_begin();
void _handle_hover_to_inspect();
void _inspect_hovered_node();
void _reset_hovering_timer();
Timer *inspect_hovered_node_delay = nullptr;
Node *node_hovered_now = nullptr;
Node *node_hovered_previously = nullptr;
virtual void input(const Ref<InputEvent> &p_event) override;
virtual void shortcut_input(const Ref<InputEvent> &p_event) override;
void _scene_tree_gui_input(Ref<InputEvent> p_event);