Panel.ParentToHUD

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:ParentToHUD( )
Description:
Prevents the vgui from being drawn in the escape menu, however still draws when equipping the camera
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.ParentToHUD]Panel.ParentToHUD [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrevents it from being drawn in the escape menu
Used onNewerClient.png
Code
local p = vgui.Create("DPanel")
p:SetPos(0,0)
p:SetSize(300, 50)
p:ParentToHUD()
OutputThe panel will draw normally, except it will no longer be visible in the escape menu
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox