Uses of Class
privbot.ui.overlay.SceneCanvas

Packages that use SceneCanvas
Package
Description
The in-game overlay kit: HUD panels and scene drawing that work the same on every server.
  • Uses of SceneCanvas in privbot.ui.overlay

    Methods in privbot.ui.overlay that return SceneCanvas
    Modifier and Type
    Method
    Description
    SceneCanvas.area(net.runelite.api.coords.WorldArea area, Color color)
    Every tile of area (its plane is ignored; the current plane projects).
    SceneCanvas.countdown(net.runelite.api.coords.WorldPoint tile, int ticksLeft, ColorRamp ramp)
    A tick countdown on a tile: fill from ramp, the number shadowed on top.
    SceneCanvas.countdown(net.runelite.api.coords.WorldPoint tile, String text, int ticksLeft, ColorRamp ramp)
    A countdown tile coloured by ramp(ticksLeft) with custom text on top.
    SceneCanvas.label(net.runelite.api.Actor actor, String text, Color color, int heightOffset)
    Shadowed text above an actor (heightOffset in scene units; the actor's height works).
    SceneCanvas.label(net.runelite.api.coords.WorldPoint tile, String text, Color color)
    Shadowed text centred over a tile at ground level.
    SceneCanvas.label(net.runelite.api.coords.WorldPoint tile, String text, Color color, int heightOffset)
    Shadowed text centred over a tile, raised heightOffset scene units; off-screen draws nothing.
    SceneCanvas.labelBox(int x, int y, List<String> lines, Color textColor)
    A translucent box sized to its lines, drawn at a canvas point (debug boxes over NPC heads).
    SceneCanvas.line(net.runelite.api.coords.WorldPoint a, net.runelite.api.coords.WorldPoint b, Color color)
    A 2 px line between two tile centres at ground level; nothing if either end is off-screen.
    SceneCanvas.outline(net.runelite.api.Actor actor, Color color)
    Outline an actor (convex hull where available, its tile otherwise).
    SceneCanvas.path(List<net.runelite.api.coords.WorldPoint> tiles, Color color)
    A polyline through tile centres; unprojectable tiles break the line rather than skew it.
    SceneCanvas.progressBar(int x, int y, int w, int h, double fraction, Color color)
    A rounded progress bar in canvas space.
    SceneCanvas.shadowText(int x, int y, String text, Color color)
    Text with a 1 px black drop shadow, the way every plugin drew it.
    SceneCanvas.tile(net.runelite.api.coords.WorldPoint tile, Color color)
    Fill a tile with color at OverlayTheme.TILE_ALPHA and outline it solid.
    SceneCanvas.tile(net.runelite.api.coords.WorldPoint tile, Color fill, Color border)
    Fill and outline a tile with explicit colours; either may be null to skip it.
    SceneCanvas.tileOf(net.runelite.api.Actor actor, Color color)
    Fill the tile under an actor.
    SceneCanvas.tiles(Iterable<net.runelite.api.coords.WorldPoint> tiles, Color color)
    tile(WorldPoint, Color) for each tile; null draws nothing.
    Methods in privbot.ui.overlay with parameters of type SceneCanvas
    Modifier and Type
    Method
    Description
    protected abstract void
    PrivBotSceneOverlay.draw(SceneCanvas canvas, S state)
    Draw this render's scene; called only with a non-null state.
    Method parameters in privbot.ui.overlay with type arguments of type SceneCanvas
    Modifier and Type
    Method
    Description
    PrivBotOverlays.SceneBuilder.draw(Supplier<S> state, BiConsumer<SceneCanvas,S> drawer)
    The terminal step: the scene drawn from state on every render.