ImageGetter

object ImageGetter

Types

VerticalProgressBar
Link copied to clipboard
class VerticalProgressBar(width: Float, height: Float) : Group

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getAvailableTilesets
Link copied to clipboard
fun getAvailableTilesets(): Sequence<String>
getBackground
Link copied to clipboard
fun getBackground(color: Color): Drawable
getBlue
Link copied to clipboard
fun getBlue(): Color
getCheckBox
Link copied to clipboard
fun getCheckBox(): Drawable
getCheckBoxPressed
Link copied to clipboard
fun getCheckBoxPressed(): Drawable
getCircle
Link copied to clipboard
fun getCircle(): Image
getCircledReligionIcon
Link copied to clipboard
fun getCircledReligionIcon(iconName: String, size: Float): IconCircleGroup
getColorFromStats
Link copied to clipboard
private fun getColorFromStats(stats: Stats): Color
getConstructionImage
Link copied to clipboard
fun getConstructionImage(construction: String): Image
getDot
Link copied to clipboard
fun getDot(dotColor: Color): Image
getDrawable
Link copied to clipboard
fun getDrawable(fileName: String): TextureRegionDrawable
getExternalImage
Link copied to clipboard
fun getExternalImage(fileName: String): Image
getHealthBar
Link copied to clipboard
fun getHealthBar(currentHealth: Float, maxHealth: Float, healthBarSize: Float): Table
getImage
Link copied to clipboard
fun getImage(fileName: String): Image
getImprovementIcon
Link copied to clipboard
fun getImprovementIcon(improvementName: String, size: Float = 20f): Actor
getLayeredImageColored
Link copied to clipboard
fun getLayeredImageColored(baseFileName: String, vararg colors: Color?): ArrayList<Image>

Colors a multilayer image and returns it as a list of layers (Image).

getLine
Link copied to clipboard
fun getLine(startX: Float, startY: Float, endX: Float, endY: Float, width: Float): Image
getNationIcon
Link copied to clipboard
fun getNationIcon(nation: String): Image
getNationIndicator
Link copied to clipboard
fun getNationIndicator(nation: Nation, size: Float): IconCircleGroup
getProgressBarVertical
Link copied to clipboard
fun getProgressBarVertical(width: Float, height: Float, percentComplete: Float, progressColor: Color, backgroundColor: Color): Group
getPromotionIcon
Link copied to clipboard
fun getPromotionIcon(promotionName: String, size: Float = 30f): Actor
getRandomNationIndicator
Link copied to clipboard
fun getRandomNationIndicator(size: Float): IconCircleGroup
getRectangleWithOutline
Link copied to clipboard
fun getRectangleWithOutline(): NinePatchDrawable
getRedCross
Link copied to clipboard
fun getRedCross(size: Float, alpha: Float): Actor
getReligionImage
Link copied to clipboard
fun getReligionImage(iconName: String): Image
getResourceImage
Link copied to clipboard
fun getResourceImage(resourceName: String, size: Float): Actor
getRoundedEdgeRectangle
Link copied to clipboard
fun getRoundedEdgeRectangle(tintColor: Color? = null): NinePatchDrawable
getSelectBox
Link copied to clipboard
fun getSelectBox(): NinePatchDrawable
getSelectBoxPressed
Link copied to clipboard
fun getSelectBoxPressed(): NinePatchDrawable
getSpecialistIcon
Link copied to clipboard
fun getSpecialistIcon(color: Color): Image
getStatIcon
Link copied to clipboard
fun getStatIcon(statName: String): Image
getTechIcon
Link copied to clipboard
fun getTechIcon(techName: String): Image
getTechIconGroup
Link copied to clipboard
fun getTechIconGroup(techName: String, circleSize: Float): IconCircleGroup
getTriangle
Link copied to clipboard
fun getTriangle(): Image
getUnitIcon
Link copied to clipboard
fun getUnitIcon(unitName: String, color: Color = Color.BLACK): Image
getWhiteDot
Link copied to clipboard
fun getWhiteDot(): Image
getWonderImage
Link copied to clipboard
fun getWonderImage(wonderName: String): Image
hashCode
Link copied to clipboard
open fun hashCode(): Int
imageExists
Link copied to clipboard
fun imageExists(fileName: String): Boolean
loadModAtlases
Link copied to clipboard
fun loadModAtlases(mod: String, folder: FileHandle)

Loads all atlas/texture files from a folder, as controlled by an Atlases.json

nationIconExists
Link copied to clipboard
private fun nationIconExists(nation: String): Boolean
religionIconExists
Link copied to clipboard
fun religionIconExists(iconName: String): Boolean
resetAtlases
Link copied to clipboard
fun resetAtlases()
setNewRuleset
Link copied to clipboard
fun setNewRuleset(ruleset: Ruleset)

Required every time the ruleset changes, in order to load mod-specific images

techIconExists
Link copied to clipboard
fun techIconExists(techName: String): Boolean
toString
Link copied to clipboard
open fun toString(): String
unitIconExists
Link copied to clipboard
fun unitIconExists(unitName: String): Boolean
wonderImageExists
Link copied to clipboard
fun wonderImageExists(wonderName: String): Boolean

Properties

atlas
Link copied to clipboard
lateinit var atlas: TextureAtlas
atlases
Link copied to clipboard
private val atlases: HashMap<String, TextureAtlas>
cultureCircleColor
Link copied to clipboard
private val cultureCircleColor: Color
foodCircleColor
Link copied to clipboard
val foodCircleColor: Color
goldCircleColor
Link copied to clipboard
private val goldCircleColor: Color
productionCircleColor
Link copied to clipboard
private val productionCircleColor: Color
ruleset
Link copied to clipboard
var ruleset: Ruleset
scienceCircleColor
Link copied to clipboard
private val scienceCircleColor: Color
textureRegionDrawables
Link copied to clipboard
private val textureRegionDrawables: HashMap<String, TextureRegionDrawable>
whiteDotLocation
Link copied to clipboard
private const val whiteDotLocation: String

Sources

jvm source
Link copied to clipboard