diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua index 7e782e5..acdacca 100644 --- a/ElvUI_SLE/config/profile.lua +++ b/ElvUI_SLE/config/profile.lua @@ -1,364 +1,365 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB - -P['sle'] = { - --LFR options - ['lfrshow'] = { - ['enabled'] = false, - ['ds'] = false, - ['mv'] = false, - ['hof'] = false, - ['toes'] = false, - ['tot'] = false, - }, - - --Background frames - ['backgrounds'] = { - ['bottom'] = { - ['enabled'] = false, - ['trans'] = false, - ['texture'] = "", - ['width'] = E.screenwidth/4 + 32, - ['height'] = E.screenheight/6 - 13, - ['xoffset'] = 0, - ['yoffset'] = 0, - ['pethide'] = true, - }, - ['left'] = { - ['enabled'] = false, - ['trans'] = false, - ['texture'] = "", - ['width'] = E.screenwidth/10 - 4, - ['height'] = E.screenheight/5 + 11, - ['xoffset'] = 0, - ['yoffset'] = 0, - ['pethide'] = true, - }, - ['right'] = { - ['enabled'] = false, - ['trans'] = false, - ['texture'] = "", - ['width'] = E.screenwidth/10 - 4, - ['height'] = E.screenheight/5 + 11, - ['xoffset'] = 0, - ['yoffset'] = 0, - ['pethide'] = true, - }, - ['action'] = { - ['enabled'] = false, - ['trans'] = false, - ['texture'] = "", - ['width'] = E.screenwidth/4 + 32, - ['height'] = E.screenheight/20 + 5, - ['xoffset'] = 0, - ['yoffset'] = 0, - ['pethide'] = true, - }, - }, - - --Caster Name - ['castername'] = false, - - --Character Frame Options - ['characterframeoptions'] = { - ['itemlevel'] = { - ['enable'] = true, - ["font"] = "ElvUI Font", - ["fontSize"] = 12, - ["fontOutline"] = "OUTLINE", - }, - ['itemdurability'] = { - ['enable'] = true, - ["font"] = "ElvUI Font", - ["fontSize"] = 12, - ["fontOutline"] = "OUTLINE", - }, - }, - - --Raid marks - ['marks'] = { - ['enabled'] = false, - ['growth'] = "RIGHT", - ['showinside'] = false, - ['size'] = 18, - }, - - --Exp/Rep Bar - ['exprep'] = { - ['explong'] = false, - ['replong'] = false, - }, - - --Power text on classbars - ['powtext'] = false; - - --Auto release - ['pvpautorelease'] = true, - - --Datatexts panels - ['datatext'] = { - ['dp1'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/5, - }, - ['dp2'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/5, - }, - ['top'] = { - ['enabled'] = true, - ['width'] = E.screenwidth/5 - 4, - }, - ['dp3'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/5, - }, - ['dp4'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/5, - }, - ['dp5'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/4 - 60, - }, - ['bottom'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/10 - 4, - }, - ['dp6'] = { - ['enabled'] = false, - ['width'] = E.screenwidth/4 - 60, - }, - ['chatleft'] = { - ['enabled'] = true, - ['width'] = 396, - }, - ['chatright'] = { - ['enabled'] = true, - ['width'] = 396, - }, - ['dashboard'] = { - ['enable'] = false, - ['width'] = 100, - }, - }, - - --Combat Icon - ['combatico'] = { - ['pos'] = 'TOP', - }, - - --UI Buttons - ['uibuttons'] = { - ['enable'] = false, - ['size'] = 17, - ['mouse'] = false, - ['position'] = "uib_vert", - }, - - --Autoloot - ['lootwin'] = false, - ['lootalpha'] = 1, - - --Error messages - ['errors'] = false, - - ['farm'] = { - ['active'] = true, - ['size'] = 30, - ['autotarget'] = false, - }, -} - ---For some reason datatext settings refuses to work if there is no general setting block here O_o ---Core -P['general'] = { - ["taintLog"] = false, - ["autoscale"] = true, - ["stickyFrames"] = true, - ['loginmessage'] = true, - ["interruptAnnounce"] = "NONE", - ["autoRepair"] = "NONE", - ['autoRoll'] = false, - ['vendorGrays'] = false, - ['autoAcceptInvite'] = false, - ['bottomPanel'] = false, - - ["fontSize"] = 12, - ["font"] = "ElvUI Font", - - ["bordercolor"] = { r = 0.1,g = 0.1,b = 0.1 }, - ["backdropcolor"] = { r = 0.1,g = 0.1,b = 0.1 }, - ["backdropfadecolor"] = { r = .054,g = .054,b = .054, a = 0.8 }, - ["valuecolor"] = {r = 23/255,g = 132/255,b = 209/255}, - - ['mapAlpha'] = 1, - ['tinyWorldMap'] = true, - - ['minimap'] = { - ['size'] = 176, - ['locationText'] = 'MOUSEOVER', - }, - - ['experience'] = { - ['enable'] = true, - ['width'] = 475, - ['height'] = 10, - ['textFormat'] = 'NONE', - ['textSize'] = 11, - }, - ['reputation'] = { - ['enable'] = true, - ['width'] = 475, - ['height'] = 10, - ['textFormat'] = 'NONE', - ['textSize'] = 11, - }, - ['threat'] = { - ['enable'] = true, - ['position'] = 'RIGHTCHAT', - ['textSize'] = 12, - }, - ['totems'] = { - ['enable'] = true, - ['growthDirection'] = 'VERTICAL', - ['sortDirection'] = 'ASCENDING', - ['size'] = 40, - ['spacing'] = 4, - } -}; - -P.chat.editboxhistory = 5 -P.auras.perRow = 19 - ---Datatexts -if IsAddOnLoaded("ElvUI_LocPlus") then -P['datatexts'] = { - ['font'] = 'ElvUI Font', - ['fontSize'] = 12, - ['fontOutline'] = 'NONE', - - ['panels'] = { - ['LeftChatDataPanel'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['RightChatDataPanel'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_1'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_2'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_3'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_4'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_5'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_6'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['Top_Center'] = 'Version', - ['Bottom_Panel'] = '', - ['LeftMiniPanel'] = 'Guild', - ['RightMiniPanel'] = 'Friends', - ['RightCoordDtPanel'] = '', --LocPlus - ['LeftCoordDtPanel'] = '', --LocPlus - }, - ['localtime'] = true, - ['time24'] = false, - ['battleground'] = true, - ['minimapPanels'] = true, - ['leftChatPanel'] = true, - ['rightChatPanel'] = true, -} -else -P['datatexts'] = { - ['font'] = 'ElvUI Font', - ['fontSize'] = 12, - ['fontOutline'] = 'NONE', - - ['panels'] = { - ['LeftChatDataPanel'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['RightChatDataPanel'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_1'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_2'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_3'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_4'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_5'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['DP_6'] = { - ['left'] = '', - ['middle'] = '', - ['right'] = '', - }, - ['Top_Center'] = 'Version', - ['Bottom_Panel'] = '', - ['LeftMiniPanel'] = 'Guild', - ['RightMiniPanel'] = 'Friends', - }, - ['localtime'] = true, - ['time24'] = false, - ['battleground'] = true, - ['minimapPanels'] = true, - ['leftChatPanel'] = true, - ['rightChatPanel'] = true, -} -end - -P.unitframe.units.player.classbar.xOffset = 0 -P.unitframe.units.player.classbar.yOffset = 0 -P.unitframe.units.player.classbar.offset = false -P.unitframe.units.player.fixTo = "health" -P.unitframe.units.target.fixTo = "health" -P.unitframe.units.targettarget.fixTo = "health" -P.unitframe.units.focus.fixTo = "health" -P.unitframe.units.arena.fixTo = "health" -P.unitframe.units.boss.fixTo = "health" +local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB + +P['sle'] = { + --LFR options + ['lfrshow'] = { + ['enabled'] = false, + ['ds'] = false, + ['mv'] = false, + ['hof'] = false, + ['toes'] = false, + ['tot'] = false, + }, + + --Background frames + ['backgrounds'] = { + ['bottom'] = { + ['enabled'] = false, + ['trans'] = false, + ['texture'] = "", + ['width'] = E.screenwidth/4 + 32, + ['height'] = E.screenheight/6 - 13, + ['xoffset'] = 0, + ['yoffset'] = 0, + ['pethide'] = true, + }, + ['left'] = { + ['enabled'] = false, + ['trans'] = false, + ['texture'] = "", + ['width'] = E.screenwidth/10 - 4, + ['height'] = E.screenheight/5 + 11, + ['xoffset'] = 0, + ['yoffset'] = 0, + ['pethide'] = true, + }, + ['right'] = { + ['enabled'] = false, + ['trans'] = false, + ['texture'] = "", + ['width'] = E.screenwidth/10 - 4, + ['height'] = E.screenheight/5 + 11, + ['xoffset'] = 0, + ['yoffset'] = 0, + ['pethide'] = true, + }, + ['action'] = { + ['enabled'] = false, + ['trans'] = false, + ['texture'] = "", + ['width'] = E.screenwidth/4 + 32, + ['height'] = E.screenheight/20 + 5, + ['xoffset'] = 0, + ['yoffset'] = 0, + ['pethide'] = true, + }, + }, + + --Caster Name + ['castername'] = false, + + --Character Frame Options + ['characterframeoptions'] = { + ['itemlevel'] = { + ['enable'] = true, + ["font"] = "ElvUI Font", + ["fontSize"] = 12, + ["fontOutline"] = "OUTLINE", + }, + ['itemdurability'] = { + ['enable'] = true, + ["font"] = "ElvUI Font", + ["fontSize"] = 12, + ["fontOutline"] = "OUTLINE", + }, + }, + + --Raid marks + ['marks'] = { + ['enabled'] = false, + ['growth'] = "RIGHT", + ['showinside'] = false, + ['size'] = 18, + }, + + --Exp/Rep Bar + ['exprep'] = { + ['explong'] = false, + ['replong'] = false, + }, + + --Power text on classbars + ['powtext'] = false; + + --Auto release + ['pvpautorelease'] = true, + + --Datatexts panels + ['datatext'] = { + ['dp1'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/5, + }, + ['dp2'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/5, + }, + ['top'] = { + ['enabled'] = true, + ['width'] = E.screenwidth/5 - 4, + }, + ['dp3'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/5, + }, + ['dp4'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/5, + }, + ['dp5'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/4 - 60, + }, + ['bottom'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/10 - 4, + }, + ['dp6'] = { + ['enabled'] = false, + ['width'] = E.screenwidth/4 - 60, + }, + ['chatleft'] = { + ['enabled'] = true, + ['width'] = 396, + }, + ['chatright'] = { + ['enabled'] = true, + ['width'] = 396, + }, + ['dashboard'] = { + ['enable'] = false, + ['width'] = 100, + }, + }, + + --Combat Icon + ['combatico'] = { + ['pos'] = 'TOP', + }, + + --UI Buttons + ['uibuttons'] = { + ['enable'] = false, + ['size'] = 17, + ['mouse'] = false, + ['position'] = "uib_vert", + }, + + --Autoloot + ['lootwin'] = false, + ['lootalpha'] = 1, + + --Error messages + ['errors'] = false, + + ['farm'] = { + ['active'] = true, + ['size'] = 30, + ['autotarget'] = false, + ['seedor'] = "TOP", + }, +} + +--For some reason datatext settings refuses to work if there is no general setting block here O_o +--Core +P['general'] = { + ["taintLog"] = false, + ["autoscale"] = true, + ["stickyFrames"] = true, + ['loginmessage'] = true, + ["interruptAnnounce"] = "NONE", + ["autoRepair"] = "NONE", + ['autoRoll'] = false, + ['vendorGrays'] = false, + ['autoAcceptInvite'] = false, + ['bottomPanel'] = false, + + ["fontSize"] = 12, + ["font"] = "ElvUI Font", + + ["bordercolor"] = { r = 0.1,g = 0.1,b = 0.1 }, + ["backdropcolor"] = { r = 0.1,g = 0.1,b = 0.1 }, + ["backdropfadecolor"] = { r = .054,g = .054,b = .054, a = 0.8 }, + ["valuecolor"] = {r = 23/255,g = 132/255,b = 209/255}, + + ['mapAlpha'] = 1, + ['tinyWorldMap'] = true, + + ['minimap'] = { + ['size'] = 176, + ['locationText'] = 'MOUSEOVER', + }, + + ['experience'] = { + ['enable'] = true, + ['width'] = 475, + ['height'] = 10, + ['textFormat'] = 'NONE', + ['textSize'] = 11, + }, + ['reputation'] = { + ['enable'] = true, + ['width'] = 475, + ['height'] = 10, + ['textFormat'] = 'NONE', + ['textSize'] = 11, + }, + ['threat'] = { + ['enable'] = true, + ['position'] = 'RIGHTCHAT', + ['textSize'] = 12, + }, + ['totems'] = { + ['enable'] = true, + ['growthDirection'] = 'VERTICAL', + ['sortDirection'] = 'ASCENDING', + ['size'] = 40, + ['spacing'] = 4, + } +}; + +P.chat.editboxhistory = 5 +P.auras.perRow = 19 + +--Datatexts +if IsAddOnLoaded("ElvUI_LocPlus") then +P['datatexts'] = { + ['font'] = 'ElvUI Font', + ['fontSize'] = 12, + ['fontOutline'] = 'NONE', + + ['panels'] = { + ['LeftChatDataPanel'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['RightChatDataPanel'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_1'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_2'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_3'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_4'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_5'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_6'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['Top_Center'] = 'Version', + ['Bottom_Panel'] = '', + ['LeftMiniPanel'] = 'Guild', + ['RightMiniPanel'] = 'Friends', + ['RightCoordDtPanel'] = '', --LocPlus + ['LeftCoordDtPanel'] = '', --LocPlus + }, + ['localtime'] = true, + ['time24'] = false, + ['battleground'] = true, + ['minimapPanels'] = true, + ['leftChatPanel'] = true, + ['rightChatPanel'] = true, +} +else +P['datatexts'] = { + ['font'] = 'ElvUI Font', + ['fontSize'] = 12, + ['fontOutline'] = 'NONE', + + ['panels'] = { + ['LeftChatDataPanel'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['RightChatDataPanel'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_1'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_2'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_3'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_4'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_5'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['DP_6'] = { + ['left'] = '', + ['middle'] = '', + ['right'] = '', + }, + ['Top_Center'] = 'Version', + ['Bottom_Panel'] = '', + ['LeftMiniPanel'] = 'Guild', + ['RightMiniPanel'] = 'Friends', + }, + ['localtime'] = true, + ['time24'] = false, + ['battleground'] = true, + ['minimapPanels'] = true, + ['leftChatPanel'] = true, + ['rightChatPanel'] = true, +} +end + +P.unitframe.units.player.classbar.xOffset = 0 +P.unitframe.units.player.classbar.yOffset = 0 +P.unitframe.units.player.classbar.offset = false +P.unitframe.units.player.fixTo = "health" +P.unitframe.units.target.fixTo = "health" +P.unitframe.units.targettarget.fixTo = "health" +P.unitframe.units.focus.fixTo = "health" +P.unitframe.units.arena.fixTo = "health" +P.unitframe.units.boss.fixTo = "health" diff --git a/ElvUI_SLE/modules/farm/options.lua b/ElvUI_SLE/modules/farm/options.lua index 8eda393..d63ea79 100644 --- a/ElvUI_SLE/modules/farm/options.lua +++ b/ElvUI_SLE/modules/farm/options.lua @@ -50,6 +50,21 @@ E.Options.args.sle.args.farm = { get = function(info) return E.db.sle.farm.autotarget end, set = function(info, value) E.db.sle.farm.autotarget = value; end }, + growth = { + order = 8, + type = "select", + name = L["Direction"], + desc = L["Change the direction of buttons growth from the skull marker"], + disabled = function() return not E.private.sle.farm end, + get = function(info) return E.db.sle.farm.seedor end, + set = function(info, value) E.db.sle.farm.seedor = value; F:UpdateLayout() end, + values = { + ['RIGHT'] = L["Right"], + ['LEFT'] = L["Left"], + ['BOTTOM'] = L["Up"], + ['TOP'] = L["Down"], + }, + }, }, }, },