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-EditBox.lua
diff --git
a/libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
b/libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
index
c67902c
..
6594684
100644
(file)
--- a/
libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
+++ b/
libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
@@
-1,7
+1,7
@@
--[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
--[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
-local Type, Version = "EditBox", 2
5
+local Type, Version = "EditBox", 2
7
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
@@
-73,7
+73,7
@@
local function EditBox_OnEnterPressed(frame)
local value = frame:GetText()
local cancel = self:Fire("OnEnterPressed", value)
if not cancel then
local value = frame:GetText()
local cancel = self:Fire("OnEnterPressed", value)
if not cancel then
- PlaySound(
"igMainMenuOptionCheckBoxOn")
+ PlaySound(
PlaySoundKitID and "igMainMenuOptionCheckBoxOn" or 856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON
HideButton(self)
end
end
HideButton(self)
end
end
@@
-200,6
+200,10
@@
local methods = {
if not self.frame:IsShown() then
self.frame:SetScript("OnShow", Frame_OnShowFocus)
end
if not self.frame:IsShown() then
self.frame:SetScript("OnShow", Frame_OnShowFocus)
end
+ end,
+
+ ["HighlightText"] = function(self, from, to)
+ self.editbox:HighlightText(from, to)
end
}
end
}