Update to 1.8.2, add 'boost' style attribute to enable resolution boosting

This commit is contained in:
Mike Primm
2013-05-16 23:59:49 -05:00
parent 0e509bdd96
commit 2e0f40d059
4 changed files with 11 additions and 27 deletions

View File

@ -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) {

View File

@ -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