Interface CreateNineSliceOptions

Information used to decide when an animation should be played for a NineSlice

interface CreateNineSliceOptions {
    bottomHeight: number;
    coordinates: CreateNineSliceOptionsCoordinates;
    coversEntities?: boolean;
    height: number;
    imagePath: string;
    leftWidth: number;
    rightWidth: number;
    topHeight: number;
    width: number;
}

Properties

bottomHeight: number

Optional coordinates that can be used to precisely define where the NineSlice should be on the screen

coversEntities?: boolean
height: number
imagePath: string

String path to the sprite sheet, automatically starts in images folder**

Example

imagePath: "player", // The actual path to the file is {PROJECTFILE}/images/player.png
leftWidth: number
rightWidth: number
topHeight: number
width: number