Skip to main content

UI.UISlotElementProps

There are 12 types of UI elements given by Inner Core, and you can also create your custom ones. Each element type has it's own specific description object. These description objects are all inherited from this BasicElementDescription. It means that each element must have coords on the GUI by X, Y, and additionally Z axis, and also you can specify how the element will behave when touched, in clicker object (optional).

Hierarchy

Index

Properties

optionalbitmap

bitmap?: string

optionalclicker

clicker?: UIClickEvent

optionaldarken

darken?: boolean

optionaldisablePixelPerfect
since: 2.2.1b96

disablePixelPerfect?: boolean = false

optionaliconScale
since: 2.2.1b96

iconScale?: number = 0.82

optionalisDarkenAtZero

isDarkenAtZero?: boolean

optionalisTransparentBackground

isTransparentBackground?: boolean
That feature is obsolete

In 2.0.4b43, not needed anymore.

optionalisValid

isValid?: (id: number, count: number, data: number, container: Container, item: ItemInstance) => boolean

Type declaration

optionalmaxStackSize

maxStackSize?: number

optionalneedClean

needClean?: boolean
That feature is obsolete

In 2.0.4b43, not needed anymore.

optionalonItemChanged

onItemChanged?: (container: UiAbstractContainer, oldId: number, oldCount: number, oldData: number) => void

Type declaration

optionalsize

size?: number

Since 2.4.0b122o1 can be float, before it was rounded up, which could not indicate much accuracy.

optionalsource

source?: ItemInstance

optionaltext
since: 2.0.4b42

text?: string

optionalvisual

visual?: boolean

optionalx

x?: number

optionaly

y?: number

optionalz

z?: number