Пример #1
0
		public LevelEditor()
		{
			DoubleBuffered = true;

			mSelectedTool = new SelectEditorTool();
			mSelectedTool.Editor = this;
		}
Пример #2
0
        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();
            }
        }
Пример #3
0
 protected void CloneTo(EditorTool tool)
 {
     tool.mEditor = mEditor;
 }
Пример #4
0
		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();
			}
		}
Пример #5
0
		protected void CloneTo(EditorTool tool)
		{
			tool.mEditor = mEditor;
		}