rokups / ImNodes

Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx
MIT License
656 stars 57 forks source link

Is general slot type provided? #36

Open Cliff-Lin opened 2 years ago

Cliff-Lin commented 2 years ago

In the example, I can only connect an input slot with an output slot. However, I want some general slots beyond input and output which can be connected each other even though the slots are in the same node. Could you please give me some suggestions? Thank you a lot.

rokups commented 2 years ago

There is no such type. May not be hard to support though.

sphaero commented 2 years ago

I think we've patched ImNodes to do so. However I'm not sure if it was the best approach. See: https://github.com/hku-ect/gazebosc/pull/164

rokups commented 2 years ago

This side of things may use a refactor maybe. Im thinking instead of slot_any, something like slot_accepts + slot_group + slot_kind could provide more flexibility. It needs more thinking through of various usecases.