A name of the player's icon set (BarButtonIcon), or an image
made with Ui.image (a PNG or JPEG in your package or data
directory), drawn in the 14×12 icon box, aspect kept, coloured like the
player's line icons: only its alpha counts, so draw it as a dark shape
on a transparent background. An unknown name fails with invalid.
Place in the strip, left to right ascending: an integer 0–999. It is position only: a lower order sits further left, and in a narrow window (or past the limit of eight) it is the first to go. Equal orders sort by plugin id, then declaration order. The player's own buttons use AI 100, Plugin Store 200.
A command's button on the bottom bar: CommandOptions.button.
Remarks
Where it shows. The player draws the bottom bar's button strip and decides where it goes: today at the right end of the bottom bar; this may change. Buttons are ordered by
order, then by plugin id; lowerordercomes first and stays visible longest. When the strip runs out of room, or more than 8 plugin buttons are declared, the remaining buttons move to the strip's » menu, in the same order. A button is never dropped: it is either in the strip or in the » menu, and its command keeps its menu entry, its key and its place in the command palette. Users may pin and unpin buttons later; do not rely on a position. See Bottom-bar buttons.What it shows. The icon, the command's title (translated, a trailing "…" removed) and its first key as the tooltip ("Plugin Store (F9)"),
enabled,busyandreasonas the menu item has them: a disabled or busy command's button is drawn disabled, its tooltip adds the reason, and a click runs nothing. Every button's icon is drawn in the accent colour; a command withcheckedshows a small dot under its icon while checked. A click runs the command exactly like a click on its menu item.Limits. One button per plugin, the first it declares (a later one stays a menu item only), and eight in the strip (
BAR_BUTTON_LIMITS); the rest are in the » menu. The button goes with its command: disposing the command, or disabling, stopping or uninstalling the plugin, removes it.Example: Give a command a button in the bottom bar
A Store icon appears in the bottom bar's button strip; a click opens the store window, exactly like the menu item. The player draws the button from the command's title, keys and state, and places it by
order(200 is where the player's own Plugin Store button sits).Player
0.5.10
Since
1.5.29