AdvancedElement

abstract class AdvancedElement<S : Setting<*>>(val parent: AdvancedMenu, val module: Module, val setting: S, val type: AdvancedElementType)

Class for all setting elements in the advanced menu to inherit from

Author

Aton

Constructors

Link copied to clipboard
fun <S : Setting<*>> AdvancedElement(parent: AdvancedMenu, module: Module, setting: S, type: AdvancedElementType)

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 fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int): Boolean
Link copied to clipboard
open fun mouseReleased(mouseX: Int, mouseY: Int, state: Int)
Link copied to clipboard
Link copied to clipboard
open fun renderElement(mouseX: Int, mouseY: Int, partialTicks: Float): Int
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
var comboextended: Boolean = false
Link copied to clipboard
var height: Int = 15

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
var listening: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val setting: S
Link copied to clipboard
var settingHeight: Int = 15

Height of the Setting without the description text.

Link copied to clipboard
var settingWidth: Int = 116

Width of the Setting without the description text.

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

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

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

Inheritors

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