private void MainForm_Load(object sender, EventArgs e) { //string configFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "app.config"); //if (File.Exists(configFile)) //dockPanel.LoadFromXml(configFile, GetContentFromPersistString); ShowToolWindow(ToolFactory.CreateTool <LevelExplorer>(Context)); //ShowToolWindow(ToolFactory.CreateTool<MiNetConsole>(Context), DockState.DockBottom); }
public GameObject CreateTool(string type, Camera activeCamera) { // print(type); if (CheckForExistence(type)) { print("It is not possible to have more than 1 instance of " + type + " in your MPD Assembly"); return(null); } BaseTool obj = _factory.CreateTool(type, activeCamera); MpdToolsInAssembly.Add(obj); obj.ClickedOnObject += OnClickedOnObject; return(obj.gameObject); //_mpdTools.Add(obj); }
public void Setup() { factory = new ToolFactory(); longcutTool = factory.CreateTool(ToolType.Long_Cut, "1"); }
public void CreateCrossCutTool() { ITool tool = factory.CreateTool(ToolType.Cross_Cut, "0"); Assert.IsTrue(tool.GetType() == typeof(CrosscutTool)); }
private void SetupCrossCutTool() { _crossCutTool = _toolFactory.CreateTool(ToolType.Cross_Cut, "0"); _crossCutTool.Raise(HeadType.Crease); _crossCutTool.Raise(HeadType.Cut); }
private void levelExplorerToolStripMenuItem_Click(object sender, EventArgs e) { ShowToolWindow(ToolFactory.CreateTool <LevelExplorer>(Context)); }