so finally i can test. in new version left click is not registered for me. i use it manually, that is i set self.imgui = ImGui.new(nil, false, true, false).
and then in onTouch function i do basically: if event.type=="touchesBegin" then IO:setMouseDown(event.touch.mouseButton-1, true) end
this worked before but does not work now. how should i change the syntax?
this worked before but does not work now. how should i change the syntax?
Remove "-1"
thanks, this works. so far so good, i will make more testing about my various gui elements (There are many, so it will be a good test for imgui in general).
ctrl+tab i use for my own aims but imgui also triggers some main menu related event when this is pressed. how to disable this? i tried IO:setConfigFlags(ImGui.ConfigFlags_None) but it did not seem to make a difference. ty
ctrl+tab i use for my own aims but imgui also triggers some main menu related event when this is pressed. how to disable this? i tried IO:setConfigFlags(ImGui.ConfigFlags_None) but it did not seem to make a difference. ty
Try to add "ImGui.WindowFlags_NoNavFocus" to all windows except for popups?
It is true that you had to use "ImGuiConfigFlags_NavEnableKeyboard" BEFORE 1.87, but now, there is no way I think. Only if I change "tab" key to something else in imgui source code.
so this ctlr+Tab think is completely annoying. it's hard to believe that it cannot be disabled. currently all my windows have nonav set so when ctrl+tab is pressed, it does not switch in fact between any of the windows, ONLY pops up that stupid window from my screenshot with the list of possible windows, where only "(main menu bar)" is listed. perhaps if i could also set main menu bar to be 'nonav' then this would effectively disable this feature? but how could i do this?
i think this popup window with list of windows is quite unorthodox to guis so there should be at least some way to disable this. the switching between windows feature is less of an issue, as it does not switch between anything anyway at the end, as every window has this feature disabled.
@rrraptor , i have noticed one more thing that worked in old version but is strange now. i had the following code to put a triangle in the topright of certain items (each name in a scrollable list of files):
function ImGui:showRightClickableSign(x,y)local x0,y0=self:getItemRectMin()local x1,y1=self:getItemRectMax()if x then x1=x y0=y endlocal draw_list = self:getWindowDrawList()
draw_list:addTriangleFilled(x1-1,y0+1,x1-4,y0+1,x1-1,y0+4, 0xe5e5e5)end
calling this right after creating the item worked fine before. now when not scrolled to the bottom, the triangles are positioned too much to the right, and thus barely visible. see attachments: -old version looking good:
Actually, I just tried this with "ImGui:selectable()" and the result is different:
On top - button, on the bottom - selectable, red rectangle - area given by "getItemRectMin" & "getItemRectMax". There was no changes to this functions on my side, so idk why it works like this now...
Actually, I just tried this with "ImGui:selectable()" and the result is different:
On top - button, on the bottom - selectable, red rectangle - area given by "getItemRectMin" & "getItemRectMax". There was no changes to this functions on my side, so idk why it works like this now...
yes, i use a selectable. and indeed my triangle is already smaller but the bigger issue is that when scrolling, it changes/disappears. any workarounds? what should i use instead of getitemrectmax?
@rrraptor , me neither, i wish they'd have a similar forum, as making issues for everything is very tedious and overkill. gideros is best (and i hope you will find a solution yet again).
@rrraptor thanks, this does the job. hopefully we can have the simpler solution back sometime (although hopefully not much a speed difference it makes when rendering 100 such triangles).
btw math.clamp is undocumented in gideros wiki. @MoKaLux i know you are the best to mention this to.
Comments
btw does the imgui plugin work with the non-qt destop export as well?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
in new version left click is not registered for me. i use it manually, that is i set
self.imgui = ImGui.new(nil, false, true, false).
and then in onTouch function i do basically:
if event.type=="touchesBegin" then
IO:setMouseDown(event.touch.mouseButton-1, true)
end
this worked before but does not work now. how should i change the syntax?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
i tried
IO:setConfigFlags(ImGui.ConfigFlags_None)
but it did not seem to make a difference.
ty
Fragmenter - animated loop machine and IKONOMIKON - the memory game
here is ascreenshot what window appears when i press ctrl+tab.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://github.com/ocornut/imgui/issues/3255
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
i think this popup window with list of windows is quite unorthodox to guis so there should be at least some way to disable this. the switching between windows feature is less of an issue, as it does not switch between anything anyway at the end, as every window has this feature disabled.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://github.com/ocornut/imgui/issues/4828
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
-old version looking good:
-new version good when scrolled down:
-new version bad when not scrolled down:
Fragmenter - animated loop machine and IKONOMIKON - the memory game
On top - button, on the bottom - selectable, red rectangle - area given by "getItemRectMin" & "getItemRectMax". There was no changes to this functions on my side, so idk why it works like this now...
btw for ctrl+tab there might be a disable option in later versions, see
https://github.com/ocornut/imgui/issues/4828
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Temporarily solution:
btw math.clamp is undocumented in gideros wiki. @MoKaLux i know you are the best to mention this to.
Fragmenter - animated loop machine and IKONOMIKON - the memory game