Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua @ 106:e635cd648e01 v49
7.2 update
| author | yellowfive | 
|---|---|
| date | Tue, 28 Mar 2017 16:10:00 -0700 | 
| parents | 01b63b8ed811 | 
| children | e31b02b24488 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 105:3ce266c86bd3 | 106:e635cd648e01 | 
|---|---|
| 1 --[[----------------------------------------------------------------------------- | 1 --[[----------------------------------------------------------------------------- | 
| 2 EditBox Widget | 2 EditBox Widget | 
| 3 -------------------------------------------------------------------------------]] | 3 -------------------------------------------------------------------------------]] | 
| 4 local Type, Version = "EditBox", 25 | 4 local Type, Version = "EditBox", 26 | 
| 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 | 
| 198 ["SetFocus"] = function(self) | 198 ["SetFocus"] = function(self) | 
| 199 self.editbox:SetFocus() | 199 self.editbox:SetFocus() | 
| 200 if not self.frame:IsShown() then | 200 if not self.frame:IsShown() then | 
| 201 self.frame:SetScript("OnShow", Frame_OnShowFocus) | 201 self.frame:SetScript("OnShow", Frame_OnShowFocus) | 
| 202 end | 202 end | 
| 203 end, | |
| 204 | |
| 205 ["HighlightText"] = function(self, from, to) | |
| 206 self.editbox:HighlightText(from, to) | |
| 203 end | 207 end | 
| 204 } | 208 } | 
| 205 | 209 | 
| 206 --[[----------------------------------------------------------------------------- | 210 --[[----------------------------------------------------------------------------- | 
| 207 Constructor | 211 Constructor | 
