public FaceDetailsCreatorScreen(FaceDetailsCreatorState faceDetailsCreatorState) { LoadingWindow.EnableGlobalLoadingWindow(false); this._faceDetailsCreatorState = faceDetailsCreatorState; this._facegenLayer = new BodyGeneratorView(new ControlCharacterCreationStage(this.OnExit), GameTexts.FindText("str_done", null), new ControlCharacterCreationStage(this.OnExit), GameTexts.FindText("str_cancel", null), faceDetailsCreatorState.EditHero.CharacterObject, false, null); }
public static void Postfix(ref BodyGeneratorView __instance) { SpriteData spriteData = UIResourceManager.SpriteData; TwoDimensionEngineResourceContext resourceContext = UIResourceManager.ResourceContext; ResourceDepot uIResourceDepot = UIResourceManager.UIResourceDepot; clanCategory = spriteData.SpriteCategories["ui_clan"]; clanCategory.Load(resourceContext, uIResourceDepot); FacGenRecordVM facGenRecord = new FacGenRecordVM(__instance, GlobalDataProvider.Instance.FacGenRecordData()); GauntletMovie movie = __instance.GauntletLayer.LoadMovie("FacGenRecord", facGenRecord); //movie.BrushFactory.LoadBrushFile("FacGenRecord"); }
public FacGenRecordVM(BodyGeneratorView bodyGeneratorView, List <FacGenRecordData> data) { this._generatorView = bodyGeneratorView; this._data = data; if (null == this._genRecordItemVMs) { this._genRecordItemVMs = new MBBindingList <FacGenRecordItemVM>(); } else { this._genRecordItemVMs.Clear(); } if (null != this._data && this._data.Count > 0) { this._data.ForEach(obj => { this._genRecordItemVMs.Add(new FacGenRecordItemVM(obj, OnSelectedItem)); }); } }