Show / Hide Table of Contents

Class ScaledTexture

A 2D game texture.

Inheritance
object
BaseElement
ScaledTexture
ScaledAnim
Implements
I2Dimensional
IRecalculable
IDrawable
Inherited Members
BaseElement.literalPosition
BaseElement.relativePosition
BaseElement.literalSize
BaseElement.relativeSize
BaseElement.Position
BaseElement.Size
BaseElement.Color
BaseElement.Heading
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledTexture : BaseElement, I2Dimensional, IRecalculable, IDrawable

Constructors

View Source

ScaledTexture(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.

View Source

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 Source

Dictionary

The dictionary where the texture is loaded.

Declaration
public string Dictionary { get; set; }
Property Value
Type Description
string
View Source

Texture

The texture to draw from the dictionary.

Declaration
public string Texture { get; set; }
Property Value
Type Description
string

Methods

View Source

Draw()

Draws the texture on the screen.

Declaration
public override void Draw()
Overrides
BaseElement.Draw()
View Source

DrawSpecific(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.

View Source

Recalculate()

Recalculates the position based on the size.

Declaration
public override void Recalculate()
Overrides
BaseElement.Recalculate()

Implements

I2Dimensional
IRecalculable
IDrawable
  • View Source
In this article
Back to top Generated by DocFX