update Importing profile

@Bunn67 Text needs work, but plugin and table works :D Check LibCompress and LibBase64
This commit is contained in:
Crum
2018-01-05 09:45:43 -06:00
parent 1e4a15b8ce
commit e46bf17147
3 changed files with 7 additions and 8 deletions
+6 -6
View File
@@ -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
+1 -1
View File
@@ -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,
-1
View File
@@ -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