mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -17,9 +17,6 @@ end
|
|||||||
|
|
||||||
local function onEvent()
|
local function onEvent()
|
||||||
if(this:IsVisible() or event == 'UNIT_COMBO_POINTS') then
|
if(this:IsVisible() or event == 'UNIT_COMBO_POINTS') then
|
||||||
--print(this, event, arg and unpack(arg))
|
|
||||||
--print(this, event, arg1, arg2, arg3, arg4, arg5)
|
|
||||||
|
|
||||||
return this[event](this, event, arg1, arg2, arg3, arg4, arg5)
|
return this[event](this, event, arg1, arg2, arg3, arg4, arg5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ local argcheck = Private.argcheck
|
|||||||
local queue = {}
|
local queue = {}
|
||||||
local factory = CreateFrame('Frame')
|
local factory = CreateFrame('Frame')
|
||||||
factory:SetScript('OnEvent', function()
|
factory:SetScript('OnEvent', function()
|
||||||
return this[event](this, event, arg and unpack(arg))
|
return this[event](this)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
factory:RegisterEvent('PLAYER_LOGIN')
|
factory:RegisterEvent('PLAYER_LOGIN')
|
||||||
|
|||||||
@@ -272,8 +272,8 @@ local function OnVerticalScroll() -- ScrollFr
|
|||||||
editBox:SetHitRectInsets(0, 0, arg1, editBox:GetHeight() - arg1 - this:GetHeight())
|
editBox:SetHitRectInsets(0, 0, arg1, editBox:GetHeight() - arg1 - this:GetHeight())
|
||||||
|
|
||||||
this.obj.scrollFrame:SetScrollChild(editBox)
|
this.obj.scrollFrame:SetScrollChild(editBox)
|
||||||
editBox:SetPoint("TOPLEFT",0,arg1)
|
editBox:SetPoint("TOPLEFT", 0, arg1)
|
||||||
editBox:SetPoint("TOPRIGHT",0,arg1)
|
editBox:SetPoint("TOPRIGHT", 0, arg1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnShowFocus()
|
local function OnShowFocus()
|
||||||
|
|||||||
Reference in New Issue
Block a user