@keszegh Try the new version, maybe its fixed, but I think its something wrong with lua stack which can be affect by any function
the issue happened actually even faster than before with the new version. btw i did not have such an issue until a day or two ago when i updated to the latest dll as of that time.
i think i asked earlier but i still don't know if this is possible: can one trigger a function when a popup is closed? (e.g. when the user clicks elsewhere)
@rrraptor , now if i click on x of a window it does not close but it did before. i suspect it is due to a new dll as i don't remember changing things related to this.
i'm doing something like this:
if _layerWindowOpen then
_layerWindowOpen=imgui:beginWindow("Layers", _layerWindowOpen, ImGui.WindowFlags_NoNav|ImGui.WindowFlags_NoResize|ImGui.WindowFlags_NoScrollbar)--...
imgui:endWindow()end
EDIT: i checked and my code works fine (with this respect) with the imgui plugin bundled with latest gideros, and does not work with the dll you've sent.
frameborder has some kind of antialiasing, see right widget on attached image when zoomed in a lot. can this be turned off so that boundary of widget is the same as for widget next to it that has no border.
also i cannot match the color, the color of the border is not exactly what i set with imgui:setStyleColor(ImGui.Col_Border,...)
@keszegh Try the new version, maybe its fixed, but I think its something wrong with lua stack which can be affect by any function
the issue happened actually even faster than before with the new version. btw i did not have such an issue until a day or two ago when i updated to the latest dll as of that time.
this issue makes my app completely unusable. is there at least some way i can prevent it from happening? that's a serious issue.
@keszegh So, I accidentally changed the order in which the variables are returned. Now everything is ok. Also added "StackChecker" in order to understand at what point a crash can occur. In DebugView it sould look like this:
frameborder has some kind of antialiasing, see right widget on attached image when zoomed in a lot. can this be turned off so that boundary of widget is the same as for widget next to it that has no border.
Perhabs you can do this:
local backupAAL = style:getAntiAliasedLines()-- terrable name btw
style:setAntiAliasedLines(false)-- draw image with border
style:setAntiAliasedLines(backupAAL)
it is interesting that when i set antiAliasedLines(false) then the tick in the checkboxes started to look very similarly jittery as my images, so i guess for some reason no antialias is happening on my images (scaledImageButtons etc), even though i checked and the textures i use for them have filtering on.
i still did not find a way to set the window positions to some given place when a user wants to (i.e., clicks on a 'reset window positions' button) - note that this position may depend on the current screen size so they are not predefined constants. do you have an idea how to achieve this?
and it does work if i did not yet move the window manually since the app started. it even works multiple times (e.g. i set a button for positioning the window to the left of the screen and another to the right, then alternately pressing these buttons will move the window back and forth). BUT if i move the window manually any time then positioning with setWindowPos won't work anymore. so it seems to me that this is perhaps not an imgui specificity but perhaps a bug. at least what i'd expect seems quite logical to me, can you have a look? ty
thanks, actually the issue was that i was snapping windows to grid and once a window moved it was kept snapped. once i knew that your code should work, i did realize the problem, so even if i made the mistake, your help was needed.
now i only need a new gideros version so i can export to mac as well.
@rrraptor , finally gideros can register button click of wacom pens as a right-click ( @hgy29 sent me a custom dll that can do this). can you also make it that this is also registered by imgui as a right-click? (as it does not do this yet). thanks.
@rrraptor , finally gideros can register button click of wacom pens as a right-click ( @hgy29 sent me a custom dll that can do this). can you also make it that this is also registered by imgui as a right-click? (as it does not do this yet). thanks.
@rrraptor , finally gideros can register button click of wacom pens as a right-click ( @hgy29 sent me a custom dll that can do this). can you also make it that this is also registered by imgui as a right-click? (as it does not do this yet). thanks.
Comments
i have the following window variant which snaps to grid points:
local r1,r2=self:beginWindow(label, p_open, flags )
with message
"attempt to call a nil value".
do you have any clue about the reason?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Try the new version, maybe its fixed, but I think its something wrong with lua stack which can be affect by any function
btw @hgy29 may want to look into it if there is some general lua issue involved.
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
can one trigger a function when a popup is closed? (e.g. when the user clicks elsewhere)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
i'm doing something like this:
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
also i cannot match the color, the color of the border is not exactly what i set with imgui:setStyleColor(ImGui.Col_Border,...)
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
So, I accidentally changed the order in which the variables are returned. Now everything is ok. Also added "StackChecker" in order to understand at what point a crash can occur. In DebugView it sould look like this:
Can you test new version?)
Likes: MoKaLux
Likes: keszegh
i will respond to the other stuff as well later.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
btw, is there a setStyleVar function too?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
on the other hand, on the same attachment you can also see how the icon is not antialiased and looks jittery (left side).
the crashing probably stopped, i need to test further but i hope so.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
do you have an idea how to achieve this?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
i have the following line before my beginWindow:
imgui:setNextWindowPos(0, 20, ImGui.Cond_FirstUseEver)
one would think that when i want to reset the window then this would work (the name of the window is "Tools"):
gui.imgui:setWindowPos("Tools", 0, 225, ImGui.Cond_Always)
and it does work if i did not yet move the window manually since the app started. it even works multiple times (e.g. i set a button for positioning the window to the left of the screen and another to the right, then alternately pressing these buttons will move the window back and forth).
BUT if i move the window manually any time then positioning with setWindowPos won't work anymore.
so it seems to me that this is perhaps not an imgui specificity but perhaps a bug. at least what i'd expect seems quite logical to me, can you have a look?
ty
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
???
actually the issue was that i was snapping windows to grid and once a window moved it was kept snapped. once i knew that your code should work, i did realize the problem, so even if i made the mistake, your help was needed.
now i only need a new gideros version so i can export to mac as well.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux, SinisterSoft
Fragmenter - animated loop machine and IKONOMIKON - the memory game