AdvancedElementCheckBox

Provides a checkbox element for the advanced gui.

Author

Aton

Constructors

Link copied to clipboard

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 mouse clicks for this element and returns true if an action was performed

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

Render 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