public void Update(DexData dd) { dexData = dd; STRDots.SetStats(dexData.Attributes.GetStatByTag("Strength"), false); DEXDots.SetStats(dexData.Attributes.GetStatByTag("Dexterity"), false); VITDots.SetStats(dexData.Attributes.GetStatByTag("Vitality"), false); SPEDots.SetStats(dexData.Attributes.GetStatByTag("Special"), false); INSDots.SetStats(dexData.Attributes.GetStatByTag("Insight"), false); ImageDisplay.Source = PokemonUtils.GetPkmnImage(dexData.ImagePath); }
void OnDexChanged(object sender, EventArgs e) { dd = dataManager.ActiveDex; abilities = new List <AbilityData>(); foreach (string s in dd.Abilities) { AbilityData a = DataSerializer.LoadAbilityData(s); if (a != null) { abilities.Add(a); } } Update(); }
void OnDexChanged(object sender, EventArgs e) { dexData = dataManager.ActiveDex; Update(dexData); }