git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
956383a - Update all libraries
[wowui.git]
/
libs
/
AceGUI-3.0
/
widgets
/
AceGUIWidget-MultiLineEditBox.lua
diff --git
a/libs/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua
b/libs/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua
index
a27a2fc
..
9af4b87
100644
(file)
--- a/
libs/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua
+++ b/
libs/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua
@@
-1,4
+1,4
@@
-local Type, Version = "MultiLineEditBox", 2
7
+local Type, Version = "MultiLineEditBox", 2
8
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@
-14,12
+14,6
@@
local _G = _G
-- List them here for Mikk's FindGlobals script
-- GLOBALS: ACCEPT, ChatFontNormal
-- List them here for Mikk's FindGlobals script
-- GLOBALS: ACCEPT, ChatFontNormal
-local wowMoP
-do
- local _, _, _, interface = GetBuildInfo()
- wowMoP = (interface >= 50000)
-end
-
--[[-----------------------------------------------------------------------------
Support functions
-------------------------------------------------------------------------------]]
--[[-----------------------------------------------------------------------------
Support functions
-------------------------------------------------------------------------------]]
@@
-251,7
+245,11
@@
local methods = {
self.frame:SetScript("OnShow", OnShowFocus)
end
end,
self.frame:SetScript("OnShow", OnShowFocus)
end
end,
-
+
+ ["HighlightText"] = function(self, from, to)
+ self.editBox:HighlightText(from, to)
+ end,
+
["GetCursorPosition"] = function(self)
return self.editBox:GetCursorPosition()
end,
["GetCursorPosition"] = function(self)
return self.editBox:GetCursorPosition()
end,
@@
-285,7
+283,7
@@
local function Constructor()
label:SetText(ACCEPT)
label:SetHeight(10)
label:SetText(ACCEPT)
label:SetHeight(10)
- local button = CreateFrame("Button", ("%s%dButton"):format(Type, widgetNum), frame,
wowMoP and "UIPanelButtonTemplate" or "UIPanelButtonTemplate2
")
+ local button = CreateFrame("Button", ("%s%dButton"):format(Type, widgetNum), frame,
"UIPanelButtonTemplate
")
button:SetPoint("BOTTOMLEFT", 0, 4)
button:SetHeight(22)
button:SetWidth(label:GetStringWidth() + 24)
button:SetPoint("BOTTOMLEFT", 0, 4)
button:SetHeight(22)
button:SetWidth(label:GetStringWidth() + 24)