How can I fix this gap ?
I used surface.DrawOutlinedRect
[IMG]http://i.imgur.com/CEUnX6m.jpg[/IMG]
Post your code
[CODE] local window = vgui.Create( "DFrame" )
if ScrW() > 640 then
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( "" )
window:SetVisible( true )
window:MakePopup()
window:ShowCloseButton(false)
window.Paint = function(s , w , h , x , y)
draw.RoundedBox(2, 0, 2, w, h, Color(52, 73, 94))
drawRectOutline( x, y, w, h, Color(0,0,0,255) )
end[/CODE]
Try
[lua] local window = vgui.Create( "DFrame" )
if ScrW() > 640 then
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( "" )
window:SetVisible( true )
window:MakePopup()
window:ShowCloseButton(false)
window.Paint = function(s , w , h , x , y)
draw.RoundedBox(2, 0, 2, w, h, Color(52, 73, 94))
drawRectOutline( x, y + 2, w, h, Color(0,0,0,255) )
end
[/lua]
[QUOTE=Gigabait;49995279][CODE] local window = vgui.Create( "DFrame" )
if ScrW() > 640 then
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( "" )
window:SetVisible( true )
window:MakePopup()
window:ShowCloseButton(false)
window.Paint = function(s , w , h , x , y)
draw.RoundedBox(2, 0, 2, w, h, Color(52, 73, 94))
drawRectOutline( x, y, w, h, Color(0,0,0,255) )
end[/CODE][/QUOTE]
The issue is your setting the y position of the first rounded box to 2
My inattention, thanks
Sorry, you need to Log In to post a reply to this thread.