mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +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()
|
function E:StaticPopup_EditBoxOnEnterPressed()
|
||||||
local EditBoxOnEnterPressed, which, dialog
|
local EditBoxOnEnterPressed, which, dialog
|
||||||
local parent = self:GetParent()
|
local parent = this:GetParent()
|
||||||
if(parent.which) then
|
if(parent.which) then
|
||||||
which = parent.which
|
which = parent.which
|
||||||
dialog = parent
|
dialog = parent
|
||||||
@@ -586,21 +586,21 @@ function E:StaticPopup_EditBoxOnEnterPressed()
|
|||||||
end
|
end
|
||||||
EditBoxOnEnterPressed = E.PopupDialogs[which].EditBoxOnEnterPressed
|
EditBoxOnEnterPressed = E.PopupDialogs[which].EditBoxOnEnterPressed
|
||||||
if(EditBoxOnEnterPressed) then
|
if(EditBoxOnEnterPressed) then
|
||||||
EditBoxOnEnterPressed(self, dialog.data)
|
EditBoxOnEnterPressed(this, dialog.data)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function E:StaticPopup_EditBoxOnEscapePressed()
|
function E:StaticPopup_EditBoxOnEscapePressed()
|
||||||
local EditBoxOnEscapePressed = E.PopupDialogs[self:GetParent().which].EditBoxOnEscapePressed
|
local EditBoxOnEscapePressed = E.PopupDialogs[this:GetParent().which].EditBoxOnEscapePressed
|
||||||
if(EditBoxOnEscapePressed) then
|
if(EditBoxOnEscapePressed) then
|
||||||
EditBoxOnEscapePressed(self, self:GetParent().data)
|
EditBoxOnEscapePressed(this, this:GetParent().data)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function E:StaticPopup_EditBoxOnTextChanged(userInput)
|
function E:StaticPopup_EditBoxOnTextChanged(userInput)
|
||||||
local EditBoxOnTextChanged = E.PopupDialogs[self:GetParent().which].EditBoxOnTextChanged
|
local EditBoxOnTextChanged = E.PopupDialogs[this:GetParent().which].EditBoxOnTextChanged
|
||||||
if(EditBoxOnTextChanged) then
|
if(EditBoxOnTextChanged) then
|
||||||
EditBoxOnTextChanged(self, self:GetParent().data)
|
EditBoxOnTextChanged(this, this:GetParent().data)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ E.PopupDialogs["IMPORT_PROFILE_EXISTS"] = {
|
|||||||
self:GetParent().button1:Enable();
|
self:GetParent().button1:Enable();
|
||||||
end
|
end
|
||||||
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,
|
timeout = 0,
|
||||||
whileDead = 1,
|
whileDead = 1,
|
||||||
hideOnEscape = true,
|
hideOnEscape = true,
|
||||||
|
|||||||
@@ -356,7 +356,6 @@ local function ExportImport_Open(mode)
|
|||||||
|
|
||||||
box.scrollFrame:UpdateScrollChildRect()
|
box.scrollFrame:UpdateScrollChildRect()
|
||||||
box.scrollFrame:SetVerticalScroll(box.scrollFrame:GetVerticalScrollRange())
|
box.scrollFrame:SetVerticalScroll(box.scrollFrame:GetVerticalScrollRange())
|
||||||
box.scrollFrame:SetFrameLevel(box.scrollFrame:GetParent():GetFrameLevel() - 2)
|
|
||||||
|
|
||||||
oldText = text
|
oldText = text
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user