Mercurial > wow > hansgar_and_franzok_assist
diff Libs/DF/dropdown.lua @ 17:0c160948ac5e
- ToC Update.
| author | Tercio |
|---|---|
| date | Tue, 23 Jun 2015 14:16:13 -0300 |
| parents | 2f09fe4be15c |
| children | dc1c77254f80 |
line wrap: on
line diff
--- a/Libs/DF/dropdown.lua Mon Jun 08 12:54:24 2015 -0300 +++ b/Libs/DF/dropdown.lua Tue Jun 23 14:16:13 2015 -0300 @@ -515,7 +515,7 @@ function DetailsFrameworkDropDownOptionOnEnter (frame) if (frame.table.desc) then - DF:CooltipPreset (2) + GameCooltip2:Preset (2) GameCooltip2:AddLine (frame.table.desc) if (frame.table.descfont) then GameCooltip2:SetOption ("TextFont", frame.table.descfont) @@ -749,11 +749,14 @@ self.arrowTexture2:Show() if (self.MyObject.have_tooltip) then - GameCooltip2:Reset() - GameCooltip2:SetType ("tooltip") - GameCooltip2:SetColor ("main", "transparent") - DF:CooltipPreset (2) - GameCooltip2:AddLine (self.MyObject.have_tooltip) + GameCooltip2:Preset (2) + + if (type (self.MyObject.have_tooltip) == "function") then + GameCooltip2:AddLine (self.MyObject.have_tooltip() or "") + else + GameCooltip2:AddLine (self.MyObject.have_tooltip) + end + GameCooltip2:SetOwner (self) GameCooltip2:ShowCooltip() end
