Mercurial > wow > crossrealmassist
diff 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 |
line wrap: on
line diff
--- a/CrossRealmAssist.lua Wed Jul 20 10:46:11 2016 +0300 +++ b/CrossRealmAssist.lua Wed Jul 20 21:49:36 2016 +0300 @@ -622,6 +622,14 @@ end end +local function setHighlightColorMy(self, frame, color) + if not frame.highlight then + frame.highlight = frame:CreateTexture(nil, "OVERLAY"); + frame.highlight:SetAllPoints(frame); + end + frame.highlight:SetColorTexture(color.r, color.g, color.b, color.a); +end + function addon:CreateLFGUI() local scale = db.global.lfgPanelScale or 1.0; local itemCount = db.global.listItemCount; @@ -653,6 +661,7 @@ addon:CreateTabs() lfgTable = ScrollingTable:CreateST(tableTemplate,itemCount,16,nil,lfgui); + lfgTable.SetHighLightColor = setHighlightColorMy; -- work around API changes in 7.0 (SetTexture -> SetColorTexture) lfgTable:RegisterEvents({OnEnter=ShowLfgInfo,OnLeave=HideTooltip,OnClick=TableCellClick})
