mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-02 17:06:57 +00:00
Raid unitframes: add option to reverse group order (#75)
* Add raidreverse default to unitframes config Defaults to off, so existing layouts are unchanged. * Raid frames: add option to reverse group order Read the new raidreverse setting and mirror the column index when placing raid frames, so group 1 sits on the far right and the following groups grow to the left. * Add "Reverse Group Order" checkbox to raid settings Placed under "Raid Fill Direction" in the raid frame options. /pfui > Settings > Unit Frames > Raid > Layout * Raid frames: rename reverse option to "Grow Right To Left" The option mirrors columns in both fill directions, so name it for what it does. Mirror across the columns maxraid can fill instead of the whole layout, so smaller raids stay next to the anchor. Lay the raid grid out through SlotToCoord like the pet grid, move the default next to the other raid layout keys, and add the label to the locale tables. --------- Co-authored-by: Brues <5278969+brues-code@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -2294,6 +2294,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(U["raid"], T["Raid Padding"], C.unitframes[c], "raidpadding")
|
||||
CreateConfig(U["raid"], T["Raid Layout"], C.unitframes[c], "raidlayout", "dropdown", pfUI.gui.dropdowns.uf_raidlayout)
|
||||
CreateConfig(U["raid"], T["Raid Fill Direction"], C.unitframes[c], "raidfill", "dropdown", pfUI.gui.dropdowns.orientation)
|
||||
CreateConfig(U["raid"], T["Grow Right To Left"], C.unitframes[c], "raidgrowleft", "checkbox")
|
||||
CreateConfig(U["raid"], T["Collapse Empty Slots"], C.unitframes[c], "collapse", "checkbox")
|
||||
elseif c == "raidpet" then
|
||||
CreateConfig(U[c], T["Layout"], nil, nil, "header")
|
||||
@@ -3088,4 +3089,4 @@ pfUI:RegisterModule("gui", function ()
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user