Beispiel #1
0
        public void DrawFlags()
        {
            using (FastBitmap dst = game.LockBits()) {
                for (int i = table.CurrentIndex; i < maxIndex; i++)
                {
                    int        x = table.X, y = table.usedEntries[i].Y;
                    FastBitmap flag = GetFlag(table.usedEntries[i].Flag);
                    if (flag == null)
                    {
                        continue;
                    }

                    Rectangle rect = new Rectangle(x + 2, y + 3, 16, 11);
                    BitmapDrawer.Draw(flag, dst, rect);
                }
            }
        }
Beispiel #2
0
        public void DrawFlags()
        {
            using (FastBitmap dst = game.LockBits()) {
                for (int i = table.CurrentIndex; i < maxIndex; i++)
                {
                    TableEntry entry = table.Get(i);
                    FastBitmap flag  = GetFlag(entry.Flag);
                    if (flag == null)
                    {
                        continue;
                    }

                    int       x = table.X, y = entry.Y;
                    Rectangle rect = new Rectangle(x + 2, y + 3, 16, 11);
                    BitmapDrawer.Draw(flag, dst, rect);
                }
            }
        }