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
table DSprite:
GetColor()
Gets the color the sprite is using as a modifier.
number DSprite:
GetRotation()
Gets the 2D rotation angle of the sprite, in the plane of the screen.
DSprite:
SetColor(
table color )
Sets the color modifier for the sprite.
DSprite:
SetHandle(
Vector vec )
Seems to be an unused feature. Does nothing.
DSprite:
SetRotation(
number ang )
Sets the 2D rotation angle of the sprite, in the plane of the screen.
Example
Creates a DSprite with the sent_ball
material, and sets the color to cyan.
Output: See Preview above.