Пример #1
0
        public static void Remove(int index, Aligned <Gfx2D> tiles)
        {
            Gfx2D g = tiles[index];

            Codes.Remove(g);
            tiles.RemoveAt(index);
        }
Пример #2
0
        public static void Swap(int index, Aligned <Gfx2D> From, Aligned <Gfx2D> To)
        {
            Gfx2D g = From[index];

            From.RemoveAt(index);
            To.Add(g);
            Sort();
        }
Пример #3
0
 public static void Update()
 {
     if (StandAlone.FrameTimer % 30 < 15)
     {
         Gfx2D g = new Gfx2D("CURSOR1", Cursor.Pos, 1.0);
         g.Center = Cursor.Pos;
         Fader.Add(g, 30, Color.White * 0.2f);
     }
     if (StandAlone.FrameTimer % 30 >= 15)
     {
         Gfx2D g = new Gfx2D("CURSOR2", Cursor.Pos, 1.0);
         g.Center = Cursor.Pos;
         Fader.Add(g, 30, Color.White * 0.2f);
     }
 }
Пример #4
0
        public static void Add(String Code, Aligned <Gfx2D> tiles)
        {
            Gfx2D g = new Gfx2D(new Rectangle(0, 0, 50, 80));

            Codes.Add(g, Code);

            g.RegisterDrawAct(() =>
            {
                g.Draw(Color.White);
                if (g.ContainsCursor())
                {
                    g.Draw(Color.Blue);
                }
                StandAlone.DrawString(Code, g.Center - new REMOPoint(5, 5), Color.Red);
            });
            tiles.Add(g);
            tiles.Align();
        }
Пример #5
0
 public Centipede(Gfx2D head)
 {
     Head = head;
 }