Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/dropdown.lua @ 17:0c160948ac5e
- ToC Update.
| author | Tercio |
|---|---|
| date | Tue, 23 Jun 2015 14:16:13 -0300 |
| parents | 2f09fe4be15c |
| children | dc1c77254f80 |
comparison
equal
deleted
inserted
replaced
| 16:d5c8e2c42e04 | 17:0c160948ac5e |
|---|---|
| 513 frame:GetParent().MyObject:Close() | 513 frame:GetParent().MyObject:Close() |
| 514 end | 514 end |
| 515 | 515 |
| 516 function DetailsFrameworkDropDownOptionOnEnter (frame) | 516 function DetailsFrameworkDropDownOptionOnEnter (frame) |
| 517 if (frame.table.desc) then | 517 if (frame.table.desc) then |
| 518 DF:CooltipPreset (2) | 518 GameCooltip2:Preset (2) |
| 519 GameCooltip2:AddLine (frame.table.desc) | 519 GameCooltip2:AddLine (frame.table.desc) |
| 520 if (frame.table.descfont) then | 520 if (frame.table.descfont) then |
| 521 GameCooltip2:SetOption ("TextFont", frame.table.descfont) | 521 GameCooltip2:SetOption ("TextFont", frame.table.descfont) |
| 522 end | 522 end |
| 523 | 523 |
| 747 end | 747 end |
| 748 | 748 |
| 749 self.arrowTexture2:Show() | 749 self.arrowTexture2:Show() |
| 750 | 750 |
| 751 if (self.MyObject.have_tooltip) then | 751 if (self.MyObject.have_tooltip) then |
| 752 GameCooltip2:Reset() | 752 GameCooltip2:Preset (2) |
| 753 GameCooltip2:SetType ("tooltip") | 753 |
| 754 GameCooltip2:SetColor ("main", "transparent") | 754 if (type (self.MyObject.have_tooltip) == "function") then |
| 755 DF:CooltipPreset (2) | 755 GameCooltip2:AddLine (self.MyObject.have_tooltip() or "") |
| 756 GameCooltip2:AddLine (self.MyObject.have_tooltip) | 756 else |
| 757 GameCooltip2:AddLine (self.MyObject.have_tooltip) | |
| 758 end | |
| 759 | |
| 757 GameCooltip2:SetOwner (self) | 760 GameCooltip2:SetOwner (self) |
| 758 GameCooltip2:ShowCooltip() | 761 GameCooltip2:ShowCooltip() |
| 759 end | 762 end |
| 760 | 763 |
| 761 local parent = self:GetParent().MyObject | 764 local parent = self:GetParent().MyObject |
