thisdp/dgs

Dgs-dxwindow doesn't close

ERAGON007 opened this issue · 5 comments

Reproduce:

local window = dgsCreateWindow(.....)
dgsSetProperty(window, "dontClose", true)


addEventHandler("onDgsWindowClose", root,
function()
    local dontClose = dgsGetProperty(source, "dontClose")
    if (dontClose) then
        cancelEvent()
        dgsAlphaTo(source, 0.0, "Linear", 350)
        setTimer(function(elem)
            dgsSetVisible(elem, false)
            dgsSetAlpha(elem, 1.0)
        end, 750, 1, source)
    end
end
)

Try to close the window, it will close and the animation works.
But when you set window visible to true again and try to close it, it won't trigger and won't close

I remembered that xlive has fixed this issue 🤔

xLive commented

Yes, it was fixed in 8496cf7. Make sure you're using the latest version

I have dgs 3.519 installed

xLive commented

I have dgs 3.519 installed

It was fixed in 3.520

My bad then, thanks!