Exemple #1
0
 public LcMenuTile(Vector2 pos, int type)
 {
     this.pos = pos;
     this.type = type;
     setTex();
     bounds = new AABB(pos, tex.Bounds.Width,tex.Bounds.Height);
 }
 public LcSaveButton(Game1 game, Vector2 pos, LevelCreator lc)
 {
     this.pos = pos;
     this.game = game;
     this.lc = lc;
     bounds = new AABB(pos, 188, 71);
     checkTex();
 }
        int type; //0 is x, 1 is y

        #endregion Fields

        #region Constructors

        public LcGridModifier(Game1 game, Vector2 pos, LevelCreator lc, bool add, int type)
        {
            this.pos = pos;
            this.game = game;
            this.lc = lc;
            this.add = add;
            this.type = type;
            bounds = new AABB(pos, 30, 30);
            setTex();
        }
 public LcTextField(Game1 game, LevelCreator lc, Vector2 pos, string desc)
 {
     this.game = game;
     this.lc = lc;
     this.desc = desc;
     this.pos = pos;
     bounds = new AABB(pos, 300, 30);
     text = "";
     charMax = 16;
     blinkTime = 0.5f;
     blinkLine = "";
 }
        public LcTilePlace(Game1 game, Vector2 pos, Vector2 coord)
        {
            this.pos = pos;
            this.coord = coord;
            tex = LcAssets.back;
            bounds = new AABB(pos, 30, 30);

            type = 60;
            //type = Utilities.random.Next(60);
            setTex();
            highlighted = false;
            setHiTex();
            activeCol = true;
        }