crolando / plano

refactor & augmentation of thedmd's imgui-node-editor blueprint example to be more fleshed out
6 stars 3 forks source link

Provide API method to set node header text #5

Open crolando opened 1 year ago

crolando commented 1 year ago

The header text is forced to be the member: plano::api::NodeDescription->Type which is coupled with the prototype of the node.

This means every instance of a node type would display the same name.

In @adamsepp use case, the API was edited to provide nodes with a setNodeName() and getNodeName() callback. This made other parts of the program be able to set the node name via the user, ultimately.