changeset 40:d12ccf325b4b v0.8

LibST highlight fix and version number inc
author ShadowTheAge
date Wed, 20 Jul 2016 21:49:36 +0300
parents 01bfef78b490
children 77f8a34411cb
files CrossRealmAssist.lua CrossRealmAssistSettings.lua
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
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})
 
--- a/CrossRealmAssistSettings.lua	Wed Jul 20 10:46:11 2016 +0300
+++ b/CrossRealmAssistSettings.lua	Wed Jul 20 21:49:36 2016 +0300
@@ -1,4 +1,4 @@
-local version = "v0.75 beta";
+local version = "v0.8";
 local about = [[About:
 I have started to make this addon as a tool for myself. Few people started to use it when I pushed it to Curse. Then updated it once with 6.2 release.
 After some time I have catched a dialog on my own realm discussing it. I went to check curse page and I was shocked - it was in top-60 monthly downloaded addons with lots of suggestions and few bug reports.
@@ -16,7 +16,7 @@
 
 Changelog:
 
-v0.7 - 0.75
+v0.7 - 0.76
 - New options panel (Groundwork for future customization)
 - Some UI customizations are now possible
 - "Join to a friend" feature
@@ -28,6 +28,10 @@
 - Added advanced filters
 - Last column ("Misc") is now a sortable column - it uses base sort (by weight)
 
+v0.8
+- WoW Legion update
+- Minor fixes
+
 http://www.curse.com/addons/wow/crossrealmassist
 https://www.reddit.com/r/crossrealmassist
 ]]