Table of Contents

Class SpriteNineRegion

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public class SpriteNineRegion : Sprite
Inheritance
SpriteNineRegion
Inherited Members

Constructors

SpriteNineRegion(string, SpritePart, int, int, int, int)

public SpriteNineRegion(string name, SpritePart baseSprite, int leftWidth, int rightWidth, int topHeight, int bottomHeight)

Parameters

name string
baseSprite SpritePart
leftWidth int
rightWidth int
topHeight int
bottomHeight int

Properties

BaseSprite

public SpritePart BaseSprite { get; }

Property Value

SpritePart

BottomHeight

public int BottomHeight { get; }

Property Value

int

LeftWidth

public int LeftWidth { get; }

Property Value

int

RightWidth

public int RightWidth { get; }

Property Value

int

Texture

public override Texture Texture { get; }

Property Value

Texture

TopHeight

public int TopHeight { get; }

Property Value

int

Methods

GetArrays(SpriteDrawData)

protected override DrawObject2D GetArrays(SpriteDrawData spriteDrawData)

Parameters

spriteDrawData SpriteDrawData

Returns

DrawObject2D

GetScaleToUse(float, float, float)

public override float GetScaleToUse(float width, float height, float scale)

Parameters

width float
height float
scale float

Returns

float

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).