public static SeasonHistoryTable Create(SeasonHistory data) { SeasonHistoryTable table = (SeasonHistoryTable)template.Instance(); table.Setup(data); return(table); }
private void Refresh() { Control container = GetNode <Control>("Seasons"); foreach (SeasonHistory season in Game.data.history.past) { container.AddChild(SeasonHistoryTable.Create(season)); container.AddChild(new HSeparator()); } container.AddChild(SeasonHistoryTable.Create(Game.data.history.now)); ScrollVertical = (int)GetVScrollbar().MaxValue; }