Merge remote-tracking branch 'origin/master' into 1.12
# Conflicts: # Flax.flaxproj
This commit is contained in:
@@ -133,6 +133,7 @@ namespace FlaxEditor.Modules
|
||||
private ContextMenuButton _menuToolsProfilerWindow;
|
||||
private ContextMenuButton _menuToolsSetTheCurrentSceneViewAsDefault;
|
||||
private ContextMenuButton _menuToolsTakeScreenshot;
|
||||
private ContextMenuButton _menuToolsOpenLocalFolder;
|
||||
private ContextMenuChildMenu _menuWindowApplyWindowLayout;
|
||||
|
||||
private ToolStripButton _toolStripSaveAll;
|
||||
@@ -754,6 +755,16 @@ namespace FlaxEditor.Modules
|
||||
_menuToolsTakeScreenshot = cm.AddButton("Take screenshot", inputOptions.TakeScreenshot, Editor.Windows.TakeScreenshot);
|
||||
cm.AddSeparator();
|
||||
cm.AddButton("Plugins", () => Editor.Windows.PluginsWin.Show());
|
||||
cm.AddSeparator();
|
||||
var childMenu = cm.AddChildMenu("Open Product Local folder");
|
||||
childMenu.ContextMenu.AddButton("Editor", () => FileSystem.ShowFileExplorer(Globals.ProductLocalFolder));
|
||||
_menuToolsOpenLocalFolder = childMenu.ContextMenu.AddButton("Game", () =>
|
||||
{
|
||||
string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
GameSettings settings = GameSettings.Load<GameSettings>();
|
||||
string path = Path.Combine(localAppData, settings.CompanyName, settings.ProductName);
|
||||
FileSystem.ShowFileExplorer(path);
|
||||
});
|
||||
|
||||
// Window
|
||||
MenuWindow = MainMenu.AddButton("Window");
|
||||
@@ -1091,6 +1102,10 @@ namespace FlaxEditor.Modules
|
||||
_menuToolsBuildNavMesh.Enabled = canEdit;
|
||||
_menuToolsCancelBuilding.Enabled = GameCooker.IsRunning;
|
||||
_menuToolsSetTheCurrentSceneViewAsDefault.Enabled = Level.ScenesCount > 0;
|
||||
string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
GameSettings settings = GameSettings.Load<GameSettings>();
|
||||
string path = Path.Combine(localAppData, settings.CompanyName, settings.ProductName);
|
||||
_menuToolsOpenLocalFolder.Enabled = Directory.Exists(path);
|
||||
|
||||
c.PerformLayout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user