on_ui_component_click
on_ui_component_click
Section titled “on_ui_component_click”
fun on_ui_component_click(behaviour: UIComponentClick.(subject: Entity) -> Unit)UIComponentClick.(subject: Entity) -> Unitimport rift.ts2.UI
on_ui_component_click(UI.Orbs.runbutton) { player -> player.message("You toggle run.")}Properties
Section titled “Properties”val ui: UINamecomponent
Section titled “component”val component: ComponentName?option
Section titled “option”val option: IntsubOption
Section titled “subOption”val subOption: Int?childIndex
Section titled “childIndex”val childIndex: Intval slot: Int?val item: ItemDefinition?val slots: List<Int>val owner: ComponentName?on_ui_component_click
Section titled “on_ui_component_click”
fun on_ui_component_click( component: ComponentName, behaviour: UIComponentClick.(subject: Entity) -> Unit)UIComponentClick.(subject: Entity) -> Unitcomponent
Section titled “component”component: ComponentNameProperties
Section titled “Properties”val ui: UINamecomponent
Section titled “component”val component: ComponentName?option
Section titled “option”val option: IntsubOption
Section titled “subOption”val subOption: Int?childIndex
Section titled “childIndex”val childIndex: Intval slot: Int?val item: ItemDefinition?val slots: List<Int>val owner: ComponentName?on_ui_component_click
Section titled “on_ui_component_click”
fun on_ui_component_click( ui: UIName, behaviour: UIComponentClick.(subject: Entity) -> Unit)UIComponentClick.(subject: Entity) -> Unitui: UINameProperties
Section titled “Properties”val ui: UINamecomponent
Section titled “component”val component: ComponentName?option
Section titled “option”val option: IntsubOption
Section titled “subOption”val subOption: Int?childIndex
Section titled “childIndex”val childIndex: Intval slot: Int?val item: ItemDefinition?val slots: List<Int>val owner: ComponentName?