public void AddCountGrid <T>(IReadOnlyGrid <List <T> > grid)
        {
            var uiGrid = new PullUiGrid((uint)grid.Columns, (uint)grid.Rows
                                        , new Vector2f(0, 0), (Vector2f)window.Size, style.VisualLevel[currentColorId], font
                                        , (col, row) => GetCellString(grid, col, row));

            drawables.Add(uiGrid);

            ++currentColorId;
            currentColorId %= style.VisualLevel.Length;
        }
Exemple #2
0
        public void AddCountGrid(IReadOnlyList <object>[,] grid)
        {
            var uiGrid = new PullUiGrid((uint)grid.GetLength(0), (uint)grid.GetLength(1)
                                        , new Vector2f(0, 0), (Vector2f)window.Size, colors[currentColorId], font
                                        , (col, row) => GetCellString(grid, col, row));

            drawables.Add(uiGrid);

            ++currentColorId;
            currentColorId = currentColorId % colors.Length;
        }