Example #1
0
 public void MouseClick(MapEventInfo mei)
 {
     oldvalue = mei.getTile(mei.start.tx, mei.start.ty);
     newvalue = mei.tile;
     if (oldvalue != newvalue)
     {
         mei.opManager.beginGroup("Map: FloodFill");
         PrimitiveDrawer.FloodFill(mei.start.tx, mei.start.ty, new PrimitiveDrawer.CheckCallback(ccb), new PrimitiveDrawer.Callback(cb), mei);
         mei.opManager.endGroup();
     }
 }
Example #2
0
        public void MouseDown(MapEventInfo mei)
        {
            lastTile = mei.getTile(mei.current.tx, mei.current.ty);

            if (mei.lb)
            {
                mei.ltile = lastTile;
            }
            if (mei.rb)
            {
                mei.rtile = lastTile;
            }
        }
Example #3
0
        public void MouseMoveTile(MapEventInfo mei)
        {
            int tempTile = mei.getTile(mei.current.tx, mei.current.ty);

            if (tempTile != lastTile)
            {
                if (mei.lb)
                {
                    mei.ltile = tempTile;
                }
                if (mei.rb)
                {
                    mei.rtile = tempTile;
                }
            }
            lastTile = tempTile;
        }
Example #4
0
 public void MouseClick(MapEventInfo mei)
 {
     oldvalue = mei.getTile(mei.start.tx, mei.start.ty);
     newvalue = mei.tile;
     if (oldvalue != newvalue)
     {
         mei.opManager.beginGroup("Map: FloodFill");
         PrimitiveDrawer.FloodFill(mei.start.tx, mei.start.ty, new PrimitiveDrawer.CheckCallback(ccb), new PrimitiveDrawer.Callback(cb), mei);
         mei.opManager.endGroup();
     }
 }
Example #5
0
 public void MouseMoveTile(MapEventInfo mei)
 {
     int tempTile = mei.getTile(mei.current.tx, mei.current.ty);
     if (tempTile != lastTile) {
         if (mei.lb) mei.ltile = tempTile;
         if (mei.rb) mei.rtile = tempTile;
     }
     lastTile = tempTile;
 }
Example #6
0
        public void MouseDown(MapEventInfo mei)
        {
            lastTile = mei.getTile(mei.current.tx, mei.current.ty);

            if (mei.lb) mei.ltile = lastTile;
            if (mei.rb) mei.rtile = lastTile;
        }