SimpleThemeState¶
@Serializable
data class SimpleThemeState(
val texture: SResourceLocation,
val textureSize: Size,
val u: Int = 0,
val v: Int = 0,
val width: Int,
val height: Int,
val uWidth: Int,
val vHeight: Int
) : ThemeState
A fixed-size sprite slice within a sprite atlas or source image.
Constructors¶
SimpleThemeState¶
Properties¶
height¶
texture¶
open override val texture: SResourceLocation
Resource location of the sprite atlas or source image.
textureSize¶
@SerialName
(value = "texture_size")open override val textureSize: Size
Full pixel size of the source image when UV rendering is used.
u¶
Horizontal UV offset within the atlas.
uWidth¶
v¶
Vertical UV offset within the atlas.