From 15b9994a76ddf5cf97a6c645465e6c43f2c75164 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 1 Jul 2012 13:11:18 +0400 Subject: [PATCH] A lot of crap for install --- ElvUI_SLE/core/install.lua | 170 ++++++++++++++++++++++++++++++++------------ 1 file changed, 124 insertions(+), 46 deletions(-) diff --git a/ElvUI_SLE/core/install.lua b/ElvUI_SLE/core/install.lua index 2242ca0..12d4750 100644 --- a/ElvUI_SLE/core/install.lua +++ b/ElvUI_SLE/core/install.lua @@ -266,6 +266,8 @@ function E:SetupResolution(noDataReset) if not noDataReset then E.db.general.panelWidth = 400 E.db.general.panelHeight = 180 + E.db.sle.datatext.chatleft.width = 384 + E.db.sle.datatext.chatright.width = 384 E:CopyTable(E.db.actionbar, P.actionbar) @@ -275,7 +277,7 @@ function E:SetupResolution(noDataReset) E.db.actionbar.bar5.enabled = false; end - E.db.movers.ElvAB_2 = "CENTERUIParentBOTTOM074.18" + E.db.movers.ElvAB_2 = "CENTERUIParentBOTTOM056.18" if not noDataReset then E:CopyTable(E.db.unitframe.units, P.unitframe.units) @@ -304,39 +306,23 @@ function E:SetupResolution(noDataReset) E.db.unitframe.units.arena.castbar.width = 200; end - E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-106151" - E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM10696" - E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM106151" - E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM-10696" + E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-106135" + E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM10680" + E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM106135" + E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM-10680" E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM310332" - E.db.movers.ElvUF_Raid40Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid25Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid10Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_PartyMover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - --"BOTTOMRIGHT", RightChatTab, "TOPRIGHT", 2, 4 E.db.lowresolutionset = true; elseif not noDataReset then - if not E.db.movers then E.db.movers = {}; end E.db.general.panelWidth = P.general.panelWidth E.db.general.panelHeight = P.general.panelHeight E:CopyTable(E.db.actionbar, P.actionbar) E:CopyTable(E.db.unitframe.units, P.unitframe.units) - E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-28888" - E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM28888" - E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM099" - E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM0136" - E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM280332" - E.db.movers.ElvUF_Raid40Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid25Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid10Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_PartyMover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.lowresolutionset = nil; end - + if not noDataReset and E.db.theme then E:SetupTheme(E.db.theme, true) end @@ -508,27 +494,61 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to E.db.general.stickyFrames = false E.db.general.minimapLocationText = 'SHOW' E.db.general.panelHeight = 227 + if E.db.lowresolutionset then + E.db.general.panelWidth = 400 + else + E.db.general.panelWidth = 444 + end --Nameplates E.db.nameplate.showhealth = true --Datatexts E.db.datatexts.time24 = true - E.db.sle.datatext.dp1.enabled = true - E.db.sle.datatext.dp2.enabled = true E.db.sle.datatext.top.enabled = true - E.db.sle.datatext.dp3.enabled = true - E.db.sle.datatext.dp4.enabled = true - E.db.sle.datatext.dp5.enabled = true E.db.sle.datatext.bottom.enabled = true - E.db.sle.datatext.dp6.enabled = true + if E.db.lowresolutionset then + E.db.sle.datatext.dp1.enabled = false + E.db.sle.datatext.dp2.enabled = false + E.db.sle.datatext.dp3.enabled = false + E.db.sle.datatext.dp4.enabled = false + E.db.sle.datatext.dp5.enabled = false + E.db.sle.datatext.dp6.enabled = false + E.db.sle.datatext.chatleft.width = 384 + E.db.sle.datatext.chatright.width = 384 + E.db.sle.datatext.bottom.width = E.screenwidth/3 + 52 + else + E.db.sle.datatext.dp1.enabled = true + E.db.sle.datatext.dp2.enabled = true + E.db.sle.datatext.dp3.enabled = true + E.db.sle.datatext.dp4.enabled = true + E.db.sle.datatext.dp5.enabled = true + E.db.sle.datatext.dp6.enabled = true + E.db.sle.datatext.chatleft.width = 428 + E.db.sle.datatext.chatright.width = 428 + E.db.sle.datatext.bottom.width = E.screenwidth/10 - 4 + end --Actionbars E.db.actionbar.hotkeytext = false + if E.db.lowresolutionset then + E.db.movers.ElvAB_2 = "BOTTOMUIParentBOTTOM056" --Need to move up if low resolution is set + else + E.db.actionbar.bar2.enabled = false; --Don't need to hide that if not + end + E.db.actionbar.bar4.enabled = false; E.db.actionbar.bar1.point = 'TOPLEFT' E.db.actionbar.bar3.point = 'TOPLEFT' E.db.actionbar.bar5.point = 'TOPLEFT' E.db.actionbar.barShapeShift.buttonsize = 25 + E.db.actionbar.barPet.point = 'TOPLEFT' + E.db.actionbar.barPet.buttonsPerRow = 10 + E.db.actionbar.barPet.buttonsize = 22 --Actionbars moving up E.db.movers.ElvAB_1 = "BOTTOMUIParentBOTTOM021" E.db.movers.ShiftAB = "TOPLEFTUIParentTOPLEFT0-21" + if E.db.lowresolutionset then + E.db.movers.PetAB = "BOTTOMElvAB_2TOP10" + else + E.db.movers.PetAB = "BOTTOMElvAB_1TOP10" + end --Unitframes E.db.unitframe.smoothbars = false @@ -597,32 +617,40 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to if E.db.lowresolutionset then E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-305256" E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM305256" - E.db.movers.ElvUF_Raid40Mover = "BOTTOMUIParentBOTTOM096" - E.db.movers.ElvUF_Raid25Mover = "BOTTOMUIParentBOTTOM096" - E.db.movers.ElvUF_Raid10Mover = "BOTTOMUIParentBOTTOM096" + E.db.movers.ElvUF_Raid40Mover = "BOTTOMUIParentBOTTOM0125" + E.db.movers.ElvUF_Raid25Mover = "BOTTOMUIParentBOTTOM0125" + E.db.movers.ElvUF_Raid10Mover = "BOTTOMUIParentBOTTOM0125" E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM305203" - E.db.movers.ElvUF_PartyMover = "BOTTOMUIParentBOTTOM0120" + E.db.movers.ElvUF_PartyMover = "BOTTOMUIParentBOTTOM0159" E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM-305203" E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM310432" + E.db.actionbar.bar1.heightMult = 1 + E.db.actionbar.bar2.backdrop = true else E.db.movers.ElvUF_PlayerMover = "BOTTOMLEFTUIParentBOTTOMLEFT464258" E.db.movers.ElvUF_TargetMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT-464258" - E.db.movers.ElvUF_Raid40Mover = "BOTTOMUIParentBOTTOM066" - E.db.movers.ElvUF_Raid25Mover = "BOTTOMUIParentBOTTOM066" - E.db.movers.ElvUF_Raid10Mover = "BOTTOMUIParentBOTTOM066" + E.db.movers.ElvUF_Raid40Mover = "BOTTOMUIParentBOTTOM095" + E.db.movers.ElvUF_Raid25Mover = "BOTTOMUIParentBOTTOM095" + E.db.movers.ElvUF_Raid10Mover = "BOTTOMUIParentBOTTOM095" E.db.movers.ElvUF_TargetTargetMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT-464167" - E.db.movers.ElvUF_PartyMover = "BOTTOMUIParentBOTTOM090" + E.db.movers.ElvUF_PartyMover = "BOTTOMUIParentBOTTOM0120" E.db.movers.ElvUF_PetMover = "BOTTOMLEFTUIParentBOTTOMLEFT464167" E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM280332" end elseif E.db.lowresolutionset then if not E.db.movers then E.db.movers = {}; end - E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-106151" - E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM106151" - E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM10696" - E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM-10696" - E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM310332" + E.db.movers.ElvUF_PlayerMover = "BOTTOMUIParentBOTTOM-106180" + E.db.movers.ElvUF_TargetMover = "BOTTOMUIParentBOTTOM106180" + E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM106125" + E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM-106125" + E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM310332" + E.db.movers.ElvUF_Raid40Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_Raid25Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_Raid10Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_PartyMover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.actionbar.bar1.heightMult = 1 + E.db.actionbar.bar2.backdrop = true else --[[if not noDataReset then E:ResetMovers('') @@ -633,10 +661,11 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to E.db.movers.ElvUF_TargetTargetMover = "BOTTOMUIParentBOTTOM0120" E.db.movers.ElvUF_PetMover = "BOTTOMUIParentBOTTOM0164" E.db.movers.ElvUF_FocusMover = "BOTTOMUIParentBOTTOM280332" - E.db.movers.ElvUF_Raid40Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid25Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_Raid10Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" - E.db.movers.ElvUF_PartyMover = "BOTTOMLEFTUIParentBOTTOMLEFT0200" + E.db.movers.ElvUF_Raid40Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_Raid25Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_Raid10Mover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvUF_PartyMover = "BOTTOMLEFTUIParentBOTTOMLEFT0249" + E.db.movers.ElvAB_1 = "BOTTOMUIParentBOTTOM021" end if E.db.lowresolutionset and not noDataReset then @@ -691,6 +720,41 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to E.db.unitframe.units.target.debuffs.useFilter = 'DebuffBlacklist'; E.db.unitframe.units.target.debuffs.showPlayerOnly = false; E.db.unitframe.units.target.castbar.format = 'CURRENTMAX'; + --Target of Target + E.db.unitframe.units.targettarget.debuffs.enable = false + --Focus + E.db.unitframe.units.focus.health.position = 'BOTTOMRIGHT' + E.db.unitframe.units.focus.power.text = true + E.db.unitframe.units.focus.power.height = 10 + E.db.unitframe.units.focus.name.position = 'TOPLEFT' + E.db.unitframe.units.focus.debuffs.perrow = 7 + E.db.unitframe.units.focus.debuffs['growth-y'] = 'UP' + E.db.unitframe.units.focus.castbar.format = 'CURRENTMAX' + --Arena + E.db.unitframe.units.arena.growthDirection = 'DOWN' + E.db.unitframe.units.arena.health.position = 'BOTTOMRIGHT' + E.db.unitframe.units.arena.name.position = 'TOPLEFT' + E.db.unitframe.units.arena.buffs.enable = false + E.db.unitframe.units.arena.debuffs.enable = false + E.db.unitframe.units.arena.castbar.format = 'CURRENTMAX' + if E.db.lowresolutionset then + E.db.movers.ArenaHeaderMover = "TOPRIGHTUIParentTOPRIGHT-1-240" + else + E.db.movers.ArenaHeaderMover = "TOPRIGHTUIParentTOPRIGHT-1-240" + end + --Boss + E.db.unitframe.units.boss.growthDirection = 'DOWN' + E.db.unitframe.units.boss.health.position = 'BOTTOMRIGHT' + E.db.unitframe.units.boss.power.height = 10 + E.db.unitframe.units.boss.name.position = 'TOPLEFT' + E.db.unitframe.units.boss.buffs.enable = false + E.db.unitframe.units.boss.debuffs.enable = false + E.db.unitframe.units.boss.castbar.format = 'CURRENTMAX' + if E.db.lowresolutionset then + E.db.movers.BossHeaderMover = "TOPRIGHTUIParentTOPRIGHT-1-240" + else + E.db.movers.BossHeaderMover = "TOPRIGHTUIParentTOPRIGHT-1-240" + end --Bags E.db.bags.yOffset = 225 @@ -709,7 +773,21 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to --Chat E.db.sle.chat.fade = true E.db.sle.unitframes.reverse.mana = true - + --UI buttons + E.db.sle.uibuttons.enable = true + if E.db.lowresolutionset then + E.db.movers.UIBFrameMover = "LEFTUIParentLEFT030" + end + --Minimap and auras + E.db.movers.MinimapMover = "TOPRIGHTUIParentTOPRIGHT-1-21" + E.db.movers.AurasMover = "TOPRIGHTMMHolderTOPLEFT-10" + E.db.movers.BNETMover = "TOPRIGHTArenaHeaderMoverBOTTOMRIGHT0-10" + if E.db.lowresolutionset then + E.db.movers.WatchFrameMover = "TOPRIGHTUIParentTOPRIGHT-300-210" + else + E.db.movers.WatchFrameMover = "BOTTOMLEFTUIParentBOTTOMLEFT1500846" + end + E:UpdateAll(true) end -- 1.7.9.5