Skip to content

About

One minimap button that holds every addon's minimap button and folds them out on click.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Button Drawer

One minimap button that holds every addon's minimap button and folds them out on click. Includes a Lua error button.

Latest release

A World of Warcraft: Forever addon (interface 16001).

What it does

Addon minimap buttons are taken off the minimap and parked in a drawer behind a single button. Click that button and they fold out in a grid; click it again and they fold back in. The drawer stays open until you close it.

  • One button instead of many. Takes every addon button on the minimap: LibDBIcon buttons, buttons with the usual minimap-button names, and any other small clickable button an addon hangs on the minimap, whatever it is called. Blizzard's own minimap controls and map pins are left alone. Opening the drawer looks again, so a button created late is picked up too.
  • Buttons stay put. When an addon tries to move its button back onto the minimap, Button Drawer puts it back in the drawer.
  • Built-in Lua error button. The first cell of the drawer is an error button: grey when there are no errors, red with a count when there are. The count also shows as a badge on the drawer button. Errors are deduplicated and kept in a window with copyable text (Select all / Clear / Close). It replaces the default error popup.
  • Movable. Drag the drawer button around the minimap; the position is saved.
  • Manage window. The Set cell in the drawer (or /bd config) lists every button with On, Up and Down, and sets icon size, columns and opening on mouse-over. No dragging needed.
  • Opens the right way. The drawer folds out away from the nearest screen edges.
  • Standalone. No libraries, no dependencies.

Install

  • CurseForge: Button Drawer, or search for it in the CurseForge app under WoW: Forever.
  • By hand: download the zip from the latest release and extract the ButtonDrawer folder into World of Warcraft\<Forever folder>\Interface\AddOns\. Restart the game.

Use

Action Result
Left-click the drawer button Open or close the drawer
Right-click the drawer button Open the Lua error window
Drag the drawer button Move it around the minimap

Commands

  • /bd or /buttondrawer - open or close the drawer
  • /bd columns N - buttons per row
  • /bd ignore NAME - leave one button on the minimap (run it again to take it back)
  • /bd list - list the collected buttons by name
  • /bd errors - open the Lua error window
  • /bd reset - restore defaults

Files

  • Core.lua - finding, adopting and laying out minimap buttons; the drawer; commands
  • Errors.lua - the error catcher and its window

Limits

  • Protected and forbidden frames are never touched, so a button the game locks stays where it is.
  • A button that is not attached to the minimap itself (one an addon parents somewhere else and only places near it) is not seen. /bd list shows what was collected.

Compatibility

  • World of Warcraft: Forever, interface version 16001.
  • Forever only. It uses that client's API and will not load on retail or the Classic clients.

Changelog

What changed in each version: CHANGELOG.md.

License

MIT — see LICENSE. Current version: 1.1.0.

About

One minimap button that holds every addon's minimap button and folds them out on click.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages