mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update Importing profile
@Bunn67 Text needs work, but plugin and table works :D Check LibCompress and LibBase64
This commit is contained in:
@@ -576,7 +576,7 @@ end
|
||||
|
||||
function E:StaticPopup_EditBoxOnEnterPressed()
|
||||
local EditBoxOnEnterPressed, which, dialog
|
||||
local parent = self:GetParent()
|
||||
local parent = this:GetParent()
|
||||
if(parent.which) then
|
||||
which = parent.which
|
||||
dialog = parent
|
||||
@@ -586,21 +586,21 @@ function E:StaticPopup_EditBoxOnEnterPressed()
|
||||
end
|
||||
EditBoxOnEnterPressed = E.PopupDialogs[which].EditBoxOnEnterPressed
|
||||
if(EditBoxOnEnterPressed) then
|
||||
EditBoxOnEnterPressed(self, dialog.data)
|
||||
EditBoxOnEnterPressed(this, dialog.data)
|
||||
end
|
||||
end
|
||||
|
||||
function E:StaticPopup_EditBoxOnEscapePressed()
|
||||
local EditBoxOnEscapePressed = E.PopupDialogs[self:GetParent().which].EditBoxOnEscapePressed
|
||||
local EditBoxOnEscapePressed = E.PopupDialogs[this:GetParent().which].EditBoxOnEscapePressed
|
||||
if(EditBoxOnEscapePressed) then
|
||||
EditBoxOnEscapePressed(self, self:GetParent().data)
|
||||
EditBoxOnEscapePressed(this, this:GetParent().data)
|
||||
end
|
||||
end
|
||||
|
||||
function E:StaticPopup_EditBoxOnTextChanged(userInput)
|
||||
local EditBoxOnTextChanged = E.PopupDialogs[self:GetParent().which].EditBoxOnTextChanged
|
||||
local EditBoxOnTextChanged = E.PopupDialogs[this:GetParent().which].EditBoxOnTextChanged
|
||||
if(EditBoxOnTextChanged) then
|
||||
EditBoxOnTextChanged(self, self:GetParent().data)
|
||||
EditBoxOnTextChanged(this, this:GetParent().data)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -521,7 +521,7 @@ E.PopupDialogs["IMPORT_PROFILE_EXISTS"] = {
|
||||
self:GetParent().button1:Enable();
|
||||
end
|
||||
end,
|
||||
OnShow = function(self) self.editBox:SetText(D.profileKey); self.editBox:SetFocus(); end,
|
||||
OnShow = function() this.editBox:SetText(D.profileKey); this.editBox:SetFocus(); end,
|
||||
timeout = 0,
|
||||
whileDead = 1,
|
||||
hideOnEscape = true,
|
||||
|
||||
@@ -356,7 +356,6 @@ local function ExportImport_Open(mode)
|
||||
|
||||
box.scrollFrame:UpdateScrollChildRect()
|
||||
box.scrollFrame:SetVerticalScroll(box.scrollFrame:GetVerticalScrollRange())
|
||||
box.scrollFrame:SetFrameLevel(box.scrollFrame:GetParent():GetFrameLevel() - 2)
|
||||
|
||||
oldText = text
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user