Package-level declarations

Types

Link copied to clipboard
open class MagicCombatGuiBase constructor(guiLayout: MagicCombatGuiLayout = createDefaultMagicCombatGuiLayout())

The base class you need to extend/inherit from to create a GUI.

Link copied to clipboard
data class MagicCombatGuiLayout(val xAnchorRel: Float, val yAnchorRel: Float, val buttonWidthPx: Float, val buttonHeightPx: Float, val a: Float, val color: Color, val paddingPx: Float, val xTooltipRel: Float, val yTooltipRel: Float, val textSpacingBufferPx: Float, val fontPath: String, val xMessageRel: Float, val yMessageRel: Float)

Data class describing the layout, i.e. positions/spacings/color etc. of your GUI.

Link copied to clipboard
Link copied to clipboard
abstract class SampleMagicCombatGuiLauncher(hotkey: Char)

Class that, when added to engine via e.g. addPlugin, will open/close GUI when specified hotkey is pressed. Extend this class by overriding constructGui to construct a GuiObject that extends MagicCombatGuiBase. This class is mainly intended as an example or to quickly get started. In the long term, you probably want to implement your own GUI launching logic in order to be able to customize things.