ClickGUI

class ClickGUI : GuiScreen

Main class of the Click GUI.

Provides the gui which can be viewed in game.

This class dispatches all rendering and input actions to the components of the GUI.

Structure of the GUI is: ClickGUI ->Panels ->ModuleButtons ->Elements. Each component of the gui handles it own actions and dispatches them to its subcomponents.

Partially based on HeroCode's gui. The only reference to it, and my source for it is this YouTube video.

Author

Aton

Constructors

Link copied to clipboard
fun ClickGUI()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open override fun confirmClicked(result: Boolean, id: Int)
Link copied to clipboard
open override fun doesGuiPauseGame(): Boolean
Link copied to clipboard
open fun drawBackground(tint: Int)
Link copied to clipboard
open fun drawCenteredString(fontRendererIn: FontRenderer, text: String, x: Int, y: Int, color: Int)
Link copied to clipboard
Link copied to clipboard
open override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float)

Dispatches all rendering for the GUI.

Link copied to clipboard
open fun drawString(fontRendererIn: FontRenderer, text: String, x: Int, y: Int, color: Int)
Link copied to clipboard
open fun drawTexturedModalRect(xCoord: Int, yCoord: Int, textureSprite: TextureAtlasSprite, widthIn: Int, heightIn: Int)
open fun drawTexturedModalRect(xCoord: Float, yCoord: Float, minU: Int, minV: Int, maxU: Int, maxV: Int)
open fun drawTexturedModalRect(x: Int, y: Int, textureX: Int, textureY: Int, width: Int, height: Int)
Link copied to clipboard
open fun drawWorldBackground(tint: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun handleInput()
Link copied to clipboard
Link copied to clipboard
open override fun handleMouseInput()

Handles scrolling.

Link copied to clipboard
open override fun initGui()
Link copied to clipboard
open override fun onGuiClosed()
Link copied to clipboard
open fun onResize(mcIn: Minecraft, w: Int, h: Int)
Link copied to clipboard
open fun sendChatMessage(msg: String)
open fun sendChatMessage(msg: String, addToChat: Boolean)
Link copied to clipboard
open fun setGuiSize(w: Int, h: Int)
Link copied to clipboard
Link copied to clipboard
open fun setWorldAndResolution(mc: Minecraft, width: Int, height: Int)
Link copied to clipboard
open fun updateScreen()

Properties

Link copied to clipboard

Used to create the advanced menu for modules

Link copied to clipboard
Link copied to clipboard
var height: Int
Link copied to clipboard
var mc: Minecraft
Link copied to clipboard
var scale: Double = 2.0
Link copied to clipboard
var width: Int