on_component_option
fun on_component_option( interfaceId: Int, componentId: Int, option: String, behaviour: InterfaceOpContext.(subject: Actor) -> Unit)InterfaceOpContext.(subject: Actor) -> Unitimport rift.ts2.UI
val logout = UI.Logout.button.resolvedon_component_option(logout.interfaceId, logout.component, "Logout") { player -> player.message("Goodbye!")}interfaceId
Section titled “interfaceId”interfaceId: IntcomponentId
Section titled “componentId”componentId: Intoption
Section titled “option”option: StringProperties
Section titled “Properties”interfaceId
Section titled “interfaceId”val interfaceId: IntcomponentId
Section titled “componentId”val componentId: Intval op: Intoption
Section titled “option”val option: Stringval item: Intval slot: Intinventory
Section titled “inventory”val inventory: Inventory?val items: rift.items.ItemContainer?