MilleXIV / XIV_Databar

19 stars 19 forks source link

Rework Positioning System #51

Open MilleXIV opened 7 years ago

MilleXIV commented 7 years ago

Mostly just posting this as an idea I had for reworking the positioning.

Options for each module: "Attach to" (Dropdown of all enabled modules) and "Attach point" (Left/Center[If attached to main bar]/Right dropdown).

Potential issues: init order maybe? Should probably rework init system to make the core load up the modules instead of letting AceAddons handle it.

As for the core bar, should rework that to use the same concept as ElvUI's positioning because that seems like an elegant solution (tl;dr: create a frame as big as UIParent and anchor myself within that).

Mikeprod commented 7 years ago

Otherwise you can just save the order of the enabled modules. That allows you to anchor each module to the closest enabled one ;)

Mikeprod commented 7 years ago

I did some improvements on the branch improvements of my fork