Mercurial > wow > hotcorners
comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua @ 11:371e14cd2feb
- major fixes with icons not showing correctly.
| author | Tercio |
|---|---|
| date | Thu, 08 Dec 2016 13:01:40 -0200 |
| parents | fc346da3afd9 |
| children | 3000eccbf1a0 |
comparison
equal
deleted
inserted
replaced
| 10:6572ed4edaae | 11:371e14cd2feb |
|---|---|
| 1 --[[ $Id: AceGUIWidget-DropDown-Items.lua 996 2010-12-01 18:34:17Z nevcairiel $ ]]-- | 1 --[[ $Id: AceGUIWidget-DropDown-Items.lua 1137 2016-05-15 10:57:36Z nevcairiel $ ]]-- |
| 2 | 2 |
| 3 local AceGUI = LibStub("AceGUI-3.0") | 3 local AceGUI = LibStub("AceGUI-3.0") |
| 4 | |
| 5 local IsLegion = select(4, GetBuildInfo()) >= 70000 | |
| 4 | 6 |
| 5 -- Lua APIs | 7 -- Lua APIs |
| 6 local select, assert = select, assert | 8 local select, assert = select, assert |
| 7 | 9 |
| 8 -- WoW APIs | 10 -- WoW APIs |
| 438 | 440 |
| 439 -- Item: Separator | 441 -- Item: Separator |
| 440 -- A single line to separate items | 442 -- A single line to separate items |
| 441 do | 443 do |
| 442 local widgetType = "Dropdown-Item-Separator" | 444 local widgetType = "Dropdown-Item-Separator" |
| 443 local widgetVersion = 1 | 445 local widgetVersion = 2 |
| 444 | 446 |
| 445 -- exported, override | 447 -- exported, override |
| 446 local function SetDisabled(self, disabled) | 448 local function SetDisabled(self, disabled) |
| 447 ItemBase.SetDisabled(self, disabled) | 449 ItemBase.SetDisabled(self, disabled) |
| 448 self.useHighlight = false | 450 self.useHighlight = false |
| 453 | 455 |
| 454 self.SetDisabled = SetDisabled | 456 self.SetDisabled = SetDisabled |
| 455 | 457 |
| 456 local line = self.frame:CreateTexture(nil, "OVERLAY") | 458 local line = self.frame:CreateTexture(nil, "OVERLAY") |
| 457 line:SetHeight(1) | 459 line:SetHeight(1) |
| 458 line:SetTexture(.5, .5, .5) | 460 if IsLegion then |
| 461 line:SetColorTexture(.5, .5, .5) | |
| 462 else | |
| 463 line:SetTexture(.5, .5, .5) | |
| 464 end | |
| 459 line:SetPoint("LEFT", self.frame, "LEFT", 10, 0) | 465 line:SetPoint("LEFT", self.frame, "LEFT", 10, 0) |
| 460 line:SetPoint("RIGHT", self.frame, "RIGHT", -10, 0) | 466 line:SetPoint("RIGHT", self.frame, "RIGHT", -10, 0) |
| 461 | 467 |
| 462 self.text:Hide() | 468 self.text:Hide() |
| 463 | 469 |
