diff --git a/Locale-enUS.lua b/Locale-enUS.lua index 0b82619..743880c 100644 --- a/Locale-enUS.lua +++ b/Locale-enUS.lua @@ -46,4 +46,5 @@ L["buff"] = "Buffs" L["Inverser la boîte à cocher "] = "Toggle check box" L["Ignorer les clics souris"] = "Ignore mouse clicks" L["Correction de la latence"] = "Latency correction" -L["Cacher dans les véhicules"] = "Hide in vehicles" \ No newline at end of file +L["Cacher dans les véhicules"] = "Hide in vehicles" +L["Illuminer l'icône quand le temps de recharge est écoulé"] = "Flash the icon when the ability is ready" \ No newline at end of file diff --git a/Locale-frFR.lua b/Locale-frFR.lua index 14bc11c..3ceb025 100644 --- a/Locale-frFR.lua +++ b/Locale-frFR.lua @@ -46,4 +46,5 @@ L["buff"] = "Améliorations" L["Inverser la boîte à cocher "] = true L["Ignorer les clics souris"] = true L["Correction de la latence"] = true -L["Cacher dans les véhicules"] = true \ No newline at end of file +L["Cacher dans les véhicules"] = true +L["Illuminer l'icône quand le temps de recharge est écoulé"] = true \ No newline at end of file diff --git a/Ovale.lua b/Ovale.lua index d70ef7b..d46aad0 100644 --- a/Ovale.lua +++ b/Ovale.lua @@ -266,6 +266,14 @@ local options = name = L["Cacher dans les véhicules"], get = function(info) return Ovale.db.profile.apparence.hideVehicule end, set = function(info, value) Ovale.db.profile.apparence.hideVehicule = value end + }, + flashIcon = + { + order = 18, + type = "toggle", + name = L["Illuminer l'icône quand le temps de recharge est écoulé"], + get = function(info) return Ovale.db.profile.apparence.flashIcon end, + set = function(info, value) Ovale.db.profile.apparence.flashIcon = value; Ovale:UpdateFrame() end } } }, @@ -1888,7 +1896,8 @@ function Ovale:ChargerDefaut() list = {}, apparence = {enCombat=false, iconWidth = 64, iconHeight = 64, margin = 4, smallIconWidth=28, smallIconHeight=28, raccourcis=true, numeric=false, avecCible = false, - verrouille = false, vertical = false, predictif=false, highlightIcon = true, clickThru = false, latencyCorrection=true, hideVehicule=true}, + verrouille = false, vertical = false, predictif=false, highlightIcon = true, clickThru = false, + latencyCorrection=true, hideVehicule=true, flashIcon=true}, skin = {SkinID="Blizzard", Backdrop = true, Gloss = false, Colors = {}} } }) diff --git a/Ovale.toc b/Ovale.toc index 5ce9edd..9dbcf60 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: 4.0.9 +## Version: 4.0.10 ## OptionalDeps: Ace3, ButtonFacade, Recount, Skada, LibBabble-CreatureType-3.0 ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC diff --git a/OvaleIcone.lua b/OvaleIcone.lua index 858ef89..7f6d352 100644 --- a/OvaleIcone.lua +++ b/OvaleIcone.lua @@ -26,6 +26,10 @@ local function Update(self, element, minAttente, actionTexture, actionInRange, a end end + if not Ovale.db.profile.apparence.flashIcon and minAttente<=Ovale.maintenant then + self.cd:Hide() + end + self.ancienneAttente = minAttente -- L'icône avec le cooldown