Package dev.twilite.client.ui.overlay
Annotation Interface OverlayPanel
Declares a class as a simple annotation-rendered overlay panel.
Annotated overlay panel classes should implement OverlayBinding so they can be referenced from
PluginDescriptor#overlay().
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintHeading and accent color in ARGB format.intPanel background color in ARGB format.intPanel border color in ARGB format.intGap between text columns in pixels.intNumber of text columns in the panel.intCorner arc used by the panel background.intFont size used for text rows.intGap between text rows in pixels.intHorizontal panel padding in pixels.intVertical panel padding in pixels.Panel anchor position.intText color in ARGB format.Optional heading rendered above text rows.intHorizontal inset from the canvas edge.intVertical inset from the canvas edge.
-
Element Details
-
position
OverlayPosition positionPanel anchor position.- Default:
TOP_LEFT
-
x
int xHorizontal inset from the canvas edge.- Default:
8
-
y
int yVertical inset from the canvas edge.- Default:
8
-
title
String titleOptional heading rendered above text rows.- Default:
""
-
text
int textText color in ARGB format.- Default:
-2630168
-
accent
int accentHeading and accent color in ARGB format.- Default:
-8530948
-
background
int backgroundPanel background color in ARGB format.- Default:
-670363368
-
border
int borderPanel border color in ARGB format. Use0for no border.- Default:
2050049628
-
fontSize
int fontSizeFont size used for text rows.- Default:
10
-
paddingX
int paddingXHorizontal panel padding in pixels.- Default:
10
-
paddingY
int paddingYVertical panel padding in pixels.- Default:
8
-
gap
int gapGap between text rows in pixels.- Default:
3
-
columns
int columnsNumber of text columns in the panel.- Default:
1
-
columnGap
int columnGapGap between text columns in pixels.- Default:
18
-
cornerArc
int cornerArcCorner arc used by the panel background.- Default:
8
-