예제 #1
0
 public void MouseMoveTile(MapEventInfo mei)
 {
     int tempTile = mei.getTileDropthrough(mei.current.tx, mei.current.ty);
     if (tempTile != lastTile)
     {
         if (mei.lb) { mei.ltile = tempTile; NotifyScroll(0); }
         if (mei.rb) { mei.rtile = tempTile; NotifyScroll(1); }
     }
     lastTile = tempTile;
 }
예제 #2
0
        public void MouseDown(MapEventInfo mei)
        {
            lastTile = mei.getTileDropthrough(mei.current.tx, mei.current.ty);

            if (mei.lb) { mei.ltile = lastTile; NotifyScroll(0); }
            if (mei.rb) { mei.rtile = lastTile; NotifyScroll(1); }
        }