Overlay Class
Overlay is the simpler top-level feedback helper. Use it when you want quick runtime messages or a simple progress display without managing overlay element IDs yourself.
Overlay.showText(text, x?, y?, duration?)
Show a temporary runtime overlay message. Pass -1 for centered/default placement.
Overlay.showText('Checking reward button', 120, 220, 1200);Overlay.hideText()
Hide the current text message.
Overlay.hideText();Overlay.showProgress(current, total)
Show a temporary progress overlay.
Overlay.showProgress(2, 5);Overlay.updateProgress(current, total)
Update the current progress overlay.
Overlay.showProgress(1, 5);
Overlay.updateProgress(3, 5);Overlay.hideProgress()
Hide the progress overlay.
Overlay.hideProgress();Example:
Overlay.showText("Working...", -1, -1, 1500);
Overlay.showProgress(1, 3);
wait(600);
Overlay.updateProgress(2, 3);
wait(600);
Overlay.hideProgress();
Overlay.hideText();