ModStateImages

class ModStateImages(isVisual: Boolean, isUpdated: Boolean, visualImage: Image, updatedImage: Image)

Helper class keeps references to decoration images of installed mods to enable dynamic visibility (actually we do not use isVisible but refill a container selectively which allows the aggregate height to adapt and the set to center vertically)

Parameters

visualImage

image indicating enabled as permanent visual mod

updatedImage

image indicating online mod has been updated

Constructors

ModStateImages
Link copied to clipboard
fun ModStateImages(isVisual: Boolean = false, isUpdated: Boolean = false, visualImage: Image = ImageGetter.getImage("UnitPromotionIcons/Scouting"), updatedImage: Image = ImageGetter.getImage("OtherIcons/Mods"))

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
sortWeight
Link copied to clipboard
fun sortWeight(): Int
toString
Link copied to clipboard
open fun toString(): String
update
Link copied to clipboard
fun update()

Properties

container
Link copied to clipboard
val container: Table

The table containing the indicators (one per mod, narrow, arranges up to three indicators vertically)

isUpdated
Link copied to clipboard
var isUpdated: Boolean
isVisual
Link copied to clipboard
var isVisual: Boolean
spacer
Link copied to clipboard
private val spacer: Table
updatedImage
Link copied to clipboard
val updatedImage: Image
visualImage
Link copied to clipboard
val visualImage: Image

Sources

jvm source
Link copied to clipboard