AdvancedElementColor

Provides a color selector element for the advanced gui.

Author

Aton

Constructors

Link copied to clipboard
fun AdvancedElementColor(parent: AdvancedMenu, module: Module, setting: ColorSetting)

Functions

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

Check for arrow keys to move the slider by one increment.

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 override fun mouseReleased(mouseX: Int, mouseY: Int, state: Int)

Stops slider action on mouse release

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