I’m trying to make a buy menu in Derma, but the weapon icons seem to be really small
https://dl.dropboxusercontent.com/u/9453125/weapon.png
Is there a better way to go about this?
BoonPBuyMenu.DermaPanel3 = vgui.Create( "DPanel", BoonPBuyMenu.DermaPanel )
BoonPBuyMenu.DermaPanel3:SetPos( 220, 33 )
BoonPBuyMenu.DermaPanel3:SetSize( 100, 100 )
BoonPBuyMenu.DermaPanel3.Paint = function()
draw.RoundedBox(2, 0, 0, 200, 200, Color( 84, 125, 140, 255) )
end
local icon = vgui.Create( "DModelPanel", BoonPBuyMenu.DermaPanel )
icon:SetPos( 10, 33 )
icon:SetSize( 100, 100 )
icon:SetModel( 'models/weapons/w_rif_ak47.mdl' )
icon.DoClick = function ()
RunConsoleCommand( 'kill' )
icon:SetVisible(false)
BoonPBuyMenu.DermaPanel:SetVisible(false)