Fonts

object Fonts

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
resetFont
Link copied to clipboard
fun resetFont()
statToChar
Link copied to clipboard
fun statToChar(stat: Stat): Char
toString
Link copied to clipboard
open fun toString(): String

Properties

culture
Link copied to clipboard
const val culture: Char = '♪'
faith
Link copied to clipboard
const val faith: Char = '☮'
font
Link copied to clipboard
lateinit var font: BitmapFont
food
Link copied to clipboard
const val food: Char = '⁂'
gold
Link copied to clipboard
const val gold: Char = '¤'
happiness
Link copied to clipboard
const val happiness: Char = '⌣'
movement
Link copied to clipboard
const val movement: Char = '➡'
ORIGINAL_FONT_SIZE
Link copied to clipboard
const val ORIGINAL_FONT_SIZE: Float = 50f

All text is originally rendered in 50px (set in AndroidLauncher and DesktopLauncher), and thn scaled to fit the size of the text we need now. This has several advantages: It means we only render each character once (good for both runtime and RAM), AND it means that our 'custom' emojis only need to be once size (50px) and they'll be rescaled for what's needed.

production
Link copied to clipboard
const val production: Char = '⚙'
range
Link copied to clipboard
const val range: Char = '…'
rangedStrength
Link copied to clipboard
const val rangedStrength: Char = '‡'
science
Link copied to clipboard
const val science: Char = '⍾'
strength
Link copied to clipboard
const val strength: Char = '†'
turn
Link copied to clipboard
const val turn: Char = '⏳'

Sources

jvm source
Link copied to clipboard