Garry's Mod Wiki

Revision Difference

DFrame:OnClose#545761

<function name="OnClose" parent="DFrame" type="panelfunc">⤶ <function name="OnClose" parent="DFrame" type="panelhook">⤶ <ispanel>yes</ispanel> <description> Called when the DFrame is closed with <page>DFrame:Close</page>. This applies when the `close` button in the DFrame's control box is clicked. This function is does nothing and is safe to override. This is **not** called when the DFrame is removed with <page>Panel:Remove</page>. This is **not** called when the DFrame is removed with <page>Panel:Remove</page>, see <page>PANEL:OnRemove</page> for that. </description> <realm>Client</realm> <file line="101-L102">lua/vgui/dframe.lua</file> </function>