MagicCombatRenderShapes

Types

Link copied to clipboard
data class Highlight(val x: Float, val y: Float, val r: Float, var a: Float)

Data class defining position, radius and opacity of a circle to highlight things.

Functions

Link copied to clipboard
fun renderHighlights(highlights: List<MagicCombatRenderShapes.Highlight>, viewMult: Float, color: Color = defaultHighlightColor)

Render circles in given color. You can call this in your render or onHover methods to e.g. visualize what a given button affects

Link copied to clipboard
fun renderTextbox(text: <Error class: unknown class>, xPos: Float, yPos: Float, buffer: Float, color: Color = defaultTextBoxColor, frameColor: Color = defaultFrameColor)

Render a textbox for given string at given position.

Properties

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