View Single Post
Old 11-05-2018, 05:20 PM   #324
ausbaxter
Human being with feelings
 
Join Date: Apr 2016
Posts: 39
Default

Hey Lokasenna,

I found a bug when closing out a "Window" class. When closing a window it calls

Code:
function GUI.Window:showlayers()
    
    -- Set the layer visibility back to where it was
    for i = 1, GUI.z_max do
        GUI.elms_hide[i] = self.elms_hide[i]
    end
    
    -- Hide the window and its child layers
    GUI.elms_hide[self.z] = true
    for k, v in pairs(self.z_set) do
        GUI.elms_hide[v] = true
    end
    
end
Here was the behavior I saw:



Redrawing the previously hidden layers worked after I reset the hidden elements table:

Code:
    for i = 1, GUI.z_max do
        GUI.elms_hide = {}
        GUI.elms_hide[i] = self.elms_hide[i]
    end
Probably should submit a pull request on your github sorry!
ausbaxter is offline   Reply With Quote