ElementColor

Provides a color selector element.

Author

Aton

Constructors

Link copied to clipboard
fun ElementColor(parent: ModuleButton, setting: ColorSetting)

Types

Link copied to clipboard
object Companion

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

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
fun update()

Updates the height of the Element based on extended.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var dragging: Int? = null
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.