Improves the default dynmap info popup

This commit is contained in:
Kristian Knarvik 2024-05-14 15:22:11 +02:00
parent 0bcecba156
commit 4ad841c867
2 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ import java.util.Set;
public class FactionsUpdate implements Runnable {
private static final String DEF_INFO_WINDOW = "<div class=\"infoWindow\"><span style=\"font-size:120%;\">" +
"%regionName%</span><br/>Description: <span style=\"font-weight:bold;\">%description%</span><br/>Leader: " +
"%regionName%</span><br/><span style=\"font-weight:bold;\">%description%</span><br/><br/>Leader: " +
"<span style=\"font-weight:bold;\">%playerOwners%</span><br/>Members: <span style=\"font-weight:bold;\">" +
"%playerMembers%</span><br />Flags<br /><span style=\"font-weight:bold;\">%flags%</span></div>";
"%playerMembers%</span><br/><br/>Flags<br/><span style=\"font-weight:bold;\">%flags%</span></div>";
private final String infoWindow;
private final DynmapFactionsPlugin dynmapFactionsPlugin;
public boolean runonce;

View File

@ -14,7 +14,7 @@ layer:
minZoom: 0
# Format for popup - substitute values for macros
infoWindow: '<div class="infoWindow"><span style="font-size:120%;">%regionName%</span><br/>Description: <span style="font-weight:bold;">%description%</span><br/>Leader: <span style="font-weight:bold;">%playerOwners%</span><br/>Members: <span style="font-weight:bold;">%playerMembers%</span><br />Flags<br /><span style="font-weight:bold;">%flags%</span></div>'
infoWindow: '<div class="infoWindow"><span style="font-size:120%;">%regionName%</span><br/><span style="font-weight:bold;">%description%</span><br/><br/>Leader: <span style="font-weight:bold;">%playerOwners%</span><br/>Members: <span style="font-weight:bold;">%playerMembers%</span><br/><br/>Flags<br/><span style="font-weight:bold;">%flags%</span></div>'
# Allow players in faction to see one another on dynmap (only relevant if dynmap has 'player-info-protected' enabled)
visibilityByFaction: true