Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node editors (extension) with kotlin imgui #166

Open
nkarulin opened this issue Jan 28, 2021 · 8 comments
Open

Node editors (extension) with kotlin imgui #166

nkarulin opened this issue Jan 28, 2021 · 8 comments

Comments

@nkarulin
Copy link

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
Copy link
Collaborator

elect86 commented Jan 31, 2021

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
Copy link
Author

nkarulin commented Feb 2, 2021

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
Copy link
Collaborator

elect86 commented Feb 2, 2021

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
Copy link

atorralb commented Apr 3, 2021

Interested as welll
Mostly into testing

@elect86
Copy link
Collaborator

elect86 commented Apr 3, 2021

I'll let you know

@atorralb
Copy link

atorralb commented Apr 6, 2021

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
Copy link
Collaborator

elect86 commented Apr 6, 2021

What's the difference among the two?

imnodes looks nicer but simpler.. am I right?

@atorralb
Copy link

atorralb commented Apr 6, 2021

yes, but the other one has more features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants