public LevelEditor() { DoubleBuffered = true; mSelectedTool = new SelectEditorTool(); mSelectedTool.Editor = this; }
public void SetEditorTool(EditorTool tool) { foreach (LevelToolWindow ltw in GetAllOpenLevelToolWindows()) { EditorTool newtool = (EditorTool)tool.Clone(); newtool.Editor = ltw.LevelEditor; newtool.FinishCallback = new CallbackMethod(FinishTool); //Deactivate current tool ltw.LevelEditor.SelectedTool.Deactivate(); //Set new tool ltw.LevelEditor.SelectedTool = newtool; //Activate new tool newtool.Activate(); } }
protected void CloneTo(EditorTool tool) { tool.mEditor = mEditor; }
public void SetEditorTool(EditorTool tool) { foreach (LevelToolWindow ltw in GetAllOpenLevelToolWindows()) { EditorTool newtool = (EditorTool)tool.Clone(); newtool.Editor = ltw.LevelEditor; newtool.FinishCallback = new CallbackMethod(FinishTool); //Deactivate current tool ltw.LevelEditor.SelectedTool.Deactivate(); //Set new tool ltw.LevelEditor.SelectedTool = newtool; //Activate new tool newtool.Activate(); } }
protected void CloneTo(EditorTool tool) { tool.mEditor = mEditor; }