You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
CooldownFrame_Set(self.iconframecooldown, start, duration, enable, true, modrate) --set clock style cooldown animation for ability cooldown. Show Draw Edge.
158
183
end
159
184
else--sets GCD cooldowns
185
+
self.iconframecooldown:SetDrawSwipe(true);
160
186
CooldownFrame_Set(self.iconframecooldown, start, duration, enable, false, modrate) --don't show the Draw Edge for the GCD
161
187
end
162
188
163
-
-- Clear the charge cooldown frame if it is still going from a different ability in a different state (i.e. frenzied regen in the same spot as Swiftmend)
164
-
ifnotchargesorcharges==maxChargesormaxCharges==1then--if ability does not support charges then clear the charge cooldown frame
165
-
CooldownFrame_Clear(self.iconframechargecooldown)
166
-
end
167
-
168
189
--this is only for abilities that have CD's >4 sec. Any less than that and we don't want to track the CD with text or alpha, just with the standard animation
169
190
if (duration>=Neuron.TIMERLIMIT) then--if spells have a cooldown less than 4sec then don't show a full cooldown
170
191
@@ -209,42 +230,12 @@ function BUTTON:SetCooldownTimer(start, duration, enable, showCountdownTimer, mo
self:SetAlpha(self.data.alpha) --try to restore the original alpha
232
-
else
233
-
self:SetAlpha(1)
234
-
end
235
-
236
-
self.iconframecooldown.showCountdownTimer=false
237
-
self.iconframecooldown.showCountdownAlpha=false
238
-
239
-
--clear previous sweeping cooldown animations
240
-
CooldownFrame_Clear(self.iconframecooldown) --clear the cooldown frame
241
-
ifnotchargesorcharges==maxChargesormaxCharges==1then--if ability does not support charges then clear the charge cooldown frame
242
-
CooldownFrame_Clear(self.iconframechargecooldown)
243
-
end
236
+
self:CancelCooldownTimer(true)
244
237
end
245
238
246
-
--this is important for items like the ExtraActionButton who use Alpha to show and hide itself (to avoid in-combat restrictions). Without it the button would stay visible
247
-
self:SetObjectVisibility()
248
239
end
249
240
250
241
@@ -682,6 +673,7 @@ function BUTTON:UpdateCooldown()
682
673
--this is super important for removing CD's from empty buttons, like when switching states. You don't want the CD from one state to show on a different state.
@@ -122,9 +122,9 @@ function EXTRABTN:UpdateButton()
122
122
end
123
123
124
124
125
-
functionEXTRABTN:SetObjectVisibility(show)
125
+
functionEXTRABTN:SetObjectVisibility()
126
126
127
-
ifHasExtraActionBar() orshoworNeuron.buttonEditModeorNeuron.barEditModeorNeuron.bindingModethen--set alpha instead of :Show or :Hide, to avoid taint and to allow the button to appear in combat
127
+
ifHasExtraActionBar() orNeuron.buttonEditModeorNeuron.barEditModeorNeuron.bindingModethen--set alpha instead of :Show or :Hide, to avoid taint and to allow the button to appear in combat
0 commit comments