Mercurial > wow > askmrrobot
comparison ui/Ui.lua @ 181:5c586ff5fee5 v85
gear ui should now show essence differences
author | yellowfive |
---|---|
date | Fri, 14 Feb 2020 14:53:46 -0800 |
parents | eec8032ba9df |
children |
comparison
equal
deleted
inserted
replaced
180:82598dc4fe2e | 181:5c586ff5fee5 |
---|---|
416 obj:SetCallback("OnLeave", function(widget) | 416 obj:SetCallback("OnLeave", function(widget) |
417 GameTooltip:Hide() | 417 GameTooltip:Hide() |
418 end) | 418 end) |
419 end | 419 end |
420 | 420 |
421 function Amr:SetEssenceTooltip(obj, essenceLink, anchor, x, y) | |
422 obj:SetUserData("ttEssenceLink", essenceLink) | |
423 obj:SetCallback("OnEnter", function(widget) | |
424 local tooltipLink = widget:GetUserData("ttEssenceLink") | |
425 if tooltipLink then | |
426 GameTooltip:SetOwner(widget.frame, anchor and anchor or "ANCHOR_CURSOR", x, y) | |
427 GameTooltip:SetHyperlink(tooltipLink) | |
428 end | |
429 end) | |
430 obj:SetCallback("OnLeave", function(widget) | |
431 GameTooltip:Hide() | |
432 end) | |
433 end | |
434 | |
421 function Amr:RenderCoverChrome(container, width, height) | 435 function Amr:RenderCoverChrome(container, width, height) |
422 | 436 |
423 local border = AceGUI:Create("AmrUiPanel") | 437 local border = AceGUI:Create("AmrUiPanel") |
424 border:SetLayout("None") | 438 border:SetLayout("None") |
425 border:SetBackgroundColor(Amr.Colors.BorderBlue) | 439 border:SetBackgroundColor(Amr.Colors.BorderBlue) |