from retail

This commit is contained in:
NoM0Re
2025-01-25 16:14:11 +01:00
parent bd6985e67a
commit bd4cba924f
4 changed files with 37 additions and 33 deletions
@@ -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