Misc fixes to ensure that the default postFX save, load and editing process is valid

Also fixes it so if a level asset doesn't point to a valid postfx preset file, it'll generate a clean one on save
This commit is contained in:
Areloch 2020-11-01 15:39:30 -06:00
parent 302a64edd1
commit 9ca276fef0
9 changed files with 63 additions and 114 deletions

View file

@ -134,6 +134,7 @@ function editScenePostEffects(%scene)
function PostFXEditorNewPFXWindow::showDialog(%this)
{
%this.setHidden(false);
PostFXEditorNewPFXWindow.selectWindow();
PostFXEditorNewPFXList.clear();

View file

@ -115,10 +115,9 @@
active = "1";
command = "PostFXEditorNewPFXWindow.showDialog();";
tooltipProfile = "GuiToolTipProfile";
tooltip = "Add a new Import Config";
tooltip = "Add a new PostFX";
hovertime = "1000";
isContainer = "0";
internalName = "newImportConfig";
canSave = "1";
canSaveDynamicFields = "0";
};
@ -142,10 +141,9 @@
active = "1";
command = "PostFXEditor.removePostFX();";
tooltipProfile = "GuiToolTipProfile";
tooltip = "Delets the currently selected import config";
tooltip = "Delets the currently selected PostFX";
hovertime = "1000";
isContainer = "0";
internalName = "deleteImportConfig";
canSave = "1";
canSaveDynamicFields = "0";
};