from retail
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasMultiLineEditBox", 36
|
||||
local Type, Version = "WeakAurasMultiLineEditBox", 38
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
|
||||
|
||||
@@ -169,6 +169,10 @@ local function OnFrameShow(frame)
|
||||
end
|
||||
end
|
||||
|
||||
if option and option.callbacks and option.callbacks.OnShow then
|
||||
option.callbacks.OnShow(self)
|
||||
end
|
||||
|
||||
for i = numExtraButtons + 1, #self.extraButtons do
|
||||
self.extraButtons[i]:Hide();
|
||||
end
|
||||
@@ -178,6 +182,11 @@ local function OnEditFocusGained(frame)
|
||||
AceGUI:SetFocus(frame.obj)
|
||||
frame.obj:Fire("OnEditFocusGained")
|
||||
frame.obj.scrollFrame:EnableMouseWheel(true);
|
||||
|
||||
local option = frame.obj.userdata.option
|
||||
if option and option.callbacks and option.callbacks.OnEditFocusGained then
|
||||
option.callbacks.OnEditFocusGained(frame.obj)
|
||||
end
|
||||
end
|
||||
|
||||
--[[-----------------------------------------------------------------------------
|
||||
@@ -369,6 +378,7 @@ local function Constructor()
|
||||
button = button,
|
||||
extraButtons = extraButtons,
|
||||
editBox = editBox,
|
||||
editbox = editBox,
|
||||
frame = frame,
|
||||
label = label,
|
||||
labelHeight = 10,
|
||||
|
||||
Reference in New Issue
Block a user