mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
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:
parent
62fabf6894
commit
c74b669f5e
6 changed files with 36 additions and 32 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue