Merge pull request #52015 from mechPenSketch/expose_hotzones2
Expose connection hot zones in `GraphNode`
This commit is contained in:
commit
deb30a4108
3 changed files with 68 additions and 27 deletions
|
|
@ -183,7 +183,9 @@ private:
|
|||
GraphEditMinimap *minimap;
|
||||
void _top_layer_input(const Ref<InputEvent> &p_ev);
|
||||
|
||||
bool is_in_hot_zone(const Vector2 &pos, const Vector2 &p_mouse_pos, const Vector2i &p_port_size, bool p_left);
|
||||
bool is_in_input_hotzone(GraphNode *p_graph_node, int p_slot_index, const Vector2 &p_mouse_pos, const Vector2i &p_port_size);
|
||||
bool is_in_output_hotzone(GraphNode *p_graph_node, int p_slot_index, const Vector2 &p_mouse_pos, const Vector2i &p_port_size);
|
||||
bool is_in_port_hotzone(const Vector2 &pos, const Vector2 &p_mouse_pos, const Vector2i &p_port_size, bool p_left);
|
||||
|
||||
void _top_layer_draw();
|
||||
void _connections_layer_draw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue