armory3d / zui

Immediate Mode User Interface
zlib License
314 stars 62 forks source link

Question about Nodes API #137

Closed flamendless closed 3 years ago

flamendless commented 3 years ago

Hi, Im starting to use this lib for a software project and im looking forward to fully using it as I want to also make a project using Haxe.

luboslenco commented 3 years ago

Hi, sorry about the delay.

Is there an API for changing the name of a node when the title field is clicked?

I have added onHeaderReleased callback to tell when the node title field has been clicked https://github.com/armory3d/zui/blob/master/Sources/zui/Nodes.hx#L38

What's the method/way to determine if a node is clicked or selected by the mouse?

Nodes.nodesSelected https://github.com/armory3d/zui/blob/master/Sources/zui/Nodes.hx#L9

What are the types available aside from "VALUE"?

For buttons: https://github.com/armory3d/zui/blob/master/Sources/zui/Nodes.hx#L567 For inputs / outputs: https://github.com/armory3d/zui/blob/master/Sources/zui/Nodes.hx#L653 Custom: https://github.com/armory3d/zui/issues/134