Mercurial > wow > crossrealmassist
comparison CrossRealmAssist.lua @ 40:d12ccf325b4b v0.8
LibST highlight fix and version number inc
| author | ShadowTheAge |
|---|---|
| date | Wed, 20 Jul 2016 21:49:36 +0300 |
| parents | 616d67ff7543 |
| children | 2152dcaa9265 |
comparison
equal
deleted
inserted
replaced
| 39:01bfef78b490 | 40:d12ccf325b4b |
|---|---|
| 620 for i=1,#filterByCountList do | 620 for i=1,#filterByCountList do |
| 621 UIDropDownMenu_AddButton({text=filterByCountList[i].text, arg1=i,checked=(i==filterByCountId), func=updateFilterByCount}, level) | 621 UIDropDownMenu_AddButton({text=filterByCountList[i].text, arg1=i,checked=(i==filterByCountId), func=updateFilterByCount}, level) |
| 622 end | 622 end |
| 623 end | 623 end |
| 624 | 624 |
| 625 local function setHighlightColorMy(self, frame, color) | |
| 626 if not frame.highlight then | |
| 627 frame.highlight = frame:CreateTexture(nil, "OVERLAY"); | |
| 628 frame.highlight:SetAllPoints(frame); | |
| 629 end | |
| 630 frame.highlight:SetColorTexture(color.r, color.g, color.b, color.a); | |
| 631 end | |
| 632 | |
| 625 function addon:CreateLFGUI() | 633 function addon:CreateLFGUI() |
| 626 local scale = db.global.lfgPanelScale or 1.0; | 634 local scale = db.global.lfgPanelScale or 1.0; |
| 627 local itemCount = db.global.listItemCount; | 635 local itemCount = db.global.listItemCount; |
| 628 local shift = itemCount * 16; | 636 local shift = itemCount * 16; |
| 629 | 637 |
| 651 local titlereg = lfgui:CreateTitleRegion() | 659 local titlereg = lfgui:CreateTitleRegion() |
| 652 titlereg:SetAllPoints(lfgui.title) | 660 titlereg:SetAllPoints(lfgui.title) |
| 653 addon:CreateTabs() | 661 addon:CreateTabs() |
| 654 | 662 |
| 655 lfgTable = ScrollingTable:CreateST(tableTemplate,itemCount,16,nil,lfgui); | 663 lfgTable = ScrollingTable:CreateST(tableTemplate,itemCount,16,nil,lfgui); |
| 664 lfgTable.SetHighLightColor = setHighlightColorMy; -- work around API changes in 7.0 (SetTexture -> SetColorTexture) | |
| 656 | 665 |
| 657 lfgTable:RegisterEvents({OnEnter=ShowLfgInfo,OnLeave=HideTooltip,OnClick=TableCellClick}) | 666 lfgTable:RegisterEvents({OnEnter=ShowLfgInfo,OnLeave=HideTooltip,OnClick=TableCellClick}) |
| 658 | 667 |
| 659 setupWidget(lfgTable.frame, nil, 10, 45); | 668 setupWidget(lfgTable.frame, nil, 10, 45); |
| 660 lfgTable.frame:SetBackdrop(nil) | 669 lfgTable.frame:SetBackdrop(nil) |
