onBackground(onBackground): void
onBackground
void
Register a callback that runs when background rects are collected.
Function
Function that will provide background for this HUD element.
hudManager.onBackground(() => { return [new ScriptRoundedRect(hudManager.x, hudManager.y, 100, 20, 3 * hudManager.scale)]; });
Last updated 11 hours ago