Skip to content

Widgets

Co2Noss edited this page Aug 26, 2026 · 1 revision

Widgets

Other addons can pin a Dashboard tile after Lodestar loads. Lodestar does not scrape other addons' frames.

Lodestar:RegisterWidget({
  id = "myaddon_foo",
  title = "Foo",
  defaultSize = "half", -- or defaultW / defaultH in canvas cells
  available = function(self)
    -- optional; return false to keep the tile out of the add list
    return true
  end,
  render = function(self, parent, width)
    -- parent is a frame; return the height you used
    return 40
  end,
})

id and title are required. render is required. Re-registering the same id replaces the spec.

Size

The canvas is 12 columns by 18 rows. Minimum tile is 3 × 2. defaultSize = "half" starts at 6 × 4; anything else starts at 12 × 4 unless you set defaultW / defaultH.

Players can still drag and resize. Tiles cannot overlap.

Availability

Gold and rares stay off the add list until their addon is actually there. Use available the same way: return false until your data exists. Stay quiet rather than inventing prices, coordinates, or quest IDs.

Clone this wiki locally