Package com.unciv.ui.civilopedia

Types

CivilopediaCategories
Link copied to clipboard
enum CivilopediaCategories(label: String, hide: Boolean, getImage: (name: String, size: Float) -> Actor??, key: KeyCharAndCode, headerIcon: String) : Enum<CivilopediaCategories>

Enum used as keys for Civilopedia "pages" (categories).

CivilopediaImageGetters
Link copied to clipboard
object CivilopediaImageGetters

Encapsulates the knowledge on how to get an icon for each of the Civilopedia categories

CivilopediaScreen
Link copied to clipboard
class CivilopediaScreen(ruleset: Ruleset, previousScreen: BaseScreen, category: CivilopediaCategories, link: String) : BaseScreen

Screen displaying the Civilopedia

FormattedLine
Link copied to clipboard
class FormattedLine(text: String, link: String, icon: String, extraImage: String, imageSize: Float, size: Int, header: Int, indent: Int, padding: Float, color: String, separator: Boolean, starred: Boolean, centered: Boolean, iconCrossed: Boolean)

Represents a decorated text line with optional linking capability. A line can have text with optional size, color, indent or as header; and up to three icons: link, object, star in that order. Special cases:

ICivilopediaText
Link copied to clipboard
interface ICivilopediaText

Addon common to most ruleset game objects managing civilopedia display

MarkupRenderer
Link copied to clipboard
object MarkupRenderer

Makes renderer available outside ICivilopediaText

SimpleCivilopediaText
Link copied to clipboard
open class SimpleCivilopediaText(civilopediaText: List<FormattedLine>) : ICivilopediaText

Storage class for instantiation of the simplest form containing only the lines collection