コード例 #1
0
ファイル: LcMenuTile.cs プロジェクト: Thinny-Hendrix/MoonCow
 public LcMenuTile(Vector2 pos, int type)
 {
     this.pos = pos;
     this.type = type;
     setTex();
     bounds = new AABB(pos, tex.Bounds.Width,tex.Bounds.Height);
 }
コード例 #2
0
 public LcSaveButton(Game1 game, Vector2 pos, LevelCreator lc)
 {
     this.pos = pos;
     this.game = game;
     this.lc = lc;
     bounds = new AABB(pos, 188, 71);
     checkTex();
 }
コード例 #3
0
        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();
        }
コード例 #4
0
ファイル: LcTextField.cs プロジェクト: Thinny-Hendrix/MoonCow
 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 = "";
 }
コード例 #5
0
ファイル: LcTilePlace.cs プロジェクト: Thinny-Hendrix/MoonCow
        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;
        }