Skip to content

SlotContent

class SlotContent
Example
on_input<DeveloperCommandInput> { player ->
if (name != "uis") return@on_input
val slots = player.findComponent<UserInterface>()?.slots ?: return@on_input
for ((slot, content) in slots) player.message("$slot: ${content.ui}${if (content.mode is Modal) " (modal)" else ""}")
}
val ui: UIName
val mode: OpenMode