mainArgs.reverse=ACH:Toggle(L["Reverse Toggle"],L["Reverse Toggle will enable Cooldown Text on this module when the global setting is disabled and disable them when the global setting is enabled."],5,nil,nil,nil,function(info)return(profile(db))[info[#info]]end,function(info,value)(profile(db))[info[#info]]=value;E:UpdateCooldownSettings(db);end)
mainArgs.hideBlizzard=ACH:Toggle(L["Force Hide Blizzard Text"],L["This option will force hide Blizzard's cooldown text if it is enabled at [Interface > ActionBars > Show Numbers on Cooldown]."],6,nil,nil,nil,function(info)return(profile(db))[info[#info]]end,function(info,value)(profile(db))[info[#info]]=value;E:UpdateCooldownSettings(db);end,nil,function()ifdb=='global'thenreturnE.db.cooldown.enableelsereturn(E.db.cooldown.enableandnotprofile(db).reverse)or(notE.db.cooldown.enableandprofile(db).reverse)endend)
seconds.args.checkSeconds=ACH:Toggle(L["Enable"],L["This will override the global cooldown settings."],1,nil,nil,nil,nil,nil,false)
seconds.args.mmssThreshold=ACH:Range(L["MM:SS Threshold"],L["Threshold (in seconds) before text is shown in the MM:SS format. Set to -1 to never change to this format."],2,{min=-1,max=10800,step=1})
seconds.args.hhmmThreshold=ACH:Range(L["HH:MM Threshold"],L["Threshold (in minutes) before text is shown in the HH:MM format. Set to -1 to never change to this format."],3,{min=-1,max=1440,step=1})
colors.args.override=ACH:Toggle(L["Enable"],L["This will override the global cooldown settings."],1,nil,nil,nil,function(info)return(profile(db))[info[#info]]end,function(info,value)(profile(db))[info[#info]]=value;E:UpdateCooldownSettings(db);end,false)
colors.args.threshold=ACH:Range(L["Low Threshold"],L["Threshold before text turns red and is in decimal form. Set to -1 for it to never turn red"],2,{min=-1,max=20,step=1},nil,function(info)return(profile(db))[info[#info]]end,function(info,value)(profile(db))[info[#info]]=value;E:UpdateCooldownSettings(db);end)
auraGroup.args.targetAura=ACH:Toggle(L["Enable"],L["Display Target's Aura Duration, when there is no CD displaying."],1,nil,nil,nil,function(info)returnE.db.cooldown[info[#info]]end,function(info,value)E.db.cooldown[info[#info]]=value;E:UpdateCooldownSettings(db);end)
auraGroup.args.targetAuraDuration=ACH:Range(L["Maximum Duration"],L["Don't display auras that are longer than this duration (in seconds). Set to zero to disable."],2,{min=0,max=10800,step=1},nil,function(info)returnE.db.cooldown[info[#info]]end,function(info,value)E.db.cooldown[info[#info]]=value;ifAB.InitializedthenAB:SetAuraCooldownDuration(value)endend)
auraGroup.args.spacer=ACH:Spacer(5)
auraGroup.args.targetAuraColor=ACH:Color(L["Target Aura"],L["Color of the Targets Aura time."],6)
auraGroup.args.targetAuraColor.customWidth=125
auraGroup.args.expiringAuraColor=ACH:Color(L["Target Aura Expiring"],L["Color of the Targets Aura time when expiring."],7)
auraGroup.args.expiringAuraColor.customWidth=175
auraGroup.args.targetAuraIndicator=ACH:Color(L["Indicator"],L["Color of the Targets Aura time."],10,nil,nil,nil,nil,false)