Class ScaledTexture
A 2D game texture.
Inherited Members
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledTexture : BaseElement, I2Dimensional, IRecalculable, IDrawable
Constructors
View SourceScaledTexture(PointF, SizeF, string, string)
Creates a new ScaledTexture with a Position and Size of zero.
Declaration
public ScaledTexture(PointF pos, SizeF size, string dictionary, string texture)
Parameters
Type | Name | Description |
---|---|---|
PointF | pos | The position of the Texture. |
SizeF | size | The size of the Texture. |
string | dictionary | The dictionary where the texture is located. |
string | texture | The texture to draw. |
ScaledTexture(string, string)
Creates a new ScaledTexture with a Position and Size of Zero.
Declaration
public ScaledTexture(string dictionary, string texture)
Parameters
Type | Name | Description |
---|---|---|
string | dictionary | The dictionary where the texture is located. |
string | texture | The texture to draw. |
Properties
View SourceDictionary
The dictionary where the texture is loaded.
Declaration
public string Dictionary { get; set; }
Property Value
Type | Description |
---|---|
string |
Texture
The texture to draw from the dictionary.
Declaration
public string Texture { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceDraw()
Draws the texture on the screen.
Declaration
public override void Draw()
Overrides
View SourceDrawSpecific(PointF, PointF)
Draws a specific part of the texture on the screen.
Declaration
public virtual void DrawSpecific(PointF topLeft, PointF bottomRight)
Parameters
Type | Name | Description |
---|---|---|
PointF | topLeft | The top left corner of the area to draw. |
PointF | bottomRight | The bottom right corner of the area to draw. |
Recalculate()
Recalculates the position based on the size.
Declaration
public override void Recalculate()