Skip to content

[Feature]: Add options UI for overlay positioning #40

@Xerrion

Description

@Xerrion

Problem

PhDamage currently exposes overlay positioning, font size, and the abbreviate-numbers toggle only through the text-argument /phd config <key> <value> slash command. Users have to memorize keys and valid anchor values, with no live preview of the result.

Proposed Solution

Replace the text-arg handler with an AceConfig-3.0 options panel registered in Blizzard interface options:

  • Anchor dropdown (TOPLEFT, TOP, TOPRIGHT, LEFT, CENTER, RIGHT, BOTTOMLEFT, BOTTOM, BOTTOMRIGHT)
  • Offset X slider (-50 to 50, step 1)
  • Offset Y slider (-50 to 50, step 1)
  • Font size slider (6 to 32, step 1)
  • Abbreviate numbers toggle
  • Reset to defaults button

/phd config opens the panel. Each setting writes through to db.profile.overlay and calls the existing ns.ActionBar.ApplySettings() to re-render all overlays immediately.

Alternatives

Keep the text-arg handler, or build a custom non-Ace panel. Rejected: AceConfig is already physically embedded in Libs\Ace3\ via the existing pkgmeta external (just not loaded), so this only requires two <Include> lines in embeds.xml and a single new Core\Options.lua.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions