ElementSelector

Provides a selector element.

Author

Aton

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float): Int

Sets up the rendering of the element and dispatches rendering of the individual implementations.

Link copied to clipboard
open fun keyTyped(typedChar: Char, keyCode: Int): Boolean

Overridden in the elements to enable key detection.

Link copied to clipboard
open override fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int): Boolean

Handles interaction with this element. Returns true if interacted with the element to cancel further interactions.

Link copied to clipboard
open fun mouseReleased(mouseX: Int, mouseY: Int, state: Int)
Link copied to clipboard
fun update()

Updates the height of the Element based on extended.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var height: Int

Height of the complete element included optional dropdown.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
var x: Int

Relative position of this element in respect to parent.

Link copied to clipboard

Absolute position of the panel on the screen.

Link copied to clipboard
var y: Int

Relative position of this element in respect to parent.

Link copied to clipboard

Absolute position of the panel on the screen.