Quantcast

Deleted balance power frame

Darthpred [06-30-12 - 12:48]
Deleted balance power frame
Filename
ElvUI_SLE/modules/balancepower/balancepower.lua
ElvUI_SLE/modules/balancepower/load_balancepower.xml
ElvUI_SLE/modules/balancepower/options.lua
diff --git a/ElvUI_SLE/modules/balancepower/balancepower.lua b/ElvUI_SLE/modules/balancepower/balancepower.lua
deleted file mode 100644
index a4206ef..0000000
--- a/ElvUI_SLE/modules/balancepower/balancepower.lua
+++ /dev/null
@@ -1,48 +0,0 @@
---Module to create frame with sol/lun energy value. At least untill the time i find the way to place text on actual energy bar
-local E, L, V, P, G =  unpack(ElvUI); --Engine
-local M = E:GetModule('Misc');
-local SLE = E:GetModule('SLE');
-
---Defaults
-P['general'] = {
-	['bpenable'] = false,
-};
-
-local bpower = CreateFrame('Frame', "BPower", E.UIParent)
-local bpower_text = bpower:CreateFontString(nil, 'OVERLAY')
-
-function M:CreateBalancePower()
-
-	bpower:Size(30, 10)
-	bpower:Point("BOTTOMLEFT", ElvUF_Player, "TOPLEFT", 2, 3)
-	bpower:CreateBackdrop('Default')
-
-
-	bpower_text:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
-	bpower_text:SetPoint("CENTER", bpower, "CENTER")
-
-	bpower:SetScript("OnUpdate", function(self,event,...)
-		local spower = UnitPower( PlayerFrame.unit, SPELL_POWER_ECLIPSE );
-		bpower_text:SetText(spower)
-	end)
-
-	E:CreateMover(bpower, "BalancePowerMover", "BP")
-
-	bpower:Hide()
-
-	SLE:BPUpdate()
-end
-
---Visibility/enable check
-function SLE:BPUpdate()
-	if E.db.general.bpenable then
-		bpower:Show()
-	else
-		bpower:Hide()
-	end
-end
-
---Druid only feature!!!
-if E.myclass == "DRUID" then
-	M:CreateBalancePower()
-end
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/balancepower/load_balancepower.xml b/ElvUI_SLE/modules/balancepower/load_balancepower.xml
deleted file mode 100644
index 1c40c64..0000000
--- a/ElvUI_SLE/modules/balancepower/load_balancepower.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/">
-	<Script file='balancepower.lua'/>
-	<Script file='options.lua'/>
-</Ui>
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/balancepower/options.lua b/ElvUI_SLE/modules/balancepower/options.lua
deleted file mode 100644
index 284c2e2..0000000
--- a/ElvUI_SLE/modules/balancepower/options.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local E, L, V, P, G =  unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB
-
---Adds a new option group is character is a druid.
-if E.myclass == "DRUID" then
-E.Options.args.sle.args.druid = {
-	order = 15,
-	type = 'group',
-	name = L["Druid"],
-	args = {
-		druidheader = {
-			order = 1,
-			type = "header",
-			name = L["Druid spesific options"],
-		},
-		general = {
-			order = 2,
-			type = "group",
-			name = '',
-			guiInline = true,
-			args = {
-				bpenable = { --Frame with sol/lun energy count
-					order = 1,
-					type = "toggle",
-					name = L["Balance Power Frame"],
-					desc = L["Show/hide the frame with exact number of your Solar/Lunar energy."],
-					get = function(info) return E.db.general.bpenable end,
-					set = function(info, value) E.db.general.bpenable = value; E:GetModule('SLE'):BPUpdate() end
-				},
-			},
-		},
-	},
-}
-end
\ No newline at end of file