- turns the icon in red if should not be spammed
Sidoine De Wispelaere [04-26-09 - 21:10]
- 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
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