Skip to content

Commit 9a30c51

Browse files
committed
gear summary movers
1 parent 5336adc commit 9a30c51

File tree

2 files changed

+65
-10
lines changed

2 files changed

+65
-10
lines changed

Core.lua

+64-9
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,8 @@ local function BuildGroupieWindow()
16751675
--------------------------------------
16761676
CharSheetSummaryFrame = _G["CharacterModelFrame"]:CreateFontString("GroupieCharSheetAddin", "OVERLAY",
16771677
"GameFontNormalSmall")
1678-
CharSheetSummaryFrame:SetPoint("LEFT", CharSheetSummaryFrame:GetParent(), "LEFT", 8, -60)
1678+
CharSheetSummaryFrame:SetPoint("LEFT", CharSheetSummaryFrame:GetParent(), "LEFT", 8 +
1679+
addon.db.global.charSheetXOffset, -60 + addon.db.global.charSheetYOffset)
16791680
CharSheetSummaryFrame:SetJustifyH("LEFT")
16801681

16811682
-------------
@@ -1953,6 +1954,8 @@ function addon:OnInitialize()
19531954
talentTooltips = true,
19541955
gearSummaryTooltips = true,
19551956
charSheetGear = true,
1957+
charSheetXOffset = 0,
1958+
charSheetYOffset = 0,
19561959
announceInstanceReset = true,
19571960
showedv161InfoPopup = false,
19581961
lastShowedInfoPopup = 1.63,
@@ -2722,7 +2725,7 @@ function addon.SetupConfig()
27222725
charSheetGearToggle = {
27232726
type = "toggle",
27242727
name = "Enable Gear Summary on Your Character Sheet",
2725-
order = 10,
2728+
order = 11,
27262729
width = "full",
27272730
get = function(info) return addon.db.global.charSheetGear end,
27282731
set = function(info, val)
@@ -2737,7 +2740,7 @@ function addon.SetupConfig()
27372740
announceResetToggle = {
27382741
type = "toggle",
27392742
name = "Announce Instance Reset in Party/Raid Chat",
2740-
order = 11,
2743+
order = 10,
27412744
width = "full",
27422745
get = function(info) return addon.db.global.announceInstanceReset end,
27432746
set = function(info, val)
@@ -2752,15 +2755,67 @@ function addon.SetupConfig()
27522755
spacerdesc4 = { type = "description", name = " ", width = "full", order = 12 },
27532756
header2 = {
27542757
type = "description",
2755-
name = "|cff" .. addon.groupieSystemColor .. L["GlobalOptions"].LFGData,
2758+
name = "|cff" .. addon.groupieSystemColor .. "Gear Summary Offsets",
27562759
order = 13,
27572760
fontSize = "medium"
27582761
},
2762+
spacerdesc5 = { type = "description", name = " ", width = "full", order = 14 },
2763+
header3 = {
2764+
type = "description",
2765+
name = "|cff" .. addon.groupieSystemColor .. "X Offset",
2766+
order = 15,
2767+
fontSize = "medium"
2768+
},
2769+
charSheetXSlider = {
2770+
type = "range",
2771+
name = "",
2772+
min = 0,
2773+
max = 150,
2774+
step = 1,
2775+
order = 16,
2776+
width = 1.5,
2777+
set = function(info, val)
2778+
addon.db.global.charSheetXOffset = val
2779+
CharSheetSummaryFrame:SetPoint("LEFT", CharSheetSummaryFrame:GetParent(), "LEFT",
2780+
8 + addon.db.global.charSheetXOffset,
2781+
-60 + addon.db.global.charSheetYOffset)
2782+
end,
2783+
get = function(info) return addon.db.global.charSheetXOffset end,
2784+
},
2785+
header4 = {
2786+
type = "description",
2787+
name = "|cff" .. addon.groupieSystemColor .. "Y Offset",
2788+
order = 17,
2789+
fontSize = "medium"
2790+
},
2791+
charSheetYSlider = {
2792+
type = "range",
2793+
name = "",
2794+
min = 0,
2795+
max = 150,
2796+
step = 1,
2797+
order = 18,
2798+
width = 1.5,
2799+
set = function(info, val)
2800+
addon.db.global.charSheetYOffset = val
2801+
CharSheetSummaryFrame:SetPoint("LEFT", CharSheetSummaryFrame:GetParent(), "LEFT",
2802+
8 + addon.db.global.charSheetXOffset,
2803+
-60 + addon.db.global.charSheetYOffset)
2804+
end,
2805+
get = function(info) return addon.db.global.charSheetYOffset end,
2806+
},
2807+
spacerdesc6 = { type = "description", name = " ", width = "full", order = 19 },
2808+
header5 = {
2809+
type = "description",
2810+
name = "|cff" .. addon.groupieSystemColor .. L["GlobalOptions"].LFGData,
2811+
order = 20,
2812+
fontSize = "medium"
2813+
},
27592814
preserveDurationDropdown = {
27602815
type = "select",
27612816
style = "dropdown",
27622817
name = "",
2763-
order = 14,
2818+
order = 21,
27642819
width = 1.4,
27652820
values = { [1] = L["GlobalOptions"].DurationDropdown["1"],
27662821
[2] = L["GlobalOptions"].DurationDropdown["2"],
@@ -2769,11 +2824,11 @@ function addon.SetupConfig()
27692824
set = function(info, val) addon.db.global.minsToPreserve = val end,
27702825
get = function(info) return addon.db.global.minsToPreserve end,
27712826
},
2772-
spacerdesc5 = { type = "description", name = " ", width = "full", order = 15 },
2773-
header3 = {
2827+
spacerdesc7 = { type = "description", name = " ", width = "full", order = 22 },
2828+
header6 = {
27742829
type = "description",
27752830
name = "|cff" .. addon.groupieSystemColor .. L["GlobalOptions"].UIScale,
2776-
order = 16,
2831+
order = 23,
27772832
fontSize = "medium"
27782833
},
27792834
scaleSlider = {
@@ -2782,7 +2837,7 @@ function addon.SetupConfig()
27822837
min = 0.5,
27832838
max = 2.0,
27842839
step = 0.1,
2785-
order = 17,
2840+
order = 24,
27862841
set = function(info, val)
27872842
addon.db.global.UIScale = val
27882843
GroupieFrame:SetScale(val)

Groupie.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Interface: 30400
22
## Title: Groupie
33
## Notes: A better LFG tool for Classic WoW.
4-
## Version: 1.64
4+
## Version: 1.65
55
## Author: Gogo, LemonDrake, Kynura, Raegen
66
## SavedVariables: GroupieDB
77
## X-Curse-Project-ID: 661450

0 commit comments

Comments
 (0)