G.RegisterDermaMenuForClose

From GMod Wiki

Jump to: navigation, search
Function
Syntax RegisterDermaMenuForClose( Panel Panel )
Where is this used?
Description:
Adds a panel to the table of panels that will get removed with G.CloseDermaMenus
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.RegisterDermaMenuForClose]G.RegisterDermaMenuForClose [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


See Also

Source:

function CloseDermaMenus()

    for k, menu in pairs( tblOpenMenus ) do
    
        menu:Remove()
    
    end    
    
    tblOpenMenus = {}

end

function RegisterDermaMenuForClose( menu )

    table.insert( tblOpenMenus, menu )

end
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox