Garry's Mod Wiki

Revision Difference

Global.CreateSprite#568154

<function name="CreateSprite" parent="Global" type="libraryfunc"> <description>Creates and returns a new <page>DSprite</page> element with the supplied material.</description> <realm>Client</realm> <args> <arg name="material" type="IMaterial">Material the sprite should draw.</arg> </args> <rets> <ret name="" type="Panel">The new <page>DSprite</page> element.</ret> <ret name="" type="DSprite">The new <page>DSprite</page> element.</ret> </rets> </function>