Quantcast

Enable POI integration using QuestPOIButton_OnClick

Ludovicus [07-26-18 - 21:56]
Enable POI integration using QuestPOIButton_OnClick
Filename
TomTom_POIIntegration.lua
diff --git a/TomTom_POIIntegration.lua b/TomTom_POIIntegration.lua
index 9de9dbb..9ea4147 100755
--- a/TomTom_POIIntegration.lua
+++ b/TomTom_POIIntegration.lua
@@ -226,14 +226,9 @@ local function poi_OnClick(self, button)
     SetCVar("questPOI", cvar and 1 or 0)
 end

----LFO: Something needs to replace this!
----hooksecurefunc("TaskPOI_OnClick", function(self, button)
----    poi_OnClick(self, button)
----end)
----
----hooksecurefunc("QuestPOIButton_OnClick", function(self, button)
----    poi_OnClick(self, button)
----end)
+hooksecurefunc("QuestPOIButton_OnClick", function(self, button)
+    poi_OnClick(self, button)
+end)

 function TomTom:EnableDisablePOIIntegration()
     enableClicks= TomTom.profile.poi.enable