Example #1
0
        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);
        }
Example #2
0
    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);
    }
Example #3
0
 public void Setup()
 {
     factory     = new ToolFactory();
     longcutTool = factory.CreateTool(ToolType.Long_Cut, "1");
 }
Example #4
0
        public void CreateCrossCutTool()
        {
            ITool tool = factory.CreateTool(ToolType.Cross_Cut, "0");

            Assert.IsTrue(tool.GetType() == typeof(CrosscutTool));
        }
Example #5
0
 private void SetupCrossCutTool()
 {
     _crossCutTool = _toolFactory.CreateTool(ToolType.Cross_Cut, "0");
     _crossCutTool.Raise(HeadType.Crease);
     _crossCutTool.Raise(HeadType.Cut);
 }
Example #6
0
 private void levelExplorerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ShowToolWindow(ToolFactory.CreateTool <LevelExplorer>(Context));
 }