示例#1
0
 public void SelectionMode()
 {
     Clear();
     currAddedInfo  = null;
     tileRandomList = null;
     state          = MouseState.Selection;
 }
示例#2
0
 public void SetHeldInfo(MapleDrawableInfo newInfo)
 {
     Clear();
     if (newInfo.Image == null)
     {
         ((MapleExtractableInfo)newInfo).ParseImage();
     }
     currAddedInfo = newInfo;
     currAddedObj  = newInfo.CreateInstance(Board.SelectedLayer, Board, X + currAddedInfo.Origin.X - newInfo.Image.Width / 2, Y + currAddedInfo.Origin.Y - newInfo.Image.Height / 2, 50, false, true);
     Board.BoardItems.Add(currAddedObj, false);
     BindItem(currAddedObj, new Microsoft.Xna.Framework.Point(newInfo.Origin.X - newInfo.Image.Width / 2, newInfo.Origin.Y - newInfo.Image.Height / 2));
     state = MouseState.StaticObjectAdding;
 }
示例#3
0
        private int?team;  //for carnival

        public LifeInstance(MapleDrawableInfo baseInfo, string type, Board board, int x, int y, int rx0, int rx1, string limitedname, int?mobTime, MapleBool flip, MapleBool hide, int?info, int?team, bool beforeAdding)
            : base(board, x, y, -1, beforeAdding)
        {
            if (type != "m" && type != "n")
            {
                throw new NotSupportedException("Unknown life type @ LifeInstance..ctor");
            }
            this.limitedname = limitedname;
            this.type        = type;
            this.baseInfo    = baseInfo;
            this._rx0        = rx0;
            this._rx1        = rx1;
            this.mobTime     = mobTime;
            this.info        = info;
            this.team        = team;
            this.flip        = flip;
            if (flip == true)
            {
                X -= Width - 2 * Origin.X;
            }
        }
示例#4
0
 public void SetHeldInfo(MapleDrawableInfo newInfo)
 {
     Clear();
     if (newInfo.Image == null) ((MapleExtractableInfo)newInfo).ParseImage();
     currAddedInfo = newInfo;
     currAddedObj = newInfo.CreateInstance(Board.SelectedLayer, Board, X + currAddedInfo.Origin.X - newInfo.Image.Width / 2, Y + currAddedInfo.Origin.Y - newInfo.Image.Height / 2, 50, false, true);
     Board.BoardItems.Add(currAddedObj, false);
     BindItem(currAddedObj, new Microsoft.Xna.Framework.Point(newInfo.Origin.X - newInfo.Image.Width / 2, newInfo.Origin.Y - newInfo.Image.Height / 2));
     state = MouseState.StaticObjectAdding;
 }
示例#5
0
 public void SelectionMode()
 {
     Clear();
     currAddedInfo = null;
     tileRandomList = null;
     state = MouseState.Selection;
 }
示例#6
0
        private int? team; //for carnival

        public LifeInstance(MapleDrawableInfo baseInfo, string type, Board board, int x, int y, int rx0, int rx1, string limitedname, int? mobTime, MapleBool flip, MapleBool hide, int? info, int? team, bool beforeAdding)
            : base(board, x, y, -1, beforeAdding)
        {
            if (type != "m" && type != "n") throw new NotSupportedException("Unknown life type @ LifeInstance..ctor");
            this.limitedname = limitedname;
            this.type = type;
            this.baseInfo = baseInfo;
            this._rx0 = rx0;
            this._rx1 = rx1;
            this.mobTime = mobTime;
            this.info = info;
            this.team = team;
            this.flip = flip;
            if (flip == true)
                X -= Width - 2 * Origin.X;
        }
示例#7
0
 private void SetHeldInfo(MapleDrawableInfo info, ItemTypes editedTypes)
 {
     SetVisibleEditedTypes(editedTypes);
     multiBoard.SelectedBoard.Mouse.SetHeldInfo(info);
     multiBoard.Focus();
     multiBoard.RenderFrame();
 }