Exemple #1
0
    public static SeasonHistoryTable Create(SeasonHistory data)
    {
        SeasonHistoryTable table = (SeasonHistoryTable)template.Instance();

        table.Setup(data);
        return(table);
    }
Exemple #2
0
        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;
        }