public AnimationsViewModel(ISkeletonGameFiles skeletonGameFiles, ISkeletonGameProvider skeletonGameProvider, IEventAggregator eventAggregator, ILoggerFacade loggerFacade) : base(eventAggregator, loggerFacade) { _skeletonGameFiles = skeletonGameFiles; _skeletonGameProvider = skeletonGameProvider; Title = "Animations"; OpenDirectoryCommand = new DelegateCommand(() => OpenDirectory(_dmdPath.AbsolutePath)); OpenFileCommand = new DelegateCommand <string>(x => OpenDirectory(Path.Combine(_dmdPath.AbsolutePath, x))); }
public FontsViewModel(ISkeletonGameFiles skeletonGameFiles, ISkeletonGameProvider skeletonGameProvider, IEventAggregator eventAggregator, ILoggerFacade loggerFacade) : base(eventAggregator, loggerFacade) { _skeletonGameProvider = skeletonGameProvider; _skeletonGameFiles = skeletonGameFiles; Title = "Fonts"; OpenDirectoryCommand = new DelegateCommand(() => OpenDirectory(_fontPath.AbsolutePath)); }
public SkeletonGameProvider(ISkeletonGameSerializer skeletonGameSerializer, ISkeletonGameFiles skeletonGameFiles, IVpScriptExporter vpScriptExporter, ISkeletonGameExport skeletonGameExport, ILoggerFacade loggerFacade, IEventAggregator eventAggregator) { _skeletonGameSerializer = skeletonGameSerializer; _skeletonGameFiles = skeletonGameFiles; _vpScriptExporter = vpScriptExporter; _skeletonGameExport = skeletonGameExport; _loggerFacade = loggerFacade; _eventAggregator = eventAggregator; }
public SoundViewModel(ISkeletonGameFiles skeletonGameFiles, ISkeletonGameProvider skeletonGameProvider, IEventAggregator eventAggregator, ILoggerFacade loggerFacade) : base(eventAggregator, loggerFacade) { _skeletonGameFiles = skeletonGameFiles; _skeletonGameProvider = skeletonGameProvider; Title = "Sound"; OpenSoundCommand = new DelegateCommand <string>((s) => { Process.Start(s); }); OpenDirectoryCommand = new DelegateCommand(() => OpenDirectory(_audioPathFull.AbsolutePath)); }
public LampshowViewModel(ISkeletonGameFiles skeletonGameFiles, ISkeletonGameProvider skeletonGameProvider, IEventAggregator eventAggregator, ILoggerFacade loggerFacade) : base(eventAggregator, loggerFacade) { _skeletonGameFiles = skeletonGameFiles; _skeletonGameProvider = skeletonGameProvider; _lampshowEdit = new LampshowEdit(); Title = "Lampshows"; OpenDirectoryCommand = new DelegateCommand(() => OpenDirectory(_lampshowPath)); ReverseLampshowCommand = new DelegateCommand <string>((x) => { if (x != null) { OnReverseLampshow(new LampShow() { File = x }); } }); }
public AssetListViewModel(IRegionManager regionManager, IUnityContainer unityContainer, IEventAggregator eventAggregator, ISkeletonGameProvider skeletonGameProvider, ISkeletonGameFiles skeletonGameFiles, ILoggerFacade loggerFacade) : base(eventAggregator, loggerFacade) { Title = "Assets"; _regionManager = regionManager; _unityContainer = unityContainer; _skeletonGameProvider = skeletonGameProvider; _skeletonGameFiles = skeletonGameFiles; _eventAggregator.GetEvent <LoadYamlFilesChanged>().Subscribe(async x => await OnLoadYamlFilesChanged()); #region Commands CloseTabCommand = new DelegateCommand <object>(OnCloseTab); SaveCommand = new DelegateCommand(() => { OnSaveAssetLists(); }, () => AssetsFile == null ? false : true); SwitchViewCommand = new DelegateCommand <string>(OnSwitchView); #endregion //Set the main assets view _regionManager.RequestNavigate(Regions.AssetDetailRegion, "AssetDetailsView"); }
public SfxViewModel(ISkeletonGameFiles skeletonGameFiles, ISkeletonGameProvider skeletonGameProvider, IEventAggregator eventAggregator, ILoggerFacade loggerFacade) : base(skeletonGameFiles, skeletonGameProvider, eventAggregator, loggerFacade) { Title = "Sfx"; }