keharriso / love-nuklear

Lightweight immediate mode GUI for LÖVE games
MIT License
350 stars 32 forks source link

Support for nk_tree_state_push/pop #32

Closed megagrump closed 5 years ago

megagrump commented 5 years ago

Adds trees with external state management. Is available in nuklear, but was missing in love-nuklear.

keharriso commented 5 years ago

Forgive me, but it looks like ui:treeState* has the same signature as ui:tree*. If you could clarify what the differences are, I would appreciate it. At first look it seemed like nk_tree_state_push was meant to output the state to *state, but ui:treeStatePush doesn't return a state value. Overall, I'd be grateful for an explanation and maybe an example of the differences.

Thank you for the PRs, by the way, they are very helpful.

keharriso commented 5 years ago

Nevermind, I played around with it a bit and figured it out. Thanks for another PR, they're always welcome.