Beispiel #1
0
        public static void Swap(int index, Aligned <Gfx2D> From, Aligned <Gfx2D> To)
        {
            Gfx2D g = From[index];

            From.RemoveAt(index);
            To.Add(g);
            Sort();
        }
Beispiel #2
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();
        }
Beispiel #3
0
 private static void AddCircle()
 {
     Cirles.Add(new Gfx2D("Circle", new Rectangle(0, 0, 40, 40)));
     Cirles.Align();
 }