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(); } }
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; } }
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; }
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; }
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; }