public CustomStatOverridesEditor(List <Species> species, CreatureCollection cc) { InitializeComponent(); overrideEdits = new StatBaseValuesEdit[Values.STATS_COUNT]; for (int s = 0; s < Values.STATS_COUNT; s++) { var se = new StatBaseValuesEdit() { StatName = Utils.statName(s, true) }; overrideEdits[s] = se; flowLayoutPanelOverrideEdits.Controls.Add(se); flowLayoutPanelOverrideEdits.SetFlowBreak(se, true); } this.cc = cc; this.species = species; UpdateList(); }
public CustomStatOverridesEditor(List <Species> species, CreatureCollection cc) { InitializeComponent(); overrideEdits = new StatBaseValuesEdit[Values.STATS_COUNT]; for (int s = 0; s < Values.STATS_COUNT; s++) { var se = new StatBaseValuesEdit(); se.SetStatNameByIndex(s); overrideEdits[s] = se; flowLayoutPanelOverrideEdits.Controls.Add(se); flowLayoutPanelOverrideEdits.SetFlowBreak(se, true); } this.cc = cc; this.species = species; throttlingTimer = new Timer { Interval = 200 }; throttlingTimer.Tick += ThrottlingTimer_Tick; UpdateList(species); }