AdvancedElementSelector

Provides a selector element for the advanced gui.

Author

Aton

Constructors

Link copied to clipboard
fun <T : Options, Enum<T>> AdvancedElementSelector(parent: AdvancedMenu, module: Module, setting: SelectorSetting<T>)

Functions

Link copied to clipboard
fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float)
Link copied to clipboard
open fun keyTyped(typedChar: Char, keyCode: Int): Boolean

Overridden in the elements to enable key detection. Returns true when an action was taken.

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
Link copied to clipboard
open override fun renderElement(mouseX: Int, mouseY: Int, partialTicks: Float): Int

Renders the element

Link copied to clipboard
fun setDimensions(x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun setPosition(x: Int, y: Int)

Properties

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

Height of the entire element consisting of the setting and description. Essentially the height of the higher one of the two

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Height of the Setting without the description text.

Link copied to clipboard

Width of the Setting without the description text.

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

Width of the entire element consisting of the setting and description.

Link copied to clipboard
var x: Int
Link copied to clipboard
var y: Int