RAGENativeUI.Elements.Sprite.Sprite C# (CSharp) Method

Sprite() public method

Creates a game sprite object from a texture dictionary and texture name.
public Sprite ( string textureDict, string textureName, Point position, Size size, float heading, Color color ) : System
textureDict string
textureName string
position Point
size System.Drawing.Size
heading float
color Color
return System
        public Sprite(string textureDict, string textureName, Point position, Size size, float heading, Color color)
        {
            if (!NativeFunction.CallByName<bool>("HAS_STREAMED_TEXTURE_DICT_LOADED", textureDict))
                NativeFunction.CallByName<uint>("REQUEST_STREAMED_TEXTURE_DICT", textureDict, true);
            TextureDictionary = textureDict;
            TextureName = textureName;

            Position = position;
            Size = size;
            Heading = heading;
            Color = color;
            Visible = true;
        }

Same methods

Sprite::Sprite ( string textureDict, string textureName, Point position, Size size ) : System