Panel

class Panel(var category: Category, var clickgui: ClickGUI)

Provides a category panel for the click gui.

Author

Aton

Constructors

Link copied to clipboard
fun Panel(category: Category, clickgui: ClickGUI)

Types

Link copied to clipboard
object Companion

Functions

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

Renders the panel and dispatches the rendering of its moduleButtons.

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

Dispatches key press to its moduleButtons.

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

Handles clicks on the panel and disptaches the click to its moduleButtons.

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

Handles mouse release for the panel and dispatches it to its moduleButtons.

Link copied to clipboard
fun scroll(amount: Int, mouseX: Int, mouseY: Int): Boolean

Scrolls the panel extension by the given number of elements. If the panel is not extended does nothing.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var dragging: Boolean = false
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val visible: Boolean = true
Link copied to clipboard
val width: Int
Link copied to clipboard
var x: Int

Absolute position of the panel on the screen.

Link copied to clipboard
var y: Int

Absolute position of the panel on the screen.