Renderer

object Renderer

2D HUD drawing. Only valid inside a renderOverlay / HUD trigger, where JIM sets graphics to the frame's draw target (the 26.1.2 GuiGraphicsExtractor, i.e. the renamed GuiGraphics).

Coordinates are integers; colours are packed ARGB (use color).

Properties

Link copied to clipboard
var graphics: GuiGraphicsExtractor?

Set by the HUD render hook for the duration of each frame's overlay dispatch.

Functions

Link copied to clipboard
fun color(r: Int, g: Int, b: Int): Int
fun color(r: Int, g: Int, b: Int, a: Int): Int
Link copied to clipboard
fun drawLine(color: Int, x1: Int, y1: Int, x2: Int, y2: Int, width: Int)

Horizontal or vertical line (diagonals aren't supported by the HUD draw target).

Link copied to clipboard
fun drawRect(color: Int, x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun drawString(text: String, x: Int, y: Int, color: Int)
Link copied to clipboard
fun drawStringWithShadow(text: String, x: Int, y: Int, color: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard