Ejemplo n.º 1
0
 public SceneEditorControl()
 {
     this.MonoGameService     = ViewContainer.Resolve <IMonoGameService>();
     this.SceneService        = ViewContainer.Resolve <ISceneService>();
     this.CenterCameraCommand = new RelayCommand(this.MonoGameService.CenterCamera);
     this.InitializeComponent();
 }
Ejemplo n.º 2
0
 public SelectionEditor(EditorGame editorGame)
 {
     this._editorGame       = editorGame;
     this._componentService = ViewContainer.Resolve <IComponentService>();
     this._componentService.SelectionChanged += this.ComponentService_SelectionChanged;
     this._translateGizmo = new TranslateGizmo(editorGame);
 }
Ejemplo n.º 3
0
 public ImageAssetEditor()
 {
     this._undoService         = ViewContainer.Resolve <IUndoService>();
     this.AddSpriteCommand     = new RelayCommand(this.AddSprite, () => this.Asset != null);
     this._removeSpriteCommand = new RelayCommand(this.RemoveSprite, () => this.Asset != null && this.SelectedSprite != null);
     this.InitializeComponent();
 }
Ejemplo n.º 4
0
        public AssetBrowser()
        {
            this._assetService      = ViewContainer.Resolve <IAssetService>();
            this.TextChangedCommand = new RelayCommand <string>(x => this._assetService.RenameAsset(this._assetService.SelectedAsset, x));
            this.InitializeComponent();

            this.Loaded += this.AssetBrowser_Loaded;
        }
Ejemplo n.º 5
0
        public ComponentHierarchy()
        {
            this._dialogService    = ViewContainer.Resolve <IDialogService>();
            this._monoGameService  = ViewContainer.Resolve <IMonoGameService>();
            this._componentService = ViewContainer.Resolve <IComponentService>();
            this._undoService      = ViewContainer.Resolve <IUndoService>();

            this._componentService.SelectionChanged += this.ComponentService_SelectionChanged;
            this._addComponentCommand    = new RelayCommand(this.AddComponent, () => this.SelectedItem != null);
            this._removeComponentCommand = new RelayCommand(this.RemoveComponent, () => this.SelectedItem != null && this.SelectedItem is ComponentWrapper);
            this.InitializeComponent();
        }
Ejemplo n.º 6
0
 public SpriteAnimationAssetEditor()
 {
     this._dialogService      = ViewContainer.Resolve <IDialogService>();
     this._projectService     = ViewContainer.Resolve <IProjectService>();
     this._undoService        = ViewContainer.Resolve <IUndoService>();
     this._addStepCommand     = new RelayCommand(this.AddStep, () => this.Asset != null);
     this._removeStepCommand  = new RelayCommand(this.RemoveStep, () => this.Asset != null && this.SelectedStep != null);
     this._moveDownCommand    = new RelayCommand(this.MoveDown, this.CanMoveDown);
     this._moveUpCommand      = new RelayCommand(this.MoveUp, this.CanMoveUp);
     this.ClearSpriteCommand  = new RelayCommand <SpriteAnimationStepWrapper>(this.ClearSprite);
     this.SelectSpriteCommand = new RelayCommand <SpriteAnimationStepWrapper>(this.SelectSprite);
     this.InitializeComponent();
 }
Ejemplo n.º 7
0
 public ComponentsView()
 {
     this.DataContext = ViewContainer.Resolve <ComponentsViewModel>();
     InitializeComponent();
 }
 public RectangleColliderEditor()
 {
     this._sceneService = ViewContainer.Resolve <ISceneService>();
     this._undoService  = ViewContainer.Resolve <IUndoService>();
     this.InitializeComponent();
 }
Ejemplo n.º 9
0
 public ColliderEditor()
 {
     this._busyService        = ViewContainer.Resolve <IBusyService>();
     this._valueEditorService = ViewContainer.Resolve <IValueEditorService>();
     this.InitializeComponent();
 }
Ejemplo n.º 10
0
 internal EditorCameraWrapper(EditorGame editorGame)
 {
     this._editorGame   = editorGame;
     this._sceneService = ViewContainer.Resolve <ISceneService>();
 }
Ejemplo n.º 11
0
 public EditableTreeViewItemControl()
 {
     this._dialogService = ViewContainer.Resolve <IDialogService>();
     this._undoService   = ViewContainer.Resolve <IUndoService>();
     this.InitializeComponent();
 }
Ejemplo n.º 12
0
 public TranslateGizmo(EditorGame editorGame) : base(editorGame)
 {
     this._undoService = ViewContainer.Resolve <IUndoService>();
 }
Ejemplo n.º 13
0
 public AssetEditorControl()
 {
     this._assetService = ViewContainer.Resolve <IAssetService>();
     this.InitializeComponent();
 }