コード例 #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
ファイル: MapleInstance.cs プロジェクト: xnum/hasuite
        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
ファイル: Mouse.cs プロジェクト: hanistory/hasuite
 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
ファイル: Mouse.cs プロジェクト: hanistory/hasuite
 public void SelectionMode()
 {
     Clear();
     currAddedInfo = null;
     tileRandomList = null;
     state = MouseState.Selection;
 }
コード例 #6
0
ファイル: MapleInstance.cs プロジェクト: ilvmoney/hasuite-new
        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
ファイル: Editor.cs プロジェクト: ilvmoney/hasuite-new
 private void SetHeldInfo(MapleDrawableInfo info, ItemTypes editedTypes)
 {
     SetVisibleEditedTypes(editedTypes);
     multiBoard.SelectedBoard.Mouse.SetHeldInfo(info);
     multiBoard.Focus();
     multiBoard.RenderFrame();
 }