Add fixes.lua for temporary fixes
This commit is contained in:
parent
9449a22a73
commit
e107ac2b97
|
@ -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)
|
1
pack.xml
1
pack.xml
|
@ -6,6 +6,7 @@
|
||||||
<Script file="chat.lua"/>
|
<Script file="chat.lua"/>
|
||||||
<Script file="cvars.lua"/>
|
<Script file="cvars.lua"/>
|
||||||
<Script file="units.lua"/>
|
<Script file="units.lua"/>
|
||||||
|
<Script file="fixes.lua"/>
|
||||||
<Script file="core.lua"/>
|
<Script file="core.lua"/>
|
||||||
<Script file="litepanels.lua"/>
|
<Script file="litepanels.lua"/>
|
||||||
<Script file="layout.lua"/>
|
<Script file="layout.lua"/>
|
||||||
|
|
Loading…
Reference in New Issue