protected override void InitPlugin(MainForm main)
		{
			base.InitPlugin(main);

			// Request menus
			this.menuItemHelpAdvisor = main.RequestMenu(Path.Combine(GeneralRes.MenuName_Help, HelpAdvisorRes.MenuItemName_Advisor));

			// Configure menus
			this.menuItemHelpAdvisor.Image = HelpAdvisorResCache.IconHelp;
			this.menuItemHelpAdvisor.Click += new EventHandler(this.menuItemHelpAdvisor_Click);
		}
		protected override void InitPlugin(MainForm main)
		{
			base.InitPlugin(main);

			// Request menus
			this.menuItemResHacker = main.RequestMenu(Path.Combine(GeneralRes.MenuName_Tools, ResourceHackerRes.MenuItemName_ResourceHacker));

			// Configure menus
			this.menuItemResHacker.Image = ResourceHackerResCache.IconResourceHacker;
			this.menuItemResHacker.Click += new EventHandler(this.menuItemResHacker_Click);
		}
		public ProcessingBigTaskDialog(MainForm owner, string caption, string desc, TaskAction task, object data)
		{
			this.InitializeComponent();

			this.owner = owner;
			this.taskCaption = caption;
			this.taskDesc = desc;
			this.task = task;
			this.data = data;

			this.Text = this.taskCaption;
			this.descLabel.Text = this.taskDesc;
			this.stateDescLabel.Text = "";
		}
		/// <summary>
		/// This method is called when all plugins and the editors user data and layout are loaded. May initialize GUI.
		/// </summary>
		/// <param name="main"></param>
		internal protected virtual void InitPlugin(MainForm main) {}
Exemplo n.º 5
0
		private static void CloseMainForm(MainForm form)
		{
			Application.Exit();
		}
Exemplo n.º 6
0
		public ReloadCorePluginDialog(MainForm owner)
		{
			this.InitializeComponent();
			this.owner = owner;
		}
Exemplo n.º 7
0
		protected MainForm InitEditor()
		{
			MainForm main = new MainForm();
			DualityEditorApp.Init(main, this.recover);
			return main;
		}
		protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);

			this.owner.SetTaskbarOverlayIcon(GeneralResCache.IconCog, this.taskCaption);

			this.workerInterface = new WorkerInterface();
			this.workerInterface.owner = this;
			this.workerInterface.MainForm = this.owner;
			this.workerInterface.Task = this.task;
			this.workerInterface.Data = this.data;

			this.worker = new Thread(WorkerThreadProc);
			this.worker.Start(this.workerInterface);

			this.progressTimer.Start();
		}
		protected override void InitPlugin(MainForm main)
		{
			base.InitPlugin(main);

			// Request menus
			this.menuItemProjectView = main.RequestMenu(GeneralRes.MenuName_View, EditorBaseRes.MenuItemName_ProjectView);
			this.menuItemSceneView = main.RequestMenu(GeneralRes.MenuName_View, EditorBaseRes.MenuItemName_SceneView);
			this.menuItemObjView = main.RequestMenu(GeneralRes.MenuName_View, EditorBaseRes.MenuItemName_ObjView);
			this.menuItemCamView = main.RequestMenu(GeneralRes.MenuName_View, EditorBaseRes.MenuItemName_CamView);
			this.menuItemLogView = main.RequestMenu(GeneralRes.MenuName_View, EditorBaseRes.MenuItemName_LogView);
			this.menuItemAppData = main.RequestMenu(GeneralRes.MenuName_Settings, EditorBaseRes.MenuItemName_AppData);
			this.menuItemUserData = main.RequestMenu(GeneralRes.MenuName_Settings, EditorBaseRes.MenuItemName_UserData);

			// Configure menus
			this.menuItemProjectView.Image = EditorBaseResCache.IconProjectView.ToBitmap();
			this.menuItemSceneView.Image = EditorBaseResCache.IconSceneView.ToBitmap();
			this.menuItemObjView.Image = EditorBaseResCache.IconObjView.ToBitmap();
			this.menuItemCamView.Image = EditorBaseResCache.IconEye.ToBitmap();
			this.menuItemLogView.Image = EditorBaseResCache.IconLogView.ToBitmap();

			this.menuItemProjectView.Click += this.menuItemProjectView_Click;
			this.menuItemSceneView.Click += this.menuItemSceneView_Click;
			this.menuItemObjView.Click += this.menuItemObjView_Click;
			this.menuItemCamView.Click += this.menuItemCamView_Click;
			this.menuItemLogView.Click += this.menuItemLogView_Click;
			this.menuItemAppData.Click += this.menuItemAppData_Click;
			this.menuItemUserData.Click += this.menuItemUserData_Click;

			Sandbox.Entering += this.Sandbox_Entering;
			FileEventManager.ResourceModified += this.FileEventManager_ResourceChanged;
		//	FileEventManager.ResourceCreated += this.FileEventManager_ResourceChanged;
		//	FileEventManager.ResourceDeleted += this.FileEventManager_ResourceChanged;
		//	FileEventManager.ResourceRenamed += this.FileEventManager_ResourceChanged;
			DualityEditorApp.ObjectPropertyChanged += this.DualityEditorApp_ObjectPropertyChanged;
		}