Class ScriptUiOverlay
- All Implemented Interfaces:
IUpdateable, Subscription, AutoCloseable
Manages transient UI elements, floating combat text, banners, and script-driven overlays.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()drawScreenText(String text, double screenX, double screenY, Color color) drawScreenText(String text, double screenX, double screenY, Color color, Font font, int durationMs) voidrender(Graphics2D g) voidshowBanner(String title, String subtitle, int durationMs) voidupdate()This method is called by the game loop on all objects that are attached to the loop.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IUpdateable
getUpdatePriorityMethods inherited from interface Subscription
unsubscribe
-
Constructor Details
-
ScriptUiOverlay
public ScriptUiOverlay()
-
-
Method Details
-
floatText
-
floatText
-
floatText
public FloatingText floatText(String text, Point2D location, Color color, Font font, int durationMs, double velocityY) -
drawScreenText
public ScriptUiOverlay.ScreenText drawScreenText(String text, double screenX, double screenY, Color color) -
drawScreenText
public ScriptUiOverlay.ScreenText drawScreenText(String text, double screenX, double screenY, Color color, Font font, int durationMs) -
showBanner
-
clear
public void clear() -
getFloatingTexts
-
getScreenTexts
-
update
public void update()Description copied from interface:IUpdateableThis method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using theClientConfiguration.- Specified by:
updatein interfaceIUpdateable- See Also:
-
render
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSubscription
-