Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/normal_bar.lua @ 40:a960d5372b0c
- framework update from v22 to v44.
| author | Tercio |
|---|---|
| date | Wed, 31 Aug 2016 19:55:14 -0300 |
| parents | 7944c081e5b4 |
| children | 0682d738499b |
comparison
equal
deleted
inserted
replaced
| 39:7944c081e5b4 | 40:a960d5372b0c |
|---|---|
| 507 | 507 |
| 508 ------------------------------------------------------------------------------------------------------------ | 508 ------------------------------------------------------------------------------------------------------------ |
| 509 --> timer | 509 --> timer |
| 510 | 510 |
| 511 function BarMetaFunctions:OnTimerEnd() | 511 function BarMetaFunctions:OnTimerEnd() |
| 512 if (self.OnTimerEndHook) then | 512 local capsule = self |
| 513 local interrupt = self.OnTimerEndHook (self) | 513 local kill = capsule:RunHooksForWidget ("OnTimerEnd", self.widget, capsule) |
| 514 if (interrupt) then | 514 if (kill) then |
| 515 return | 515 return |
| 516 end | 516 end |
| 517 end | 517 |
| 518 self.timer_texture:Hide() | 518 self.timer_texture:Hide() |
| 519 self.timer_textureR:Hide() | 519 self.timer_textureR:Hide() |
| 520 self.div_timer:Hide() | 520 self.div_timer:Hide() |
| 521 self:Hide() | 521 self:Hide() |
| 522 self.timer = false | 522 self.timer = false |
| 718 OnLeave = {}, | 718 OnLeave = {}, |
| 719 OnHide = {}, | 719 OnHide = {}, |
| 720 OnShow = {}, | 720 OnShow = {}, |
| 721 OnMouseDown = {}, | 721 OnMouseDown = {}, |
| 722 OnMouseUp = {}, | 722 OnMouseUp = {}, |
| 723 OnTimerEnd = {}, | |
| 723 } | 724 } |
| 724 | 725 |
| 725 BarObject.statusbar:SetScript ("OnEnter", OnEnter) | 726 BarObject.statusbar:SetScript ("OnEnter", OnEnter) |
| 726 BarObject.statusbar:SetScript ("OnLeave", OnLeave) | 727 BarObject.statusbar:SetScript ("OnLeave", OnLeave) |
| 727 BarObject.statusbar:SetScript ("OnHide", OnHide) | 728 BarObject.statusbar:SetScript ("OnHide", OnHide) |
