Implementing Dear ImGui in GDevelop?

I dont know if this is the right category to ask this, and i dont normally ask for favors, but Dear ImGui has a web version, and its so amazing for debugging that i just wish so much that i could use it in gdevelop. It even has graphing which i need, literally everything.

It just takes one slightly smart guy to do it, and then it could be an extension and everything.
I understand if nobody can do it, id (and probably others) just really would love it.

Yea, do it!!! I’m in support :slight_smile:

im saying that i have no idea how

I might try to do something similar, but I’ll probably have to write it in the engine’s source code. But I don’t think I’ll succeed.

wdym by that?
what is needed is managing to get it to use the same webgl context as gdevelop, and then…well, actually loading the javascript for imgui.

I want to try to implement this in C++, but C++ can only be used in source code.

…Dear ImGui is already a C++ framework.
It has a web version.
GDevelop ONLY USES C++ in compiling GDevelop logic to javascript.
it is not used in games. Desktop exports are made with Electron, which also does not support C++. Why do it in a way thats impossible when theres a web version that will work?

I apologize if i sound rude right now, but you keep trying to use C++ in ways that dont make sense

You can integrate the library into the extension—go for it!

Take a look at how other extensions are built, and feel free to use the AI for help if you want.

am i not saying something correctly? i already tried to make it like three times and i dont know how so im asking other people. this topic is “How do i”. sigh…

Is it possible? Depends Dear ImGUI is evaluating/debugging code but Gdevelop is a node code engine. Could you refactor Dear ImGui to include evaluating and debugging JavaScript used in Gdevelop, Yes. But not Gdevelop No Code events.

I dont see how it could debug gdevelop events unless it was an entirely new system created from scratch that would need access to gdevelop debugger and console interface ability while also processing gdevelop projects json file.

um… ImGui doesnt just magically understand what to debug. You configure panes and pass information to it. For example variables, buttons that when you press do something in gdevelop, etc.

In the onFirstSceneLoaded function, put:
if (!gdjs.jsimgui) {
Copy and paste the library here
}

The imgui canvas must be on top of the game*
*