public ApplicationController() { _events = Factory.Events; _agsEditor = Factory.AGSEditor; _guiController = Factory.GUIController; _componentController = Factory.ComponentController; _nativeProxy = Factory.NativeProxy; _pluginEditorController = new AGSEditorController(_componentController, _agsEditor, _guiController); _events.GameLoad += new EditorEvents.GameLoadHandler(_events_GameLoad); _events.GamePostLoad += new EditorEvents.GamePostLoadHandler(_events_GamePostLoad); _events.GameSettingsChanged += new EditorEvents.ParameterlessDelegate(_events_GameSettingsChanged); _events.ImportedOldGame += new EditorEvents.ParameterlessDelegate(_events_ImportedOldGame); _events.RefreshAllComponentsFromGame += new EditorEvents.ParameterlessDelegate(_events_RefreshAllComponentsFromGame); _events.SavingGame += new EditorEvents.SavingGameHandler(_events_SavingGame); _events.SavingUserData += new EditorEvents.SavingUserDataHandler(_events_SavingUserData); _events.LoadedUserData += new EditorEvents.LoadedUserDataHandler(_events_LoadedUserData); _agsEditor.PreSaveGame += new AGSEditor.PreSaveGameHandler(_agsEditor_PreSaveGame); _guiController.OnEditorShutdown += new GUIController.EditorShutdownHandler(GUIController_OnEditorShutdown); _guiController.Initialize(_agsEditor); _agsEditor.DoEditorInitialization(); AGSColor.ColorMapper = new ColorMapper(_agsEditor); CreateComponents(); }
public ViewEditor(AGS.Types.View viewToEdit) { _guiController = Factory.GUIController; _guiController.OnPropertyObjectChanged += new GUIController.PropertyObjectChangedHandler(GUIController_OnPropertyObjectChanged); _viewUpdateHandler = new AGS.Types.View.ViewUpdatedHandler(View_ViewUpdated); viewToEdit.ViewUpdated += _viewUpdateHandler; InitializeComponent(); _editingView = viewToEdit; InitializeControls(); viewPreview.DynamicUpdates = true; chkShowPreview.Checked = Factory.AGSEditor.Preferences.ShowViewPreviewByDefault; UpdateWhetherPreviewIsShown(); }
public ViewLoopEditor(ViewLoop loopToEdit, GUIController guiController) { InitializeComponent(); _selectedFrame = -1; _loop = loopToEdit; lblLoopTitle.Text = "Loop " + _loop.ID + " (" + _loop.DirectionDescription + ")"; chkRunNextLoop.DataBindings.Add("Checked", _loop, "RunNextLoop", false, DataSourceUpdateMode.OnPropertyChanged); _isLastLoop = false; _loopDisplayY = chkRunNextLoop.Top + chkRunNextLoop.Height + 2; FRAME_DISPLAY_SIZE = guiController.AdjustSizeFrom96DpiToSystemDpi(FRAME_DISPLAY_SIZE_96DPI); btnNewFrame.Width = FRAME_DISPLAY_SIZE; btnNewFrame.Height = FRAME_DISPLAY_SIZE; btnNewFrame.Top = _loopDisplayY; _framelessWidth = Math.Max(chkRunNextLoop.Width + 10, Screen.PrimaryScreen.Bounds.Width); UpdateControlWidth(); }
public AGSEditorController(ComponentController componentController, AGSEditor agsEditor, GUIController guiController) { _componentController = componentController; _agsEditor = agsEditor; _guiController = guiController; }
public WelcomePane(GUIController guiContoller) { _guiContoller = guiContoller; InitializeComponent(); }