Okay well... Nothing going back from that has anything to do with anything of any importance how ever.... as i started to weed out the stuff that it did show i got some new data. It pointed to this particular section of code and my use of of the setattribute and then the hide/show of the micro bar.
Lua Code:
local addonName, addon = ...
--[[-----------------------------------------------------------------------------
GrimUI options/config button
-------------------------------------------------------------------------------]]
local GUI_ConfigButton = CreateFrame('Button', GUI_ConfigButton, UIParent, 'SecureHandlerClickTemplate')
GUI_ConfigButton:SetSize(62, 30)
GUI_ConfigButton:RegisterForClicks('AnyUp')
GUI_ConfigButton:SetNormalTexture([[Interface\AddOns\]] .. addonName .. [[\Media\ConfigButton]])
GUI_ConfigButton:SetHighlightTexture([[Interface\AddOns\]] .. addonName .. [[\Media\ConfigButton]])
GUI_ConfigButton:SetPoint('BOTTOMRIGHT', addon.skin, 'TOPRIGHT', -2, 0)
GUI_ConfigButton:SetAttribute('_onclick', [[
if button == 'LeftButton' and not IsControlKeyDown() and not IsAltKeyDown() then
local microBar = self:GetFrameRef("microBar")
if microBar:IsVisible() then
microBar:Hide()
else
microBar:Show()
end
elseif button == 'RightButton' and not IsControlKeyDown() then
control:CallMethod("OpenConfig")
end
]])
function GUI_ConfigButton:OpenConfig()
if addon.configPanel and addon.configPanel:IsVisible() then
InterfaceOptionsFrame:Hide()
else
addon.configPanel(GrimUI)
addon.configPanel(GrimUI)
end
end
GUI_ConfigButton:SetScript('OnEnter', function(self)
GameTooltip:SetOwner(self, 'ANCHOR_TOP', 0, 15)
GameTooltip:AddLine("|cffeda55fLeftClick|r toggle MicroBar", 0.2, 1, 0.2)
GameTooltip:AddLine("|cffeda55fRightClick|r Options Panel", 0.2, 1, 0.2)
if Macaroon then
GameTooltip:AddLine("|cffeda55fCtrl+LeftClick|r Button Binds", 0.2, 1, 0.2)
GameTooltip:AddLine("|cffeda55fCtrl+RightClick|r Button Config", 0.2, 1, 0.2)
end
GameTooltip:AddLine("|cffeda55fAlt+LeftClick|r Toggle VolumeBar", 0.2, 1, 0.2)
GameTooltip:Show()
end)
GUI_ConfigButton:HookScript("OnClick", function(self, button)
if Macaroon then
if button == 'LeftButton' and IsControlKeyDown() then
Macaroon.ButtonBind(off)
elseif IsControlKeyDown() and button == 'RightButton' then
Macaroon.ConfigBars()
end
end
if button == 'LeftButton' and IsAltKeyDown() then
if addon.settings.showVolume == true then
addon.settings.showVolume = false
addon:GUI_ShowVolume()
elseif addon.settings.showVolume == false then
addon.settings.showVolume = true
addon:GUI_ShowVolume()
end
end
end)
GUI_ConfigButton:SetScript('OnLeave', addon.HideTooltip)