public static void Swap(int index, Aligned <Gfx2D> From, Aligned <Gfx2D> To) { Gfx2D g = From[index]; From.RemoveAt(index); To.Add(g); Sort(); }
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(); }
private static void AddCircle() { Cirles.Add(new Gfx2D("Circle", new Rectangle(0, 0, 40, 40))); Cirles.Align(); }