kotlin-graphics / imgui

Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
MIT License
594 stars 37 forks source link

Node editors (extension) with kotlin imgui #166

Open nkarulin opened 3 years ago

nkarulin commented 3 years ago

Hi guys!

Is there any relatively easy way to use imgui node editors (like https://github.com/thedmd/imgui-node-editor) with this kotlin implementation? I've noticed that in java imgui (https://github.com/SpaiR/imgui-java) there are java interfaces written for two of node editors implementations (https://github.com/SpaiR/imgui-java/blob/v1.80-1.5.0/example/src/main/java/ExampleImGuiNodeEditor.java). Maybe there anything similar for kotlin implementation? Or extension adaptation is still to be supported?

Thank you in advance, Nikolai

elect86 commented 3 years ago

Hey Nikolai,

not yet, nobody raised any interest in regards.. it shouldn't be too much complicate to port that..

what is or what are you looking for exactly with this node editor?

nkarulin commented 3 years ago

Well, I am developing events\upgrades editor for my game. There are a lot of relations between entities and representing them as nodes with links seems to appear pretty convenient.

Screenshot_2021-02-02_18-57-48

Currently I have had to use java native adapters from java-imgui. Those are a little bit buggy, but still pretty useful.

Would it be valuable if some kind of native adapters appear in kotlin-imgui, or it does not fit the project structure?

elect86 commented 3 years ago

I took a look at imnodes, from a quick overview I can say it might turn out to be relatively easy to port it..

Are you interested to contribute/testing?

atorralb commented 3 years ago

Interested as welll Mostly into testing

elect86 commented 3 years ago

I'll let you know

atorralb commented 3 years ago

thanks please have a look also at https://github.com/SpaiR/imgui-java that guy translated 2 node editors into java one of the node editors is pretty expressive: https://github.com/thedmd/imgui-node-editor/tree/687a72f940c76cf5064e13fe55fa0408c18fcbe4

elect86 commented 3 years ago

What's the difference among the two?

imnodes looks nicer but simpler.. am I right?

atorralb commented 3 years ago

yes, but the other one has more features