[CODE]local HUD = {}
HUD.Background = vgui.Create( "Panel" )
HUD.Background:ParentToHUD()
HUD.Background:SetSize( 100, 15 )
HUD.Background:SetPos( 0, ScrH()-HUD.Background:GetTall() )
function HUD.Background:Paint( w, h )
DrawBlur(self, 10)
draw.RoundedBoxEx( 8, 0, 0, w, h, Color(0, 0, 0, 100), false, true, false, false )
end[/CODE]
Everytime i change for example the Size its overlapping the old one how can i fix that problem? -I already tryed emptying the table but its not working..
HUD.Background:Remove() coupled with checking if there is a HUD.Background already existing
[QUOTE=Derek_SM;51637368]HUD.Background:Remove() coupled with checking if there is a HUD.Background already existing[/QUOTE]
How can i check it? I tryed with if (HUD.Background) and if(IsValid(...))
Sorry, you need to Log In to post a reply to this thread.