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 SceneCanvasModifier and TypeMethodDescriptionEvery tile ofarea(its plane is ignored; the current plane projects).A tick countdown on a tile: fill fromramp, the number shadowed on top.SceneCanvas.countdown(net.runelite.api.coords.WorldPoint tile, String text, int ticksLeft, ColorRamp ramp) A countdown tile coloured byramp(ticksLeft)with customtexton top.Shadowed text above an actor (heightOffsetin scene units; the actor's height works).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, raisedheightOffsetscene units; off-screen draws nothing.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.Outline an actor (convex hull where available, its tile otherwise).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.Fill a tile withcoloratOverlayTheme.TILE_ALPHAand outline it solid.Fill and outline a tile with explicit colours; either may be null to skip it.Fill the tile under an actor.tile(WorldPoint, Color)for each tile; null draws nothing.Methods in privbot.ui.overlay with parameters of type SceneCanvasModifier and TypeMethodDescriptionprotected abstract voidPrivBotSceneOverlay.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 SceneCanvasModifier and TypeMethodDescription<S> PrivBotSceneOverlay<S> PrivBotOverlays.SceneBuilder.draw(Supplier<S> state, BiConsumer<SceneCanvas, S> drawer) The terminal step: the scene drawn fromstateon every render.