Skip to content

Using Actionbars

varun-liver edited this page Oct 13, 2026 · 1 revision

Using Actionbars

The Api for the actionbar is at import com.animationlib.api.ActionBar;

actionbar()

Action Bars show text above the action bar, eg:

ActionBar.actionbar("Hello!", 5)

actionbar accepts two outputs: a text string that controls what text appears, and a int to control how long it stays on screen.

There is also another usage:

Actionbar.actionbar(text,seconds,id,savedToDisk)

When savedToDisk is true, Actionbar creates a JSON file with the id so the actionbar doesn't run twice.

actionBarStart()

actionBarStart displays a actionbar until actionBar end is ran:

ActionBar.actionBarStart(id,text)
ActionBar.actionBarEnd(id,savedToDisk)

Clone this wiki locally