• :SetPos DPropertySheet
    0 replies, posted
How can i change the position of my Checkboxes ?! My Code - ----------------------------- function CinemaHelper() local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50, 50 ) DermaPanel:SetSize( 350, 400 ) DermaPanel:SetTitle( "CinemaHelper" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:ShowCloseButton( true ) DermaPanel:MakePopup() -- /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\ -- | Hding Stuff panel | -- \______________________________________________/ local PropertySheet = vgui.Create( "DPropertySheet" ) PropertySheet:SetParent( DermaPanel ) PropertySheet:SetPos( 5, 30 ) PropertySheet:SetSize( 350, 400 ) CinemaHide = vgui.Create( "DPanel" ) CinemaHide:SetPos(0,0) CinemaHide:SetSize(20,20) local CinemaHidetwo = vgui.Create( "DCheckBoxLabel", PropertySheet ) CinemaHidetwo:SetText( "Hide Hud" ) CinemaHidetwo:SetParent(CinemaHide.Panel) CinemaHidetwo:SetConVar( "cl_drawhud" ) CinemaHidetwo:SetValue( 1 ) CinemaHidetwo:SizeToContents() local CinemaHidethree = vgui.Create( "DCheckBoxLabel", PropertySheet ) CinemaHidethree:SetText( "Hide Weapon" ) CinemaHidethree:SetConVar( "r_drawviewmodel" ) CinemaHidethree:SetValue( 1 ) CinemaHidethree:SizeToContents() local CinemaHidefour = vgui.Create( "DNumSlider", PropertySheet ) CinemaHidefour:SetSize( 150, 50 ) -- Keep the second number at 50 CinemaHidefour:SetText( "Messages" ) CinemaHidefour:SetMin( 0 ) CinemaHidefour:SetMax( 12 ) CinemaHidefour:SetDecimals( 0 ) CinemaHidefour:SetConVar( "hud_saytext_time" ) CinemaHidefour:SizeToContents() -- /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\ -- | UseFull Commands | -- \______________________________________________/ PropertySheet:AddSheet( "Hide Stuff", CinemaHide, "gui/silkicons/wrench", false, false, "Here you can hide stuff !" ) end concommand.Add( "CinemaHelptwo", CinemaHelper ) --------------------------------------------------------------------------------------------------------------------------- If i try :SetPos( 5, 50 ) They just gets disabled :S Plz help Me ! Pic - [url]http://img138.imageshack.us/img138/7681/gmconstruct0005.jpg[/url]
Sorry, you need to Log In to post a reply to this thread.