//Activate VM and Movie void IGameStateListener.OnActivate() { base.OnActivate(); //Template this._gauntletLayer = new GauntletLayer(1, "GauntletLayer"); this._gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All); this._gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericCampaignPanelsGameKeyCategory")); this._gauntletLayer.IsFocusLayer = true; ScreenManager.TrySetFocus((ScreenLayer)this._gauntletLayer); this.AddLayer((ScreenLayer)this._gauntletLayer); //DataSource and Movie | Change Movie!!!! this._dataSource = new WorkerOverviewVM(this._customState.Worker); this._gauntletLayer.LoadMovie("ClanScreen", this._dataSource); }
void IGameStateListener.OnFinalize() { this._dataSource = (WorkerOverviewVM)null; this._gauntletLayer = (GauntletLayer)null; }