Skip to content

Ts2Component

data class Ts2Component(
val interfaceId: Int,
val component: Int,
val childIndex: Int
)
Example
import rift.ts2.UI
val logout = UI.Logout.button.resolved
on_input<InterfaceComponentClickInput> { player ->
if (logout.matches(interfaceId, componentId, childIndex)) player.message("You reach for the logout button.")
}
val interfaceId: Int
val component: Int
val childIndex: Int
val isStatic: Boolean
val packedId: Int
fun matches(
interfaceId: Int,
componentId: Int,
sub: Int
): Boolean
val NONE: Ts2Component