comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua @ 17:3000eccbf1a0 v7.3.0.017

- ToC Update.
author Tercio
date Sat, 02 Sep 2017 14:10:48 -0300
parents 371e14cd2feb
children
comparison
equal deleted inserted replaced
16:6c64dd7f16a2 17:3000eccbf1a0
1 --[[----------------------------------------------------------------------------- 1 --[[-----------------------------------------------------------------------------
2 EditBox Widget 2 EditBox Widget
3 -------------------------------------------------------------------------------]] 3 -------------------------------------------------------------------------------]]
4 local Type, Version = "EditBox", 26 4 local Type, Version = "EditBox", 27
5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) 5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end 6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 7
8 -- Lua APIs 8 -- Lua APIs
9 local tostring, pairs = tostring, pairs 9 local tostring, pairs = tostring, pairs
71 local function EditBox_OnEnterPressed(frame) 71 local function EditBox_OnEnterPressed(frame)
72 local self = frame.obj 72 local self = frame.obj
73 local value = frame:GetText() 73 local value = frame:GetText()
74 local cancel = self:Fire("OnEnterPressed", value) 74 local cancel = self:Fire("OnEnterPressed", value)
75 if not cancel then 75 if not cancel then
76 PlaySound("igMainMenuOptionCheckBoxOn") 76 PlaySound(856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON
77 HideButton(self) 77 HideButton(self)
78 end 78 end
79 end 79 end
80 80
81 local function EditBox_OnReceiveDrag(frame) 81 local function EditBox_OnReceiveDrag(frame)