Esempio n. 1
0
        public void EditorUI()
        {
            tileOfChoice = new Tile("Floor", new Point(2, 0), new Vector2(0, 0));
            tileArsenal = new TileArsenal(new Vector2(0, 0), tileSheet, tileSize);

            texts.Add(new Text("SegoeUIMono", "Layer ", Color.White, new Vector2(10, 370)));
            InputText = new Text("SegoeUIMono", "|", Color.White, new Vector2(200, 10));
            saveButton = new Button("Save", new Vector2(200, 40), "SAVE");
            loadButton = new Button("Save", new Vector2(200 + saveButton.Width, 40), "LOAD");
        }
Esempio n. 2
0
 public Menu(bool _visible)
     : base(_visible)
 {
     game = new Text("AndyRegular", "Press 1 to play game", Color.White, new Vector2(100, 100));
     edit = new Text("AndyRegular", "Press 2 to start editor", Color.White, new Vector2(100, 150));
     quit = new Text("AndyRegular", "Press 3 to quit game", Color.White, new Vector2(100, 200));
     choice.Add(game);
     choice.Add(edit);
     choice.Add(quit);
 }
Esempio n. 3
0
 public Button(string textureName, Vector2 position, string text)
     : base(textureName, position)
 {
     name = new Text("SegoeUIMono", text, Color.White, new Vector2(Pos.X/* + Width / 4*/, Pos.Y/* + Height / 4*/));
 }