Removed redundant 'load last edited level' startup mode to editor.

Fixed recent levels open command behavior
Includes rextimmy's vertex WS normal logic in HLS shadergen
This commit is contained in:
Areloch 2019-11-20 01:39:12 -06:00
parent 62fabf6894
commit c74b669f5e
6 changed files with 36 additions and 32 deletions

View file

@ -265,7 +265,7 @@ function sceneLightingComplete()
%probeCount = getWordCount(%probeIds);
$pref::ReflectionProbes::CurrentLevelPath = filePath($Client::MissionFile) @ "/" @ fileBase($Client::MissionFile) @ "/probes/";
ProbeBin.processProbes();
//ProbeBin.processProbes();
onPhaseComplete("STARTING MISSION");

View file

@ -330,10 +330,6 @@ function ESettingsWindow::getNavEditorSettings(%this)
function ESettingsWindow::getSceneEditorSettings(%this)
{
SettingsInspector.startGroup("Startup");
SettingsInspector.addSettingsField("WorldEditor/startupMode", "Startup Mode", "list", "", "Blank Level,Last Open Level");
SettingsInspector.endGroup();
SettingsInspector.startGroup("Render");
SettingsInspector.addSettingsField("WorldEditor/Render/renderObjHandle", "Object Icons", "bool", "");
SettingsInspector.addSettingsField("WorldEditor/Render/renderObjText", "Object Text", "bool", "");

View file

@ -275,24 +275,7 @@ function fastLoadWorldEdit(%val)
// Flag saying, when level is chosen, launch it with the editor open.
%defaultLevelFile = EditorSettings.value( "WorldEditor/newLevelFile" );
%startupMode = EditorSettings.value("WorldEditor/startupMode", "Blank Level");
if(%startupMode $= "Blank Level")
{
EditorNewLevel(%defaultLevelFile);
}
else if(%startupMode $= "Last Open Level")
{
%lastLevel = EditorSettings.value("WorldEditor/lastEditedLevel", "");
if(%lastLevel $= "")
{
EditorNewLevel(%defaultLevelFile);
}
else
{
EditorOpenMission(%lastLevel);
}
}
EditorNewLevel(%defaultLevelFile);
}
else
{

View file

@ -435,6 +435,9 @@ function EditorOpenMission(%levelAsset)
popInstantGroup();
}
//If we've opened a valid level, clear the saveAs tag as it's not really applicable now
EditorGui.saveAs = false;
}
function EditorOpenSceneAppend(%levelAsset)
@ -605,8 +608,6 @@ function EditorUnmount()
//------------------------------------------------------------------------
function updateRecentLevelsListing()
{
RecentLevelsPopupMenu.clearItems();
%recentLevels = EditorSettings.value("WorldEditor/recentLevelsList");
%recentCount = getTokenCount(%recentLevels, ",");
@ -614,8 +615,11 @@ function updateRecentLevelsListing()
{
%recentEntry = getToken(%recentLevels, ",", %i);
RecentLevelsPopupMenu.insertItem(%i, %recentEntry, "", "schedule(1,0, \"EditorOpenMission\", " @ %recentEntry @ ");");
%command = "schedule(32,0, \"EditorOpenMission\", \"" @ %recentEntry @ "\");";
RecentLevelsPopupMenu.item[%i] = %recentEntry TAB "" TAB %command;
}
RecentLevelsPopupMenu.reloadItems();
}
//////////////////////////////////////////////////////////////////////////