From 9467b9adaab02bd797405affd1b93945cf3f9cc9 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Tue, 12 Jan 2010 18:56:40 +0000 Subject: [PATCH] bug fix for Mana(more) git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@198 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 2 +- Ovale.lua | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Condition.lua b/Condition.lua index 89eeb89..25a408a 100644 --- a/Condition.lua +++ b/Condition.lua @@ -209,7 +209,7 @@ local function GetManaTime(mana, withBerserker) return limit else if Ovale.state.mana>=mana then - return Ovale.currentTime + return Ovale.currentTime-1 else return nil end diff --git a/Ovale.lua b/Ovale.lua index 027f064..389183d 100644 --- a/Ovale.lua +++ b/Ovale.lua @@ -263,6 +263,18 @@ local options = Ovale.frame:Hide() end }, + config = + { + name = "Configuration", + type = "execute", + func = function() Ovale:AfficherConfig() end + }, + code = + { + name = "Code", + type = "execute", + func = function() Ovale:AfficherCode() end + } } } } @@ -1513,6 +1525,11 @@ function Ovale:ChargerDefaut() end function Ovale:AfficherConfig() + self.AceConfigDialog:SetDefaultSize("Ovale Apparence", 500, 550) + self.AceConfigDialog:Open("Ovale Apparence", configFrame) +end + +function Ovale:AfficherCode() self.AceConfigDialog:SetDefaultSize("Ovale", 500, 550) self.AceConfigDialog:Open("Ovale", configFrame) end @@ -1616,4 +1633,4 @@ function Ovale:EnableOtherDebuffs() return end self.otherDebuffsEnabled = true -end \ No newline at end of file +end -- 1.7.9.5