Improve progress messages, make sure HDMaps that share render only render once
This commit is contained in:
parent
559f251d50
commit
a878ce7cd1
12 changed files with 124 additions and 21 deletions
|
|
@ -5,6 +5,7 @@ import java.awt.image.BufferedImage;
|
|||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
|
@ -358,6 +359,23 @@ public class KzedMap extends MapType {
|
|||
return "KzedMap";
|
||||
}
|
||||
|
||||
/* Get maps rendered concurrently with this map in this world */
|
||||
public List<MapType> getMapsSharingRender(DynmapWorld w) {
|
||||
return Collections.singletonList((MapType)this);
|
||||
}
|
||||
|
||||
/* Get names of maps rendered concurrently with this map type in this world */
|
||||
public List<String> getMapNamesSharingRender(DynmapWorld w) {
|
||||
ArrayList<String> lst = new ArrayList<String>();
|
||||
for(MapTileRenderer rend : renderers) {
|
||||
if(rend.isNightAndDayEnabled())
|
||||
lst.add(rend.getName() + "(night/day)");
|
||||
else
|
||||
lst.add(rend.getName());
|
||||
}
|
||||
return lst;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildClientConfiguration(JSONObject worldObject, DynmapWorld world) {
|
||||
for(MapTileRenderer renderer : renderers) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue