Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/split_bar.lua @ 22:dbd417f413a8
- framework update.
| author | Tercio |
|---|---|
| date | Tue, 08 Sep 2015 13:16:49 -0300 |
| parents | dc1c77254f80 |
| children | 5da06cb420d4 |
comparison
equal
deleted
inserted
replaced
| 21:7fef991992f6 | 22:dbd417f413a8 |
|---|---|
| 442 if (interrupt) then | 442 if (interrupt) then |
| 443 return | 443 return |
| 444 end | 444 end |
| 445 end | 445 end |
| 446 | 446 |
| 447 local oc = frame.MyObject.texture.original_colors --original colors | |
| 448 DF:GradientEffect ( frame.MyObject.texture, "texture", oc[1], oc[2], oc[3], oc[4], oc[1]+0.2, oc[2]+0.2, oc[3]+0.2, oc[4], .2) | |
| 449 frame.MyObject.div:SetPoint ("left", frame, "left", frame:GetValue() * (frame:GetWidth()/100) - 18, 0) | 447 frame.MyObject.div:SetPoint ("left", frame, "left", frame:GetValue() * (frame:GetWidth()/100) - 18, 0) |
| 450 | 448 |
| 451 if (frame.MyObject.have_tooltip) then | 449 if (frame.MyObject.have_tooltip) then |
| 452 GameCooltip2:Reset() | 450 GameCooltip2:Reset() |
| 453 GameCooltip2:AddLine (frame.MyObject.have_tooltip) | 451 GameCooltip2:AddLine (frame.MyObject.have_tooltip) |
| 454 GameCooltip2:ShowCooltip (frame, "tooltip") | 452 GameCooltip2:ShowCooltip (frame, "tooltip") |
| 455 end | |
| 456 | |
| 457 local parent = frame:GetParent().MyObject | |
| 458 if (parent and parent.type == "panel") then | |
| 459 if (parent.GradientEnabled) then | |
| 460 parent:RunGradient() | |
| 461 end | |
| 462 end | 453 end |
| 463 end | 454 end |
| 464 | 455 |
| 465 local OnLeave = function (frame) | 456 local OnLeave = function (frame) |
| 466 if (frame.MyObject.OnLeaveHook) then | 457 if (frame.MyObject.OnLeaveHook) then |
| 467 local interrupt = frame.MyObject.OnLeaveHook (frame) | 458 local interrupt = frame.MyObject.OnLeaveHook (frame) |
| 468 if (interrupt) then | 459 if (interrupt) then |
| 469 return | 460 return |
| 470 end | 461 end |
| 471 end | 462 end |
| 472 | 463 |
| 473 local oc = frame.MyObject.texture.original_colors --original colors | |
| 474 local r, g, b, a = frame.MyObject.texture:GetVertexColor() | |
| 475 DF:GradientEffect ( frame.MyObject.texture, "texture", r, g, b, a, oc[1], oc[2], oc[3], oc[4], .2) | |
| 476 | |
| 477 if (frame.MyObject.have_tooltip) then | 464 if (frame.MyObject.have_tooltip) then |
| 478 DF.popup:ShowMe (false) | 465 DF.popup:ShowMe (false) |
| 479 end | |
| 480 | |
| 481 local parent = frame:GetParent().MyObject | |
| 482 if (parent and parent.type == "panel") then | |
| 483 if (parent.GradientEnabled) then | |
| 484 parent:RunGradient (false) | |
| 485 end | |
| 486 end | 466 end |
| 487 end | 467 end |
| 488 | 468 |
| 489 local OnHide = function (frame) | 469 local OnHide = function (frame) |
| 490 if (frame.MyObject.OnHideHook) then | 470 if (frame.MyObject.OnHideHook) then |
