@Override
final protected void render() {
//System.out.println("render Viewport");
justify();
Region r;
if ( (r = Local.Regions.get(Local.Self.tile.rid)) != null && r.type == 1 ) {
if (scaleshade > 0.50f) {
scaleshade -= 0.01f;
}
} else {
scaleshade = 1;
}
// reposition the building label
if ( buildingLabel != null ) {
if ( ! buildingLabel.isActive() ) {
buildingLabel = null;
} else {
r = Local.Regions.get(Local.Self.tile.rid);
if ( r != null ) {
buildingLabel.visibile = true;
buildingLabel.setX(r.getOnscreenX());
buildingLabel.setY(r.getOnscreenY() - buildingLabel.getFont().getMetrics().Height);
}
}
}
for ( Tile t : Local.TilesByPos.values() ) {