from retail

This commit is contained in:
NoM0Re
2025-01-25 17:46:46 +01:00
parent 1152abe6a5
commit 87c1e2fbaf
7 changed files with 54 additions and 77 deletions
@@ -35,11 +35,20 @@ local function ConstructImportExport(frame)
function group.Open(self, mode, id)
if(frame.window == "texture") then
frame.texturePicker:CancelClose();
local texturepicker = OptionsPrivate.TexturePicker(frame, true)
if texturepicker then
texturepicker:CancelClose();
end
elseif(frame.window == "icon") then
frame.iconPicker:CancelClose();
local iconpicker = OptionsPrivate.IconPicker(frame, true)
if iconpicker then
iconpicker:CancelClose();
end
elseif(frame.window == "model") then
frame.modelPicker:CancelClose();
local modelpicker = OptionsPrivate.ModelPicker(frame, true)
if modelpicker then
modelpicker:CancelClose();
end
end
frame.window = "importexport";
frame:UpdateFrameVisible()
@@ -89,7 +98,7 @@ local function ConstructImportExport(frame)
return group
end
function OptionsPrivate.ImportExport(frame)
importexport = importexport or ConstructImportExport(frame)
function OptionsPrivate.ImportExport(frame, noConstruct)
importexport = importexport or (not noConstruct and ConstructImportExport(frame))
return importexport
end