Mercurial > wow > askmrrobot
comparison ui/AmrUiDropDown.lua @ 79:a892c863c86a v32
fixed chat message in LFR/BGs, minor layering issue with dropdowns
| author | yellowfive |
|---|---|
| date | Tue, 05 Apr 2016 16:19:15 -0700 |
| parents | cf2b6b9a8337 |
| children | 0515882856f1 |
comparison
equal
deleted
inserted
replaced
| 78:4b1375f5c4f2 | 79:a892c863c86a |
|---|---|
| 22 local function buttonOnClick(frame, ...) | 22 local function buttonOnClick(frame, ...) |
| 23 if frame.obj.list:IsVisible() then | 23 if frame.obj.list:IsVisible() then |
| 24 frame.obj.list:Hide() | 24 frame.obj.list:Hide() |
| 25 else | 25 else |
| 26 frame.obj.list:Show() | 26 frame.obj.list:Show() |
| 27 frame.obj.list:SetFrameLevel(100) | |
| 27 frame.obj:RenderItems() | 28 frame.obj:RenderItems() |
| 28 end | 29 end |
| 29 end | 30 end |
| 30 | 31 |
| 31 local function buttonOnEnter(frame) | 32 local function buttonOnEnter(frame) |
| 230 arrow:SetHeight(16) | 231 arrow:SetHeight(16) |
| 231 arrow:SetTexture("Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\IconScrollDown") | 232 arrow:SetTexture("Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\IconScrollDown") |
| 232 arrow:SetPoint("RIGHT", frame, "RIGHT", -4, 0) | 233 arrow:SetPoint("RIGHT", frame, "RIGHT", -4, 0) |
| 233 | 234 |
| 234 local list = CreateFrame("Frame", nil, frame) | 235 local list = CreateFrame("Frame", nil, frame) |
| 236 list:SetFrameStrata("TOOLTIP") | |
| 235 list:SetPoint("TOPLEFT", frame, "BOTTOMLEFT", 0, 1) | 237 list:SetPoint("TOPLEFT", frame, "BOTTOMLEFT", 0, 1) |
| 236 list:Hide() | 238 list:Hide() |
| 237 | 239 |
| 238 local listBorder = Amr.CreateTexture(list, Amr.Colors.BorderGray, 1, "BACKGROUND") | 240 local listBorder = Amr.CreateTexture(list, Amr.Colors.BorderGray, 1, "BACKGROUND") |
| 239 listBorder:SetAllPoints() | 241 listBorder:SetAllPoints() |
