Add fixes.lua for temporary fixes

This commit is contained in:
robin 2021-04-29 15:31:20 +02:00
parent 9449a22a73
commit e107ac2b97
2 changed files with 17 additions and 0 deletions

16
fixes.lua Normal file
View File

@ -0,0 +1,16 @@
local addonName, addon = ...
local childName = addon['childName']
local child = addon[childName]
local init = {
Setup = function(self, childName, event)
-- Remove the cancel button (Reduce the taint caused by InterfaceOptionsFrame src: http://www.wowinterface.com/forums/showpost.php?p=275119&postcount=17 )
InterfaceOptionsFrameCancel:Hide()
InterfaceOptionsFrameOkay:SetAllPoints(InterfaceOptionsFrameCancel)
-- Make clicking cancel the same as clicking okay
InterfaceOptionsFrameCancel:SetScript("OnClick", function()
InterfaceOptionsFrameOkay:Click()
end)
end
}
addon.RegisterCallback(init, format("Init%s", childName), 'Setup', childName)

View File

@ -6,6 +6,7 @@
<Script file="chat.lua"/>
<Script file="cvars.lua"/>
<Script file="units.lua"/>
<Script file="fixes.lua"/>
<Script file="core.lua"/>
<Script file="litepanels.lua"/>
<Script file="layout.lua"/>