• Good or better CS:S weapon icons?
    1 replies, posted
I'm trying to make a buy menu in Derma, but the weapon icons seem to be really small [img]https://dl.dropboxusercontent.com/u/9453125/weapon.png[/img] Is there a better way to go about this? [code]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)[/code]
Move the camera closer to the model? ( Check for needed functions here: [url]http://wiki.garrysmod.com/page/VGUI/Elements/DModelPanel[/url] )
Sorry, you need to Log In to post a reply to this thread.