Quantcast

Error free Affinitii's layour

Darthpred [07-27-16 - 11:42]
Error free Affinitii's layour
Filename
ElvUI_SLE/core/install.lua
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/russian.lua
diff --git a/ElvUI_SLE/core/install.lua b/ElvUI_SLE/core/install.lua
index 4d517a2..2d49b0f 100644
--- a/ElvUI_SLE/core/install.lua
+++ b/ElvUI_SLE/core/install.lua
@@ -809,6 +809,234 @@ function PI:DarthAddons()
 	_G["PluginInstallStepComplete"]:Show()
 end

+local function AffinityAddons()
+	if SkadaDB and T.IsAddOnLoaded("Skada") then
+		SkadaDB["profiles"]["Affinitii"] = {
+			["windows"] = {
+				{
+					["barheight"] = 17,
+					["barslocked"] = true,
+					["background"] = {
+						["height"] = 133.6666717529297,
+						["color"] = {
+							["a"] = 0.2000000476837158,
+							["b"] = 0,
+						},
+					},
+					["hidden"] = true,
+					["y"] = 39.89817468303028,
+					["x"] = -7.334928625263729,
+					["title"] = {
+						["color"] = {
+							["a"] = 1,
+							["b"] = 0,
+							["g"] = 0,
+							["r"] = 0,
+						},
+						["font"] = "ElvUI Font",
+						["fontsize"] = 15,
+					},
+					["point"] = "BOTTOMRIGHT",
+					["barbgcolor"] = {
+						["a"] = 1,
+						["b"] = 0.3019607843137255,
+						["g"] = 0.3019607843137255,
+						["r"] = 0.3019607843137255,
+					},
+					["barcolor"] = {
+						["g"] = 0.3019607843137255,
+						["r"] = 0.3019607843137255,
+					},
+					["name"] = "HPS",
+					["spark"] = false,
+					["bartexture"] = "Polished Wood",
+					["barwidth"] = 199.0832316080729,
+					["barfontsize"] = 12,
+					["mode"] = "Damage",
+					["barfont"] = "ElvUI Font",
+				}, -- [1]
+				{
+					["barheight"] = 17,
+					["classicons"] = true,
+					["barslocked"] = true,
+					["clickthrough"] = false,
+					["wipemode"] = "",
+					["set"] = "current",
+					["hidden"] = true,
+					["y"] = 39.89824908834681,
+					["barfont"] = "ElvUI Font",
+					["name"] = "DPS",
+					["display"] = "bar",
+					["barfontflags"] = "",
+					["classcolortext"] = false,
+					["scale"] = 1,
+					["reversegrowth"] = false,
+					["barfontsize"] = 12,
+					["barorientation"] = 1,
+					["snapto"] = true,
+					["point"] = "BOTTOMRIGHT",
+					["x"] = -214.2783479639852,
+					["spark"] = false,
+					["bartexture"] = "Polished Wood",
+					["barwidth"] = 199.0832316080729,
+					["barspacing"] = 0,
+					["barbgcolor"] = {
+						["a"] = 1,
+						["b"] = 0.3019607843137255,
+						["g"] = 0.3019607843137255,
+						["r"] = 0.3019607843137255,
+					},
+					["returnaftercombat"] = false,
+					["barcolor"] = {
+						["a"] = 1,
+						["b"] = 0.8,
+						["g"] = 0.3019607843137255,
+						["r"] = 0.3019607843137255,
+					},
+					["mode"] = "Healing",
+					["enabletitle"] = true,
+					["classcolorbars"] = true,
+					["modeincombat"] = "",
+					["title"] = {
+						["borderthickness"] = 2,
+						["font"] = "ElvUI Font",
+						["fontsize"] = 15,
+						["fontflags"] = "",
+						["color"] = {
+							["a"] = 1,
+							["b"] = 0,
+							["g"] = 0,
+							["r"] = 0,
+						},
+						["bordertexture"] = "None",
+						["margin"] = 0,
+						["texture"] = "Aluminium",
+					},
+					["buttons"] = {
+						["segment"] = true,
+						["menu"] = true,
+						["mode"] = true,
+						["report"] = true,
+						["reset"] = true,
+					},
+					["background"] = {
+						["borderthickness"] = 0,
+						["height"] = 133.6666717529297,
+						["color"] = {
+							["a"] = 0.2000000476837158,
+							["b"] = 0,
+							["g"] = 0,
+							["r"] = 0,
+						},
+						["bordertexture"] = "None",
+						["margin"] = 0,
+						["texture"] = "Solid",
+					},
+				}, -- [2]
+			},
+			["report"] = {
+				["number"] = 12,
+				["chantype"] = "whisper",
+				["channel"] = "whisper",
+				["target"] = "Affinitii",
+				["mode"] = "Riggimon's Death",
+			},
+			["icon"] = {
+				["minimapPos"] = 160.4361246854299,
+				["hide"] = true,
+			},
+		}
+		Skada.db:SetProfile("Affinitii")
+	end
+	if xCTSavedDB and T.IsAddOnLoaded("xCT+") then
+		xCTSavedDB["profiles"]["Affinitii"] = {
+			["blizzardFCT"] = {
+				["font"] = "KGSmallTownSouthernGirl",
+			},
+			["spells"] = {
+				["mergeCriticalsByThemselves"] = true,
+				["mergeDontMergeCriticals"] = false,
+			},
+			["frames"] = {
+				["general"] = {
+					["showBuffs"] = false,
+					["fontOutline"] = "2OUTLINE",
+					["Width"] = 510,
+					["font"] = "KGSmallTownSouthernGirl",
+					["enabledFrame"] = false,
+					["Height"] = 127,
+				},
+				["power"] = {
+					["enabledFrame"] = false,
+					["fontOutline"] = "2OUTLINE",
+					["Width"] = 255,
+					["font"] = "KGSmallTownSouthernGirl",
+				},
+				["healing"] = {
+					["enabledFrame"] = false,
+					["Width"] = 382,
+					["Y"] = 89,
+					["font"] = "KGSmallTownSouthernGirl",
+					["Height"] = 143,
+					["fontOutline"] = "2OUTLINE",
+					["X"] = -319,
+				},
+				["outgoing"] = {
+					["fontSize"] = 17,
+					["fontOutline"] = "2OUTLINE",
+					["enableScrollable"] = true,
+					["Width"] = 149,
+					["Y"] = -61,
+					["X"] = 901,
+					["iconsSize"] = 17,
+					["font"] = "KGSmallTownSouthernGirl",
+				},
+				["critical"] = {
+					["fontSize"] = 17,
+					["iconsSize"] = 19,
+					["fontOutline"] = "2OUTLINE",
+					["Width"] = 149,
+					["Y"] = 102,
+					["font"] = "KGSmallTownSouthernGirl",
+					["Height"] = 126,
+					["X"] = 901,
+				},
+				["procs"] = {
+					["enabledFrame"] = false,
+					["enableScrollable"] = true,
+					["Y"] = 101,
+					["X"] = 1,
+					["Height"] = 127,
+					["font"] = "KGSmallTownSouthernGirl",
+					["fontOutline"] = "2OUTLINE",
+				},
+				["loot"] = {
+					["fontOutline"] = "2OUTLINE",
+					["Width"] = 510,
+					["Y"] = -223,
+					["font"] = "KGSmallTownSouthernGirl",
+					["Height"] = 126,
+				},
+				["class"] = {
+					["fontOutline"] = "2OUTLINE",
+					["font"] = "KGSmallTownSouthernGirl",
+					["enabledFrame"] = false,
+				},
+				["damage"] = {
+					["fontSize"] = 17,
+					["X"] = 201,
+					["Width"] = 133,
+					["Y"] = -32,
+					["font"] = "KGSmallTownSouthernGirl",
+					["Height"] = 170,
+					["fontOutline"] = "2OUTLINE",
+				},
+			},
+		}
+		xCT_Plus.db:SetProfile("Affinitii")
+	end
+end
+
 local function SetupCVars()
 	SetCVar("mapFade", "0")
 	SetCVar("cameraSmoothStyle", "0")
@@ -828,6 +1056,347 @@ function PI:RepoocAddons()
 end

 local function AffinitySetup()
+	local layout = E.db.layoutSet
+	local installMark = E.private["install_complete"]
+	local installMarkSLE = E.private["sle"]["install_complete"]
+	pixel = E.PixelMode  --Pull PixelMode
+
+	if IsAddOnLoaded("ElvUI_DTBars2") then
+		table.wipe(dtbarsList)
+		table.wipe(dtbarsTexts)
+		for name, data in pairs(E.global.dtbars) do
+			if E.db.dtbars and E.db.dtbars[name] then
+				dtbarsList[name] = E.db.dtbars[name]
+				dtbarsTexts[name] = E.db.datatexts.panels[name]
+			end
+		end
+	end
+	table.wipe(E.db)
+	E:CopyTable(E.db, P)
+
+	table.wipe(E.private)
+	E:CopyTable(E.private, V)
+
+	if E.db['movers'] then table.wipe(E.db['movers']) else E.db['movers'] = {} end
+	if not E.db["unitframe"]["units"]["party"]["customTexts"] then E.db["unitframe"]["units"]["party"]["customTexts"] = {} end
+	if not E.db["unitframe"]["units"]["raid40"]["customTexts"] then E.db["unitframe"]["units"]["raid40"]["customTexts"] = {} end
+
+	E.db["sle"]["nameplates"]["showthreat"] = true
+	E.db["sle"]["nameplates"]["targetcount"] = true
+	E.db["sle"]["datatexts"]["chathandle"] = true
+	E.db["sle"]["datatexts"]["panel3"]["enabled"] = true
+	E.db["sle"]["datatexts"]["panel3"]["transparent"] = true
+	E.db["sle"]["datatexts"]["panel3"]["width"] = 100
+	E.db["sle"]["datatexts"]["panel5"]["width"] = 100
+	-- E.db["sle"]["datatexts"]["panel6"]["enabled"] = true
+	E.db["sle"]["datatexts"]["panel7"]["enabled"] = true
+	E.db["sle"]["datatexts"]["panel7"]["transparent"] = true
+	E.db["sle"]["datatexts"]["panel7"]["width"] = 100
+	E.db["sle"]["datatexts"]["panel8"]["enabled"] = true
+	E.db["sle"]["datatexts"]["panel8"]["transparent"] = true
+	E.db["sle"]["datatexts"]["panel8"]["alpha"] = 0.8
+	E.db["sle"]["datatexts"]["panel8"]["width"] = 399
+	E.db["sle"]["minimap"]["buttons"]["anchor"] = "VERTICAL"
+	E.db["sle"]["minimap"]["buttons"]["mouseover"] = true
+	E.db["sle"]["minimap"]["mapicons"]["skinmail"] = false
+	E.db["sle"]["minimap"]["mapicons"]["iconmouseover"] = true
+
+	SLE:SetMoverPosition("SLE_DataPanel_8_Mover", "BOTTOM", ElvUIParent, "BOTTOM", 0, 3)
+	SLE:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", ElvUIParent, "BOTTOM", 0, 96)
+	SLE:SetMoverPosition("LeftChatMover", "BOTTOMLEFT", UIParent, "BOTTOMLEFT", 0, 21)
+	SLE:SetMoverPosition("ElvUF_RaidMover", "BOTTOMLEFT", ElvUIParent, "BOTTOMLEFT", 449, 511)
+	SLE:SetMoverPosition("BossButton", "TOPLEFT", ElvUIParent, "TOPLEFT", 622, -352)
+	SLE:SetMoverPosition("ElvUF_FocusMover", "BOTTOM", ElvUIParent, "BOTTOM", -63, 436)
+	SLE:SetMoverPosition("ClassBarMover", "BOTTOM", ElvUIParent, "BOTTOM", -337, 500)
+	SLE:SetMoverPosition("SquareMinimapBar", "TOPRIGHT", ElvUIParent, "TOPRIGHT", -4, -211)
+	SLE:SetMoverPosition("ElvUF_TargetMover", "BOTTOM", ElvUIParent, "BOTTOM", 278, 200)
+	SLE:SetMoverPosition("ElvUF_Raid40Mover", "TOPLEFT", ElvUIParent, "TOPLEFT", 447, -468)
+	SLE:SetMoverPosition("ElvAB_1", "BOTTOM", ElvUIParent, "BOTTOM", 0, 59)
+	SLE:SetMoverPosition("ElvAB_2", "BOTTOM", ElvUIParent, "BOTTOM", 0, 25)
+	SLE:SetMoverPosition("ElvAB_4", "BOTTOMLEFT", ElvUIParent, "BOTTOMRIGHT", -413, 200)
+	SLE:SetMoverPosition("AltPowerBarMover", "BOTTOM", ElvUIParent, "BOTTOM", -300, 338)
+	SLE:SetMoverPosition("ElvAB_3", "BOTTOM", ElvUIParent, "BOTTOM", 254, 25)
+	SLE:SetMoverPosition("ElvAB_5", "BOTTOM", ElvUIParent, "BOTTOM", -254, 25)
+	SLE:SetMoverPosition("MMButtonsMover", "TOPRIGHT", ElvUIParent, "TOPRIGHT", -214, -160)
+	SLE:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", ElvUIParent, "BOTTOM", -278, 200)
+	SLE:SetMoverPosition("ElvUF_TargetTargetMover", "BOTTOM", ElvUIParent, "BOTTOM", 0, 190)
+	SLE:SetMoverPosition("ShiftAB", "BOTTOMLEFT", ElvUIParent, "BOTTOMLEFT", 414, 21)
+	SLE:SetMoverPosition("RightChatMover", "BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", 0, 21)
+	SLE:SetMoverPosition("TotemBarMover", "BOTTOMLEFT", ElvUIParent, "BOTTOMLEFT", 414, 21)
+	SLE:SetMoverPosition("ArenaHeaderMover", "TOPRIGHT", ElvUIParent, "TOPRIGHT", -210, -410)
+	SLE:SetMoverPosition("SLE_DataPanel_6_Mover", "BOTTOMLEFT", ElvUIParent, "BOTTOMLEFT", 4, 327)
+	SLE:SetMoverPosition("SLE_DataPanel_3_Mover", "BOTTOM", ElvUIParent, "BOTTOM", -254, 3)
+	SLE:SetMoverPosition("BossHeaderMover", "BOTTOMRIGHT", ElvUIParent, "BOTTOMRIGHT", -210, 435)
+	SLE:SetMoverPosition("ElvUF_PetMover", "BOTTOM", ElvUIParent, "BOTTOM", 0, 230)
+	SLE:SetMoverPosition("ElvAB_6", "BOTTOM", ElvUIParent, "BOTTOM", 0, 102)
+	SLE:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", ElvUIParent, "BOTTOMLEFT", 449, 511)
+	SLE:SetMoverPosition("SLE_DataPanel_7_Mover", "BOTTOM", ElvUIParent, "BOTTOM", 254, 3)
+	SLE:SetMoverPosition("PetAB", "TOPRIGHT", ElvUIParent, "TOPRIGHT", -4, -433)
+
+	E.db["gridSize"] = 110
+
+	E.db["tooltip"]["style"] = "inset"
+	E.db["tooltip"]["visibility"]["combat"] = true
+
+	E.db["chat"]["timeStampFormat"] = "%I:%M "
+	E.db["chat"]["editBoxPosition"] = "ABOVE_CHAT"
+	E.db["chat"]["lfgIcons"] = false
+	E.db["chat"]["emotionIcons"] = false
+
+	E.db["unitframe"]["units"]["tank"]["enable"] = false
+	E.db["unitframe"]["units"]["party"]["horizontalSpacing"] = 1
+	E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 21
+	E.db["unitframe"]["units"]["party"]["debuffs"]["yOffset"] = -7
+	E.db["unitframe"]["units"]["party"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
+	E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = -4
+	E.db["unitframe"]["units"]["party"]["buffs"]["enable"] = true
+	E.db["unitframe"]["units"]["party"]["buffs"]["yOffset"] = 28
+	E.db["unitframe"]["units"]["party"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
+	E.db["unitframe"]["units"]["party"]["buffs"]["clickThrough"] = true
+	E.db["unitframe"]["units"]["party"]["buffs"]["useBlacklist"] = false
+	E.db["unitframe"]["units"]["party"]["buffs"]["noDuration"] = false
+	E.db["unitframe"]["units"]["party"]["buffs"]["playerOnly"] = false
+	E.db["unitframe"]["units"]["party"]["buffs"]["perrow"] = 1
+	E.db["unitframe"]["units"]["party"]["buffs"]["useFilter"] = "TurtleBuffs"
+	E.db["unitframe"]["units"]["party"]["buffs"]["noConsolidated"] = false
+	E.db["unitframe"]["units"]["party"]["buffs"]["sizeOverride"] = 22
+	E.db["unitframe"]["units"]["party"]["buffs"]["xOffset"] = 30
+	E.db["unitframe"]["units"]["party"]["growthDirection"] = "LEFT_UP"
+	E.db["unitframe"]["units"]["party"]["GPSArrow"]["size"] = 40
+	E.db["unitframe"]["units"]["party"]["buffIndicator"]["size"] = 10
+	E.db["unitframe"]["units"]["party"]["roleIcon"]["enable"] = false
+	E.db["unitframe"]["units"]["party"]["roleIcon"]["position"] = "BOTTOMRIGHT"
+	E.db["unitframe"]["units"]["party"]["targetsGroup"]["anchorPoint"] = "BOTTOM"
+	E.db["unitframe"]["units"]["party"]["power"]["text_format"] = ""
+	E.db["unitframe"]["units"]["party"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"] = {}
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["font"] = "ElvUI Pixel"
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["justifyH"] = "CENTER"
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["fontOutline"] = "MONOCHROMEOUTLINE"
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["xOffset"] = 0
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["yOffset"] = -7
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["text_format"] = "[healthcolor][health:deficit]"
+	E.db["unitframe"]["units"]["party"]["customTexts"]["Health Text"]["size"] = 10
+	E.db["unitframe"]["units"]["party"]["healPrediction"] = true
+	E.db["unitframe"]["units"]["party"]["width"] = 80
+	E.db["unitframe"]["units"]["party"]["name"]["text_format"] = "[namecolor][name:veryshort] [difficultycolor][smartlevel]"
+	E.db["unitframe"]["units"]["party"]["name"]["position"] = "TOP"
+	E.db["unitframe"]["units"]["party"]["health"]["frequentUpdates"] = true
+	E.db["unitframe"]["units"]["party"]["health"]["position"] = "BOTTOM"
+	E.db["unitframe"]["units"]["party"]["health"]["text_format"] = ""
+	E.db["unitframe"]["units"]["party"]["height"] = 45
+	E.db["unitframe"]["units"]["party"]["verticalSpacing"] = 1
+	E.db["unitframe"]["units"]["party"]["petsGroup"]["anchorPoint"] = "BOTTOM"
+	E.db["unitframe"]["units"]["party"]["raidicon"]["attachTo"] = "LEFT"
+	E.db["unitframe"]["units"]["party"]["raidicon"]["xOffset"] = 9
+	E.db["unitframe"]["units"]["party"]["raidicon"]["yOffset"] = 0
+	E.db["unitframe"]["units"]["party"]["raidicon"]["size"] = 13
+	E.db["unitframe"]["units"]["raid40"]["horizontalSpacing"] = 1
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["enable"] = true
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["yOffset"] = -9
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["clickThrough"] = true
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["useBlacklist"] = false
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["perrow"] = 2
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["useFilter"] = "Blacklist"
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["sizeOverride"] = 21
+	E.db["unitframe"]["units"]["raid40"]["debuffs"]["xOffset"] = -4
+	E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["size"] = 26
+	E.db["unitframe"]["units"]["raid40"]["growthDirection"] = "UP_LEFT"
+	E.db["unitframe"]["units"]["raid40"]["health"]["frequentUpdates"] = true
+	E.db["unitframe"]["units"]["raid40"]["power"]["enable"] = true
+	E.db["unitframe"]["units"]["raid40"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["raid40"]["power"]["position"] = "CENTER"
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"] = {}
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["font"] = "ElvUI Pixel"
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["justifyH"] = "CENTER"
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["fontOutline"] = "MONOCHROMEOUTLINE"
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["xOffset"] = 0
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["yOffset"] = -7
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["text_format"] = "[healthcolor][health:deficit]"
+	E.db["unitframe"]["units"]["raid40"]["customTexts"]["Health Text"]["size"] = 10
+	E.db["unitframe"]["units"]["raid40"]["healPrediction"] = true
+	E.db["unitframe"]["units"]["raid40"]["width"] = 50
+	E.db["unitframe"]["units"]["raid40"]["invertGroupingOrder"] = false
+	E.db["unitframe"]["units"]["raid40"]["name"]["text_format"] = "[namecolor][name:veryshort]"
+	E.db["unitframe"]["units"]["raid40"]["name"]["position"] = "TOP"
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["enable"] = true
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["yOffset"] = 25
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["clickThrough"] = true
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["useBlacklist"] = false
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["noDuration"] = false
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["playerOnly"] = false
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["perrow"] = 1
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["useFilter"] = "TurtleBuffs"
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["noConsolidated"] = false
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["sizeOverride"] = 17
+	E.db["unitframe"]["units"]["raid40"]["buffs"]["xOffset"] = 21
+	E.db["unitframe"]["units"]["raid40"]["height"] = 43
+	E.db["unitframe"]["units"]["raid40"]["verticalSpacing"] = 1
+	E.db["unitframe"]["units"]["raid40"]["raidicon"]["attachTo"] = "LEFT"
+	E.db["unitframe"]["units"]["raid40"]["raidicon"]["xOffset"] = 9
+	E.db["unitframe"]["units"]["raid40"]["raidicon"]["yOffset"] = 0
+	E.db["unitframe"]["units"]["raid40"]["raidicon"]["size"] = 13
+	E.db["unitframe"]["units"]["focus"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["target"]["portrait"]["overlay"] = true
+	E.db["unitframe"]["units"]["target"]["aurabar"]["enable"] = false
+	E.db["unitframe"]["units"]["target"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["target"]["power"]["height"] = 11
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["countFontSize"] = 13
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["fontSize"] = 9
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["enable"] = true
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = -7
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["sizeOverride"] = 21
+	E.db["unitframe"]["units"]["raid"]["debuffs"]["xOffset"] = -4
+	E.db["unitframe"]["units"]["raid"]["growthDirection"] = "LEFT_UP"
+	E.db["unitframe"]["units"]["raid"]["numGroups"] = 8
+	E.db["unitframe"]["units"]["raid"]["roleIcon"]["enable"] = false
+	E.db["unitframe"]["units"]["raid"]["healPrediction"] = true
+	E.db["unitframe"]["units"]["raid"]["power"]["height"] = 8
+	E.db["unitframe"]["units"]["raid"]["buffs"]["enable"] = true
+	E.db["unitframe"]["units"]["raid"]["buffs"]["yOffset"] = 28
+	E.db["unitframe"]["units"]["raid"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
+	E.db["unitframe"]["units"]["raid"]["buffs"]["clickThrough"] = true
+	E.db["unitframe"]["units"]["raid"]["buffs"]["useBlacklist"] = false
+	E.db["unitframe"]["units"]["raid"]["buffs"]["noDuration"] = false
+	E.db["unitframe"]["units"]["raid"]["buffs"]["playerOnly"] = false
+	E.db["unitframe"]["units"]["raid"]["buffs"]["perrow"] = 1
+	E.db["unitframe"]["units"]["raid"]["buffs"]["useFilter"] = "TurtleBuffs"
+	E.db["unitframe"]["units"]["raid"]["buffs"]["noConsolidated"] = false
+	E.db["unitframe"]["units"]["raid"]["buffs"]["sizeOverride"] = 22
+	E.db["unitframe"]["units"]["raid"]["buffs"]["xOffset"] = 30
+	E.db["unitframe"]["units"]["focustarget"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["pettarget"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["pet"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["player"]["debuffs"]["attachTo"] = "BUFFS"
+	E.db["unitframe"]["units"]["player"]["portrait"]["overlay"] = true
+	E.db["unitframe"]["units"]["player"]["classbar"]["detachFromFrame"] = true
+	E.db["unitframe"]["units"]["player"]["classbar"]["enable"] = false
+	E.db["unitframe"]["units"]["player"]["aurabar"]["enable"] = false
+	E.db["unitframe"]["units"]["player"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["player"]["power"]["height"] = 11
+	E.db["unitframe"]["units"]["player"]["buffs"]["enable"] = true
+	E.db["unitframe"]["units"]["player"]["buffs"]["noDuration"] = false
+	E.db["unitframe"]["units"]["player"]["buffs"]["attachTo"] = "FRAME"
+	E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 399
+	E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 25
+	E.db["unitframe"]["units"]["boss"]["portrait"]["enable"] = true
+	E.db["unitframe"]["units"]["boss"]["portrait"]["overlay"] = true
+	E.db["unitframe"]["units"]["boss"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["arena"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["targettarget"]["power"]["width"] = "inset"
+	E.db["unitframe"]["units"]["assist"]["targetsGroup"]["enable"] = false
+	E.db["unitframe"]["units"]["assist"]["enable"] = false
+	E.db["unitframe"]["statusbar"] = "Polished Wood"
+	E.db["unitframe"]["colors"]["auraBarBuff"] = {
+		["b"] = 0.0941176470588236,
+		["g"] = 0.0784313725490196,
+		["r"] = 0.309803921568628,
+	}
+	E.db["unitframe"]["colors"]["transparentPower"] = true
+	E.db["unitframe"]["colors"]["castColor"] = {
+		["b"] = 0.1,
+		["g"] = 0.1,
+		["r"] = 0.1,
+	}
+	E.db["unitframe"]["colors"]["health"] = {
+		["b"] = 0.235294117647059,
+		["g"] = 0.235294117647059,
+		["r"] = 0.235294117647059,
+	}
+	E.db["unitframe"]["colors"]["transparentHealth"] = true
+	E.db["unitframe"]["colors"]["transparentCastbar"] = true
+	E.db["unitframe"]["colors"]["transparentAurabars"] = true
+
+	E.db["datatexts"]["minimapPanels"] = false
+	E.db["datatexts"]["fontSize"] = 12
+	E.db["datatexts"]["panelTransparency"] = true
+	E.db["datatexts"]["panels"]["SLE_DataPanel_4"]["middle"] = "DPS"
+	E.db["datatexts"]["panels"]["RightChatDataPanel"]["right"] = "Skada"
+	E.db["datatexts"]["panels"]["RightChatDataPanel"]["left"] = "Combat/Arena Time"
+	-- E.db["datatexts"]["panels"]["SLE_DataPanel_1"]["middle"] = "Friends"
+	-- E.db["datatexts"]["panels"]["SLE_DataPanel_6"]["middle"] = "Friends"
+	E.db["datatexts"]["panels"]["LeftChatDataPanel"]["right"] = "Haste"
+	E.db["datatexts"]["panels"]["LeftChatDataPanel"]["left"] = "Spell/Heal Power"
+	E.db["datatexts"]["panels"]["RightMiniPanel"] = "Gold"
+	E.db["datatexts"]["panels"]["SLE_DataPanel_3"] = "WIM"
+	E.db["datatexts"]["panels"]["SLE_DataPanel_7"] = "Talent/Loot Specialization"
+	E.db["datatexts"]["panels"]["SLE_DataPanel_8"]["right"] = "Gold"
+	E.db["datatexts"]["panels"]["SLE_DataPanel_8"]["left"] = "System"
+	E.db["datatexts"]["panels"]["SLE_DataPanel_8"]["middle"] = "Time"
+	-- E.db["datatexts"]["panels"]["SLE_DataPanel_2"]["middle"] = "Attack Power"
+	E.db["datatexts"]["panels"]["LeftMiniPanel"] = "Time"
+	E.db["datatexts"]["font"] = "ElvUI Font"
+	E.db["datatexts"]["fontOutline"] = "None"
+	E.db["datatexts"]["battleground"] = false
+
+	if IsAddOnLoaded("ElvUI_DTBars2") then
+		if not E.db.dtbars then E.db.dtbars = {} end
+		for name, data in pairs(E.global.dtbars) do
+			if dtbarsList[name] then
+				E.db.dtbars[name] = dtbarsList[name]
+				E.db.datatexts.panels[name] = dtbarsTexts[name]
+			end
+		end
+	end
+
+	E.db["actionbar"]["bar3"]["buttonspacing"] = 1
+	E.db["actionbar"]["bar3"]["buttonsPerRow"] = 3
+	E.db["actionbar"]["bar3"]["alpha"] = 0.4
+	E.db["actionbar"]["bar2"]["enabled"] = true
+	E.db["actionbar"]["bar2"]["buttonspacing"] = 1
+	E.db["actionbar"]["bar2"]["alpha"] = 0.6
+	E.db["actionbar"]["bar5"]["buttonspacing"] = 1
+	E.db["actionbar"]["bar5"]["buttonsPerRow"] = 3
+	E.db["actionbar"]["bar5"]["alpha"] = 0.4
+	E.db["actionbar"]["bar1"]["buttonspacing"] = 1
+	E.db["actionbar"]["bar1"]["alpha"] = 0.6
+	E.db["actionbar"]["stanceBar"]["buttonsPerRow"] = 1
+	E.db["actionbar"]["stanceBar"]["alpha"] = 0.6
+	E.db["actionbar"]["bar4"]["enabled"] = false
+	E.db["actionbar"]["bar4"]["point"] = "BOTTOMLEFT"
+	E.db["actionbar"]["bar4"]["alpha"] = 0.4
+	E.db["actionbar"]["bar4"]["buttonsPerRow"] = 6
+	E.db["actionbar"]["bar4"]["backdrop"] = false
+
+	E.db["general"]["autoRepair"] = "GUILD"
+	E.db["general"]["bottomPanel"] = false
+	E.db["general"]["backdropfadecolor"]["b"] = 0.054
+	E.db["general"]["backdropfadecolor"]["g"] = 0.054
+	E.db["general"]["backdropfadecolor"]["r"] = 0.054
+	E.db["general"]["valuecolor"] = {
+		["b"] = 0.819,
+		["g"] = 0.513,
+		["r"] = 0.09,
+	}
+	E.db["general"]["threat"]["position"] = "LEFTCHAT"
+	E.db["general"]["topPanel"] = false
+	E.db["general"]["vendorGrays"] = true
+
+	E.private["general"]["normTex"] = "Polished Wood"
+	E.private["general"]["chatBubbles"] = "nobackdrop"
+	E.private["general"]["glossTex"] = "Polished Wood"
+
+	E.private["theme"] = "default"
+
+	if AddOnSkins then
+		E.private["addonskins"]["Blizzard_WorldStateCaptureBar"] = true
+		E.private["addonskins"]["EmbedSystem"] = false
+		E.private["addonskins"]["EmbedSystemDual"] = true
+		E.private["addonskins"]['EmbedLeft'] = 'Skada'
+		E.private["addonskins"]['EmbedRight'] = 'Skada'
+	end
+
+	E.db.layoutSet = layout
+	E.private["install_complete"] = installMark
+	E.private["sle"]["install_complete"] = installMarkSLE
+
+	E:UpdateAll(true)
+
+	_G["PluginInstallStepComplete"].message = L["Affinitii's Default Set"]
+	_G["PluginInstallStepComplete"]:Show()
 end

 E.PopupDialogs['SLE_INSTALL_SETTINGS_LAYOUT'] = {
@@ -837,6 +1406,8 @@ E.PopupDialogs['SLE_INSTALL_SETTINGS_LAYOUT'] = {
 	OnAccept = function()
 		if PI.SLE_Auth == "DARTH" then
 			PI:DarthSetup()
+		elseif PI.SLE_Auth == "AFFINITY" then
+			AffinitySetup()
 		end
 	end,
 	OnCancel = E.noop;
@@ -859,7 +1430,7 @@ local function StartSetup()
 		E:StaticPopup_Show("SLE_INSTALL_SETTINGS_LAYOUT")
 	elseif PI.SLE_Auth == "REPOOC" then
 	elseif PI.SLE_Auth == "AFFINITY" then
-		AffinitySetup()
+		E:StaticPopup_Show("SLE_INSTALL_SETTINGS_LAYOUT")
 	end
 end

@@ -867,6 +1438,9 @@ local function SetupAddons()
 	if PI.SLE_Auth == "DARTH" then
 		local list = "Skada\nxCT+"
 		E.PopupDialogs['SLE_INSTALL_SETTINGS_ADDONS'].text = T.format(L["SLE_INSTALL_SETTINGS_ADDONS_TEXT"], list)
+	elseif PI.SLE_Auth == "AFFINITY" then
+		local list = "Skada\nxCT+"
+		E.PopupDialogs['SLE_INSTALL_SETTINGS_ADDONS'].text = T.format(L["SLE_INSTALL_SETTINGS_ADDONS_TEXT"], list)
 	end
 	E:StaticPopup_Show("SLE_INSTALL_SETTINGS_ADDONS")
 end
@@ -962,6 +1536,10 @@ SLE.installTable = {
 			-- _G["PluginInstallFrame"].Option2:Show()
 			-- _G["PluginInstallFrame"].Option2:SetScript('OnClick', function() PI.SLE_Auth = "REPOOC"; _G["PluginInstallFrame"].Next:Click() end)
 			-- _G["PluginInstallFrame"].Option2:SetText(L["Repooc's Config"])
+
+			_G["PluginInstallFrame"].Option2:Show()
+			_G["PluginInstallFrame"].Option2:SetScript('OnClick', function() PI.SLE_Auth = "AFFINITY"; _G["PluginInstallFrame"].Next:Click() end)
+			_G["PluginInstallFrame"].Option2:SetText(L["Affinitii's Config"])

 			_G["PluginInstallFrame"]:Size(550, 500)
 		end,
@@ -969,7 +1547,7 @@ SLE.installTable = {
 			if PI.SLE_Auth == "" then _G["PluginInstallFrame"].SetPage(_G["PluginInstallFrame"].PrevPage == 5 and 7 or 5) return end
 			PI.SLE_Word = E.db.layoutSet == 'tank' and L["Tank"] or E.db.layoutSet == 'healer' and L["Healer"] or E.db.layoutSet == 'dpsMelee' and L['Physical DPS'] or E.db.layoutSet == 'dpsCaster' and L['Caster DPS'] or NONE
 			_G["PluginInstallFrame"].SubTitle:SetText(L["Layout & Settings Import"])
-			_G["PluginInstallFrame"].Desc1:SetText(T.format(L["You have selected to use %s and role %s."], PI.SLE_Auth == "DARTH" and L["Darth's Config"] or PI.SLE_Auth == "REPOOC" and L["Repooc's Config"], PI.SLE_Word))
+			_G["PluginInstallFrame"].Desc1:SetText(T.format(L["You have selected to use %s and role %s."], PI.SLE_Auth == "DARTH" and L["Darth's Config"] or PI.SLE_Auth == "REPOOC" and L["Repooc's Config"] or PI.SLE_Auth == "AFFINITY" and L["Affinitii's Config"], PI.SLE_Word))
 			_G["PluginInstallFrame"].Desc2:SetText(L["SLE_INSTALL_LAYOUT_TEXT2"])
 			_G["PluginInstallFrame"].Desc3:SetText(L["Importance: |cffD3CF00Medium|r"])

@@ -977,13 +1555,16 @@ SLE.installTable = {
 			_G["PluginInstallFrame"].Option1:SetScript('OnClick', StartSetup)
 			_G["PluginInstallFrame"].Option1:SetText(L["Layout"])

-			_G["PluginInstallFrame"].Option2:Show()
-			_G["PluginInstallFrame"].Option2:SetScript('OnClick', SetupAddons)
-			_G["PluginInstallFrame"].Option2:SetText(L["Addons"])
-
-			_G["PluginInstallFrame"].Option3:Show()
-			_G["PluginInstallFrame"].Option3:SetScript('OnClick', SetupCVars)
-			_G["PluginInstallFrame"].Option3:SetText(L["CVars"])
+			if PI.SLE_Auth == "DARTH" or PI.SLE_Auth == "AFFINITY" then
+				_G["PluginInstallFrame"].Option2:Show()
+				_G["PluginInstallFrame"].Option2:SetScript('OnClick', SetupAddons)
+				_G["PluginInstallFrame"].Option2:SetText(ADDONS)
+			end
+			if PI.SLE_Auth == "DARTH" then
+				_G["PluginInstallFrame"].Option3:Show()
+				_G["PluginInstallFrame"].Option3:SetScript('OnClick', SetupCVars)
+				_G["PluginInstallFrame"].Option3:SetText(L["CVars"])
+			end
 		end,
 		[7] = function()
 			_G["PluginInstallFrame"].SubTitle:SetText(L["Installation Complete"])
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index aabc82a..1ae36c0 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -41,8 +41,10 @@ A |cff1784d1"%s"|r role was chosen.
 |cffFF0000Warning:|r Please note that the authors' may or may not use any of the layouts/themes you have selected as they may have changed their setup more recently. Also switching between layouts in here may cause some unpredictable and weird results.]=]
 L["Darth's Config"] = true
 L["Repooc's Config"] = true
+L["Affinitii's Config"] = true
 L["Darth's Default Set"] = true
 L["Repooc's Default Set"] = true
+L["Affinitii's Default Set"] = true
 L["Layout & Settings Import"] = true
 L["You have selected to use %s."] = true
 L["SLE_INSTALL_LAYOUT_TEXT2"] = [[Following buttons will import layout/addon settings for the selected config and role.
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index 2cd1cb0..c3c31be 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -40,8 +40,10 @@ L["SLE_Install_Text_AUTHOR"] = [=[Этот шаг опционален и дол
 |cffFF0000Внимание:|r Пожалуйста помните, что авторы могут не использовать тему/роль, которую вы выбрали, и потому результат не всегда будет хорошим. Также переключение между шаблонами здесь может привести к неоднозначным результатам.]=]
 L["Darth's Config"] = "Опции Дарта"
 L["Repooc's Config"] = "Опции Repooc'а"
+L["Affinitii's Config"] = "Опции Affinitii"
 L["Darth's Default Set"] = "Установлены настройки Дарта"
 L["Repooc's Default Set"] = "Установлены настройки Repooc'а"
+L["Affinitii's Default Set"] = "Установлены настройки Affinitii"
 L["Layout & Settings Import"] = "Импорт расположений и настроек"
 L["You have selected to use %s."] = "Вы выбрали %s"
 L["SLE_INSTALL_LAYOUT_TEXT2"] = [[Данные опции импортируют расположения/настройки аддонов для выбранных опций и роли.