Update to 1.8.2, add 'boost' style attribute to enable resolution boosting
This commit is contained in:
@ -83,6 +83,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
||||
double fillopacity;
|
||||
String homemarker;
|
||||
MarkerIcon homeicon;
|
||||
boolean boost;
|
||||
|
||||
AreaStyle(FileConfiguration cfg, String path, AreaStyle def) {
|
||||
strokecolor = cfg.getString(path+".strokeColor", def.strokecolor);
|
||||
@ -98,6 +99,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
||||
homeicon = markerapi.getMarkerIcon("blueicon");
|
||||
}
|
||||
}
|
||||
boost = cfg.getBoolean(path+".boost", def.boost);
|
||||
}
|
||||
|
||||
AreaStyle(FileConfiguration cfg, String path) {
|
||||
@ -114,6 +116,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
||||
homeicon = markerapi.getMarkerIcon("blueicon");
|
||||
}
|
||||
}
|
||||
boost = cfg.getBoolean(path+".boost", false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -259,6 +262,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
||||
}
|
||||
m.setLineStyle(as.strokeweight, as.strokeopacity, sc);
|
||||
m.setFillStyle(as.fillopacity, fc);
|
||||
m.setBoostFlag(as.boost);
|
||||
}
|
||||
|
||||
private MarkerIcon getMarkerIcon(String factname, Faction fact) {
|
||||
|
@ -26,6 +26,7 @@ regionstyle:
|
||||
fillColor: "#FF0000"
|
||||
fillOpacity: 0.35
|
||||
homeicon: "redflag"
|
||||
boost: false
|
||||
|
||||
# Optional setting to limit which regions to show, by name - if commented out, all regions are shown
|
||||
# To show all regions on a given world, add 'world:<worldname>' to the list
|
||||
@ -40,6 +41,9 @@ custstyle:
|
||||
SafeZone:
|
||||
strokeColor: "#0000FF"
|
||||
fillColor: "#0000FF"
|
||||
boost: false
|
||||
WarZone:
|
||||
strokeColor: "#404040"
|
||||
fillColor: "#404040"
|
||||
boost: false
|
||||
|
Reference in New Issue
Block a user