DSprite
Description
A panel that draws a sprite on the player's HUD with the given IMaterial, Color and rotation.
A shortcut for this is CreateSprite().
Parent
Derives methods, etc not listed on this page from DPanel.
Methods
We advise against using this. It may be changed or removed in a future update.
Returns the value set by DSprite:SetHandle
IMaterial DSprite:GetMaterial()
Gets the material the sprite is using.
number DSprite:GetRotation()
Gets the 2D rotation angle of the sprite, in the plane of the screen.
We advise against using this. It may be changed or removed in a future update.
Seems to be an unused feature. Does nothing.
DSprite:SetMaterial( IMaterial material )
Sets the source material for the sprite.
DSprite:SetRotation( number ang )
Sets the 2D rotation angle of the sprite, in the plane of the screen.