from retail
This commit is contained in:
@@ -28,7 +28,6 @@ local function Button_OnClick(frame, ...)
|
||||
PlaySound(852) -- SOUNDKIT.IG_MAINMENU_OPTION
|
||||
frame.title:Hide()
|
||||
frame.renameEditBox:Show()
|
||||
frame.renameEditBox:Enable()
|
||||
frame.renameEditBox:SetText(frame.title:GetText())
|
||||
frame.renameEditBox:HighlightText()
|
||||
frame.renameEditBox:SetFocus()
|
||||
@@ -60,9 +59,6 @@ local function Control_OnLeave(frame)
|
||||
end
|
||||
|
||||
local function rename_complete(self, ...)
|
||||
self:ClearFocus()
|
||||
AceGUI:ClearFocus()
|
||||
self:EnableMouse(false)
|
||||
self:Hide()
|
||||
self:GetParent().obj:Fire("OnEnterPressed", ...)
|
||||
end
|
||||
@@ -115,7 +111,6 @@ local methods = {
|
||||
AceGUI:ClearFocus()
|
||||
self.title:Hide()
|
||||
self.renameEditBox:Show()
|
||||
self.renameEditBox:EnableMouse(true)
|
||||
self.renameEditBox:SetText(self.title:GetText())
|
||||
self.renameEditBox:HighlightText()
|
||||
self.renameEditBox:SetFocus()
|
||||
@@ -195,14 +190,12 @@ local function Constructor()
|
||||
renameEditBox:SetHeight(14)
|
||||
renameEditBox:SetPoint("TOPLEFT", title, "TOPLEFT")
|
||||
renameEditBox:SetPoint("BOTTOMRIGHT", title, "BOTTOMRIGHT")
|
||||
renameEditBox:EnableMouse(false)
|
||||
renameEditBox:Hide()
|
||||
renameEditBox:SetScript(
|
||||
"OnEscapePressed",
|
||||
function(self)
|
||||
self:ClearFocus()
|
||||
AceGUI:ClearFocus()
|
||||
self:EnableMouse(false)
|
||||
self:Hide()
|
||||
title:Show()
|
||||
end
|
||||
@@ -210,9 +203,6 @@ local function Constructor()
|
||||
renameEditBox:SetScript(
|
||||
"OnEditFocusLost",
|
||||
function(self)
|
||||
self:ClearFocus()
|
||||
AceGUI:ClearFocus()
|
||||
self:EnableMouse(false)
|
||||
self:Hide()
|
||||
title:Show()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user