Mercurial > wow > hotcorners
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua @ 5:c31ee4251181
Libs Update
| author | tercio |
|---|---|
| date | Tue, 25 Nov 2014 21:15:10 -0200 |
| parents | fc346da3afd9 |
| children | 371e14cd2feb |
comparison
equal
deleted
inserted
replaced
| 4:453c68ff5d72 | 5:c31ee4251181 |
|---|---|
| 1 --[[----------------------------------------------------------------------------- | 1 --[[----------------------------------------------------------------------------- |
| 2 TreeGroup Container | 2 TreeGroup Container |
| 3 Container that uses a tree control to switch between groups. | 3 Container that uses a tree control to switch between groups. |
| 4 -------------------------------------------------------------------------------]] | 4 -------------------------------------------------------------------------------]] |
| 5 local Type, Version = "TreeGroup", 36 | 5 local Type, Version = "TreeGroup", 37 |
| 6 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) | 6 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) |
| 7 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end | 7 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end |
| 8 | 8 |
| 9 -- Lua APIs | 9 -- Lua APIs |
| 10 local next, pairs, ipairs, assert, type = next, pairs, ipairs, assert, type | 10 local next, pairs, ipairs, assert, type = next, pairs, ipairs, assert, type |
| 210 self:Fire("OnButtonEnter", frame.uniquevalue, frame) | 210 self:Fire("OnButtonEnter", frame.uniquevalue, frame) |
| 211 | 211 |
| 212 if self.enabletooltips then | 212 if self.enabletooltips then |
| 213 GameTooltip:SetOwner(frame, "ANCHOR_NONE") | 213 GameTooltip:SetOwner(frame, "ANCHOR_NONE") |
| 214 GameTooltip:SetPoint("LEFT",frame,"RIGHT") | 214 GameTooltip:SetPoint("LEFT",frame,"RIGHT") |
| 215 GameTooltip:SetText(frame.text:GetText() or "", 1, .82, 0, 1) | 215 GameTooltip:SetText(frame.text:GetText() or "", 1, .82, 0, true) |
| 216 | 216 |
| 217 GameTooltip:Show() | 217 GameTooltip:Show() |
| 218 end | 218 end |
| 219 end | 219 end |
| 220 | 220 |
