ModuleButton

class ModuleButton(val module: Module, val panel: Panel)

Provides the toggle button for modules in the click gui.

Author

Aton

Constructors

Link copied to clipboard
fun ModuleButton(module: Module, panel: Panel)

Functions

Link copied to clipboard
fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float): Int

Render the Button. Dispatches rendering of its menuElements.

Link copied to clipboard
fun keyTyped(typedChar: Char, keyCode: Int): Boolean

Dispatches key press to its menuElements.

Link copied to clipboard
fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int): Boolean

Handles mouse clicks for this element and dispatches them to its menuElements.

Link copied to clipboard
fun mouseReleased(mouseX: Int, mouseY: Int, state: Int)

Dispatches mouse released actions to its menuElements

Link copied to clipboard

Updates the menuElements.

Properties

Link copied to clipboard
var extended: Boolean = false
Link copied to clipboard
val height: Int
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 = 0

Relative position of this button in respect to panel.

Link copied to clipboard

Absolute position of the panel on the screen.

Link copied to clipboard
var y: Int = 0

Relative position of this button in respect to panel.

Link copied to clipboard

Absolute position of the panel on the screen.