dear giderians, I would like to start a new thread regarding imgui and its implementation in gideros. The old imgui thread is a bit outdated imho. Let's start fresh and I will try to update the wiki as we gather more tips and use case on how to use imgui in gideros.
imgui original thread starts at: http://forum.giderosmobile.com/discussion/comment/63655/#Comment_63655
Thank you
Comments
In general, to work with "ImGui" you only need a few lines:
Also there is a few demos:
https://github.com/MultiPain/Gideros_examples/tree/master/ImGuiTablesDemo
https://github.com/MultiPain/Gideros_examples/tree/master/ImGuiFileDialogDemo
https://github.com/MultiPain/Gideros_examples/tree/master/ImGuiDockingDemo
Likes: MoKaLux, SinisterSoft
Rrraptor you already did an enormous amount of work and it is now our turn to contribute
PS: you don't need to update ImGui. Imho when we have a stable plugin we don't need to update it until someone really needs a new feature then we might update the plugin
https://deluxepixel.com
Updated now: https://github.com/MultiPain/Gideros_ImGui/blob/master/README.md#draw-lists-commands
(only for images)
I don’t know how the "imageQuad" will work with the texture regions, but the rest should work without problems.
Images anchor points always in the center Will be fixed...
https://github.com/MultiPain/Gideros_ImGui/blob/0fc7b66a0d7b19ed9204710db6095c60ea4c9336/main.cpp#L8774
Likes: SinisterSoft
Likes: SinisterSoft, MoKaLux
Now I just need the button widths to be able to be a set width..
https://deluxepixel.com
In the wiki do I need to write the e as a parameter or can I leave it. If it is best to add e as a parameter is e the delta time?
Thank you.
https://github.com/gideros/gideros/blob/master/plugins/imgui/source/Common/imgui_bindings.cpp#L1736
wiki: https://wiki.gideros.rocks/index.php/ImGui:newFrame
I know how fix it, but memory leak is still possible.
EDIT: https://github.com/gideros/gideros/pull/506
Likes: MoKaLux
CTRL+V to gideros, wrap it into a function, call this function...profit!
Likes: MoKaLux
setAutoUpdateCursor(true) and
setAutoUpdateCursor(false)
https://github.com/gideros/gideros/blob/db839bdfc6bbbb91524a687f23a8289bc24fa500/plugins/imgui/source/Common/imgui_bindings.cpp#L1754
https://github.com/gideros/gideros/blob/db839bdfc6bbbb91524a687f23a8289bc24fa500/plugins/imgui/source/Common/imgui_bindings.cpp#L377
Likes: MoKaLux
https://deluxepixel.com
Fixed this 3 for now.
Image size and button size now separated arguments.
Likes: SinisterSoft, MoKaLux
https://deluxepixel.com
Likes: SinisterSoft
So it displays a color and shows some info about that color. Can we click on it and does it respond to clicks?
It's not really a buttonEDIT: this may be usefull for drag'n drop scenario?EDIT2: a nice tutorial https://eliasdaler.github.io/using-imgui-with-sfml-pt2/
TIP: ImGui could be very very handy for mobile controls
https://github.com/MultiPain/Gideros_ImGui/blob/63dce85996763d5650c961d141fbd6519a0464f2/main.cpp#L3908
I'll fix that For now, you can use
Likes: MoKaLux
I will wait for the update, no hurry
Likes: MoKaLux
https://deluxepixel.com
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh, SinisterSoft, MoKaLux
Likes: SinisterSoft, MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Or I don’t understand what you mean.
Hm, it seems that I messed up with frame padding on Y axis, fixing it right now...
Likes: keszegh
https://deluxepixel.com
Likes: SinisterSoft, MoKaLux
https://deluxepixel.com
Likes: SinisterSoft, MoKaLux
I haven't fixed all problems with image buttons, but most of them, I guess
Likes: SinisterSoft, vitalitymobile