feat: add AceConfig options UI for overlay positioning (#40)#41
feat: add AceConfig options UI for overlay positioning (#40)#41
Conversation
Replaces the text-argument /phd config handler with an AceConfig-3.0 panel registered via AceConfigDialog:AddToBlizOptions. Settings bind to db.profile.overlay and re-render via ns.ActionBar.ApplySettings on every change. Includes a Reset to Defaults button driven by ns.DB_DEFAULTS. Closes #40
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR implements an AceConfig-driven options UI for overlay positioning, replacing the manual text-argument slash-command parser. The changes embed AceGUI and AceConfig libraries, create a new Core/Options.lua module that registers an options panel with Blizzard's interface, and update Core/Init.lua to initialize and open this panel when users run Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Description
Adds an AceConfig-3.0 options panel for the action-bar damage overlay, replacing the text-argument
/phd confighandler. Users get a Blizzard-integrated UI with anchor dropdown, offset/font sliders, abbreviate toggle, and reset button - no more memorizing keys and valid anchor values.Type of Change
Related Issues
Closes #40
Testing
luacheck .) - 0 warnings / 0 errors across 78 filesIn-game verification still needed:
/phd configopens the panel/reloadstate,spell,help) unchangedScreenshots
None yet - panel screenshots to be added after in-game smoke test.
Changes
Core/Options.lua- AceConfig schema bound todb.profile.overlay; reset button usesns.DB_DEFAULTSCore/Init.lua- exposesns.DB_DEFAULTS, registers Options inOnInitialize,/phd confignow opens the GUI, removes obsoleteVALID_ANCHORStext-arg parserPhDamage.toc- loadsCore/Options.luaafterCore/Init.luaLibs/embeds.xml- includesAceGUI-3.0.xmlandAceConfig-3.0.xml(Registry/Cmd/Dialog come transitively; libs were already embedded via pkgmeta external, just not loaded).luacheckrc- addsSettingsandInterfaceOptionsFrame_OpenToCategorytoread_globalsChecklist
Summary by CodeRabbit
New Features
/phd config.Improvements