diff --git a/TDButtons.lua b/TDButtons.lua
index 7496a43..f183086 100644
--- a/TDButtons.lua
+++ b/TDButtons.lua
@@ -55,6 +55,41 @@ function TDButton_DestroyAllOverlays()
end
end
+function TDButton_UpdateButtonGlow()
+ local LAB;
+ local LBG;
+ local origShow;
+ local noFunction = function() end;
+
+ if IsAddOnLoaded('ElvUI') then
+ LAB = LibStub:GetLibrary('LibActionButton-1.0-ElvUI');
+ LBG = LibStub:GetLibrary('LibButtonGlow-1.0');
+ origShow = LBG.ShowOverlayGlow;
+ elseif IsAddOnLoaded('Bartender4') then
+ LAB = LibStub:GetLibrary('LibActionButton-1.0');
+ end
+
+ if TDDps_Options.disableButtonGlow then
+ ActionBarActionEventsFrame:UnregisterEvent('SPELL_ACTIVATION_OVERLAY_GLOW_SHOW');
+ if LAB then
+ LAB.eventFrame:UnregisterEvent('SPELL_ACTIVATION_OVERLAY_GLOW_SHOW');
+ end
+
+ if LBG then
+ LBG.ShowOverlayGlow = noFunction;
+ end
+ else
+ ActionBarActionEventsFrame:RegisterEvent('SPELL_ACTIVATION_OVERLAY_GLOW_SHOW');
+ if LAB then
+ LAB.eventFrame:RegisterEvent('SPELL_ACTIVATION_OVERLAY_GLOW_SHOW');
+ end
+
+ if LBG then
+ LBG.ShowOverlayGlow = origShow;
+ end
+ end
+end
+
----------------------------------------------
-- Show Overlay on button
----------------------------------------------
diff --git a/TDDps.lua b/TDDps.lua
index ceaaf3e..03808ef 100644
--- a/TDDps.lua
+++ b/TDDps.lua
@@ -56,6 +56,7 @@ function TDDps_InitAddon()
TDDps_Frame:RegisterEvent('PLAYER_TALENT_UPDATE');
TDDps_Frame:RegisterEvent('ACTIONBAR_SLOT_CHANGED');
TDDps_Frame:RegisterEvent('PLAYER_REGEN_DISABLED');
+ TDDps_Frame:RegisterEvent('PLAYER_ENTERING_WORLD');
-- TDDps_Frame:RegisterEvent('PLAYER_REGEN_ENABLED');
TDDps_Frame:SetScript('OnEvent', TDDps_OnEvent);
@@ -114,6 +115,8 @@ function TDDps_OnEvent(self, event)
TDDps_DisableAddon();
elseif event == 'ACTIONBAR_SLOT_CHANGED' then
--TDDps_DisableAddon();
+ elseif event == 'PLAYER_ENTERING_WORLD' then
+ TDButton_UpdateButtonGlow();
end
if TDDps_Frame.rotationEnabled then
if event == 'PLAYER_TARGET_CHANGED' then
diff --git a/TDDps.toc b/TDDps.toc
index 876ec7b..0877dce 100644
--- a/TDDps.toc
+++ b/TDDps.toc
@@ -1,9 +1,10 @@
## Title: TDDps
## Notes: Rotation helper framework.
-## Version: 1.7.1
+## Version: 1.8
## Author: Kaminaris
## Interface: 60200
## SavedVariables: TDDps_Options
+## OptionalDependencies: Bartender4, ElvUI
Libs\LibStub\LibStub.lua
Libs\AceGUI-3.0\AceGUI-3.0.xml
diff --git a/TDSettings.lua b/TDSettings.lua
index 6cb5b9d..23b1d94 100644
--- a/TDSettings.lua
+++ b/TDSettings.lua
@@ -1,6 +1,6 @@
local AceGUI = LibStub('AceGUI-3.0');
-local lsm = LibStub("AceGUISharedMediaWidgets-1.0");
-local media = LibStub("LibSharedMedia-3.0");
+local lsm = LibStub('AceGUISharedMediaWidgets-1.0');
+local media = LibStub('LibSharedMedia-3.0');
TDDps_textures = {
['Ping'] = 'Interface\\Cooldown\\ping4',
@@ -10,6 +10,7 @@ TDDps_textures = {
TDDps_Options = {
enabled = true,
+ disableButtonGlow = false,
onCombatEnter = true,
texture = '',
customTexture = '',
@@ -50,6 +51,17 @@ local options = {
end,
get = function(info) return TDDps_Options.enabled end
},
+ disableButtonGlow = {
+ name = 'Dissable blizzard button glow (experimental)',
+ desc = 'Disables original blizzard button glow',
+ type = 'toggle',
+ width = 'full',
+ set = function(info, val)
+ TDDps_Options.disableButtonGlow = val;
+ TDButton_UpdateButtonGlow();
+ end,
+ get = function(info) return TDDps_Options.disableButtonGlow end
+ },
onCombatEnter = {
name = 'Enable upon entering combat',
desc = 'Automatically enables helper upon entering combat',
@@ -68,10 +80,10 @@ local options = {
get = function(info) return strtrim(TDDps_Options.customTexture or '') end
},
texture = {
- type = "select",
+ type = 'select',
dialogControl = 'LSM30_Background',
- name = "Texture",
- desc = "Sets Highlight texture (changing this requires UI Reload)",
+ name = 'Texture',
+ desc = 'Sets Highlight texture (changing this requires UI Reload)',
values = function()
return TDDps_textures;
end,
@@ -98,9 +110,9 @@ local options = {
hasAlpha = true
},
interval = {
- name = "Interval in seconds",
- desc = "Sets how frequent rotation updates will be. Low value will result in fps drops.",
- type = "range",
+ name = 'Interval in seconds',
+ desc = 'Sets how frequent rotation updates will be. Low value will result in fps drops.',
+ type = 'range',
min = 0.01,
max = 2,
set = function(info,val) TDDps_Options.interval = val end,