From 4506f6929c62fa0d7fc0775e997b9e13a73e5fd1 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sun, 26 Apr 2009 21:10:14 +0000 Subject: [PATCH] - turns the icon in red if should not be spammed git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@48 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Ovale.toc | 2 +- OvaleIcone.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Ovale.toc b/Ovale.toc index 6ee350a..da0bc78 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -3,7 +3,7 @@ ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer ## Author: Sidoine -## Version: 3.1.5 +## Version: 3.1.6 ## OptionalDeps: Ace3 ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC diff --git a/OvaleIcone.lua b/OvaleIcone.lua index 45076c5..8972376 100644 --- a/OvaleIcone.lua +++ b/OvaleIcone.lua @@ -59,6 +59,13 @@ self.icone:SetAlpha(0.25) end + local start, duration, enable = GetActionCooldown(meilleureAction) + if (Ovale.maintenant + minAttente > start + duration and minAttente > 0) then + self.icone:SetVertexColor(0.75,0,0) + else + self.icone:SetVertexColor(1,1,1) + end + if (minAttente==0) then self.cd:Hide() end -- 1.7.9.5