Skip to content

net.kernelpanicsoft.archie.gui.modifiers.appearance

Types

BackgroundModifier

data class BackgroundModifier(
    val startColor: Int, 
    val endColor: Int, 
    val gradientDirection: GradientDirection = GradientDirection.TOP_TO_BOTTOM
) : Modifier.Element<BackgroundModifier> , DrawModifier

A DrawModifier that fills a composable's background with a solid colour or a two-stop linear gradient.

BorderModifier

data class BorderModifier(val color: Int, val thickness: Int) : Modifier.Element<BorderModifier> , DrawModifier

A DrawModifier that draws a rectangular border around a composable.

GradientDirection

The direction along which a background gradient transitions.

TextureModifier

data class TextureModifier(val texture: ResourceLocation) : Modifier.Element<TextureModifier> 

A Modifier.Element that overrides the texture used by certain theme-aware composables (such as net.kernelpanicsoft.archie.gui.Slot).

TooltipModifier

data class TooltipModifier(val lines: List<Component>) : Modifier.Element<TooltipModifier> 

A Modifier.Element carrying the tooltip lines a composable shows on hover.

Functions

tooltipAt

fun tooltipAt(
    node: LayoutNode, 
    mouseX: Int, 
    mouseY: Int
): List<Component>?

The tooltip of the deepest node under (mouseX, mouseY) that declares one, or null.