ElementKeyBind

Provides a key bind 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 override fun keyTyped(typedChar: Char, keyCode: Int): Boolean

Register key strokes. Used to set the key bind.

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

Handles mouse clicks for this element and returns true if an action was performed. Used to interact with the element and to register mouse binds.

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
val mod: Module
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.