Skip to content

Commit

Permalink
Update AddonSetup.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed May 16, 2022
1 parent cfcc2fe commit 3d3ba2a
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions ElvUI_EltreumUI/Core/AddonSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,47 +168,49 @@ end

-- Repooc's Dynamic Status Icons
function ElvUI_EltreumUI:SetupDynamicStatusIcons()
if ElvDB.profileKeys[E.mynameRealm]:match("Eltreum DPS/Tank") then
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMRIGHT"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["faceright"] = true
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Traveler"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["xOffset"] = -75
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["yOffset"] = -83
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMLEFT"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Clockwork"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["xOffset"] = 75
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["yOffset"] = -83

ElvUI_EltreumUI:Print("Dynamic Status Icons was setup")
elseif ElvDB.profileKeys[E.mynameRealm]:match("Eltreum Healer") then
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMRIGHT"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["faceright"] = true
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Traveler"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["xOffset"] = -49
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["yOffset"] = -88
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMLEFT"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Clockwork"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["xOffset"] = 49
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["yOffset"] = -88

ElvUI_EltreumUI:Print("Dynamic Status Icons was setup")
else
ElvUI_EltreumUI:Print("Eltruism profile not found")
if IsAddOnLoaded('ElvUI_DynamicStatusIcons') then
if ElvDB.profileKeys[E.mynameRealm]:match("Eltreum DPS/Tank") then
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMRIGHT"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["faceright"] = true
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Traveler"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["xOffset"] = -75
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["yOffset"] = -83
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMLEFT"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Clockwork"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["xOffset"] = 75
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["yOffset"] = -83

ElvUI_EltreumUI:Print("Dynamic Status Icons was setup")
elseif ElvDB.profileKeys[E.mynameRealm]:match("Eltreum Healer") then
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMRIGHT"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["faceright"] = true
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Traveler"
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["xOffset"] = -49
E.db["unitframe"]["units"]["player"]["DynamicStatusIcons"]["yOffset"] = -88
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["anchorPoint"] = "BOTTOMLEFT"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["b"] = 0.4274500310421
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["g"] = 0.60784178972244
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["color"]["r"] = 0.77646887302399
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["iconpack"] = "Default - Pepe - Clockwork"
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["scale"] = 0.8
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["xOffset"] = 49
E.db["unitframe"]["units"]["target"]["DynamicStatusIcons"]["yOffset"] = -88

ElvUI_EltreumUI:Print("Dynamic Status Icons was setup")
else
ElvUI_EltreumUI:Print("Eltruism profile not found")
end
end
end

0 comments on commit 3d3ba2a

Please sign in to comment.