Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
Called whenever the panel should be drawn. You can create panels with a customized appearance by overriding their Paint() function, which will prevent the default appearance from being drawn. Render operations from the surface (and consequentially the draw) are always offset by the global...
Draws a rounded rectangle. If you do not define a cornerRadius, surface. DrawRect will be used instead for performance. This is a rendering function that requires a 2d rendering context. This means that it will only work in 2d Rendering Hooks.
wiki.facepunch.com
Код:
local frame = vgui.Create("DFrame")
frame:MakePopup()
frame:SetSize(400, 200)
frame:Center()
function frame:Paint(w,h)
draw.RoundedBox(0,0,w,h,Color(20,20,20))
end
Called whenever the panel should be drawn. You can create panels with a customized appearance by overriding their Paint() function, which will prevent the default appearance from being drawn. Render operations from the surface (and consequentially the draw) are always offset by the global...
Draws a rounded rectangle. If you do not define a cornerRadius, surface. DrawRect will be used instead for performance. This is a rendering function that requires a 2d rendering context. This means that it will only work in 2d Rendering Hooks.
wiki.facepunch.com
Код:
local frame = vgui.Create("DFrame")
frame:MakePopup()
frame:SetSize(400, 200)
frame:Center()
function frame:Paint(w,h)
draw.RoundedBox(0,0,w,h,Color(20,20,20))
end
На данном сайте используются файлы cookie, чтобы персонализировать контент и сохранить Ваш вход в систему, если Вы зарегистрируетесь. Продолжая использовать этот сайт, Вы соглашаетесь на использование наших файлов cookie.
You may choose not to have a unique web analytics cookie identification number assigned to your computer to avoid the aggregation and analysis of data collected on this website.