Discord
Steam
/
Garry's Mod
/
Developers
/
Draw png
Login/Join
Event Log
Draw png
2 replies, posted
Search
In This Thread
Is it possible to draw a PNG directly to the screen or do I have to convert the format to a specific one?
.pngs work fine [code] local PlayerHUD = Material("materials/NiandraLades/theship/hud/player_hud.png") hook.Add("HUDPaint", "HP_HUD", function() surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetMaterial( PlayerHUD ) surface.DrawTexturedRect(ScrW()/2-512-100, ScrH() - 380, 512, 512 ) end [/code]
[QUOTE=NiandraLades;47574937].pngs work fine [code] local PlayerHUD = Material("materials/NiandraLades/theship/hud/player_hud.png") hook.Add("HUDPaint", "HP_HUD", function() surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetMaterial( PlayerHUD ) surface.DrawTexturedRect(ScrW()/2-512-100, ScrH() - 380, 512, 512 ) end [/code][/QUOTE] Thanks c:
Sorry, you need to
Log In
to post a reply to this thread.