Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/cooltip.lua @ 53:36b4d9559b69 v7.3.0.053
- framework update.
| author | Tercio |
|---|---|
| date | Sat, 14 Oct 2017 17:09:17 -0300 |
| parents | 2bbf129690b0 |
| children | 307f5af3ad02 |
comparison
equal
deleted
inserted
replaced
| 52:20225ee9762c | 53:36b4d9559b69 |
|---|---|
| 349 elapsedTime = 0 | 349 elapsedTime = 0 |
| 350 self:SetScript ("OnUpdate", OnLeaveUpdateFrame2) | 350 self:SetScript ("OnUpdate", OnLeaveUpdateFrame2) |
| 351 | 351 |
| 352 end | 352 end |
| 353 end) | 353 end) |
| 354 | 354 |
| 355 frame1:SetScript ("OnHide", function (self) | 355 frame1:SetScript ("OnHide", function (self) |
| 356 CoolTip.active = false | 356 CoolTip.active = false |
| 357 CoolTip.buttonClicked = false | 357 CoolTip.buttonClicked = false |
| 358 CoolTip.mouseOver = false | 358 CoolTip.mouseOver = false |
| 359 | |
| 360 --> reset parent and strata | |
| 361 frame1:SetParent (UIParent) | |
| 362 frame2:SetParent (UIParent) | |
| 363 frame1:SetFrameStrata ("TOOLTIP") | |
| 364 frame2:SetFrameStrata ("TOOLTIP") | |
| 359 end) | 365 end) |
| 360 | 366 |
| 361 | |
| 362 ---------------------------------------------------------------------- | 367 ---------------------------------------------------------------------- |
| 363 --> Button Creation Functions | 368 --> Button Creation Functions |
| 364 ---------------------------------------------------------------------- | 369 ---------------------------------------------------------------------- |
| 365 | 370 |
| 366 function GameCooltipButtonMouseDown (button) | 371 function GameCooltipButtonMouseDown (button) |
| 2901 function CoolTip:Close() | 2906 function CoolTip:Close() |
| 2902 CoolTip.active = false | 2907 CoolTip.active = false |
| 2903 CoolTip.Host = nil | 2908 CoolTip.Host = nil |
| 2904 DF:FadeFrame (frame1, 1) | 2909 DF:FadeFrame (frame1, 1) |
| 2905 DF:FadeFrame (frame2, 1) | 2910 DF:FadeFrame (frame2, 1) |
| 2906 | |
| 2907 end | 2911 end |
| 2912 | |
| 2913 | |
| 2908 | 2914 |
| 2909 --> old function call | 2915 --> old function call |
| 2910 function CoolTip:ShowMe (host, arg2) | 2916 function CoolTip:ShowMe (host, arg2) |
| 2911 --> ignore if mouse is up me | 2917 --> ignore if mouse is up me |
| 2912 if (CoolTip.mouseOver) then | 2918 if (CoolTip.mouseOver) then |
