#Adding custom info/fields to Dynmap-Worldguard region info window 1.17.1
1 messages · Page 1 of 1 (latest)
Thank you! Please provide any errors you are experiencing and upload your configuration.txt. Someone from our <@&801354402010628138> team will respond to help shortly. As a general reminder, everyone on our support team is a volunteer, please be kind!
(optional) Please upload your configuration.txt to https://pastebin.org and send us the link. BE SURE TO REMOVE PASSWORDS
per region is doable using the dynmap-worldguard config, idk if there are commands for it
per user is as far as I know not really possible
Ok, do you have a example code?
To be more clear I'm trying to make a field like "Nation Type: Republic" or "Nation Type: %NationType%"
placeholders also don't work as far as I know, but don't know for sure
oh im stupid
update:
# Seconds between checks for Residence updates
period: 3
layer:
name: WorldGuard
# Make mobs layer hidden by default
hidebydefault: false
# ordering priority in layer menu (low goes before high - default is 0)
layerprio: 0
# (optional) set minimum zoom level before layer is visible (0 = defalt, always visible)
minzoom: 0
use3dregions: false
infowindow: <div class=\"infowindow\"><span style=\"font-size:120%;">%regionname%
(%parent%) - %priority%</span><br /> Owners <span style="font-weight:bold;">%playerowners%<br/>%groupowners%</span><br/>Members
<span style="font-weight:bold;">%playermembers%<br/>%groupmembers%</span><br/>Flags<br
/><span style="font-weight:bold;">%flags%</span></div>
regionstyle:
strokeColor: '#FF0000'
strokeOpacity: 0.8
strokeWeight: 3
fillColor: '#FF0000'
fillOpacity: 0.35
unownedStrokeColor: '#00FF00'
visibleregions: []
hiddenregions: []
custstyle:
customregion1:
strokeColor: '#00FF00'
town:
strokeColor: '#CC99C9'
fillColor: '#CC99C9'
ownerstyle:
kingoftheworld:
strokecolor: '#C0C0C0'
maxdepth: 16
updates-per-tick: 20
your answer lies in the infowindow
So I have to rewrite the HTML code in "infowindow:"?
I have done this before removing flags and changing Owner to Ruler. But I was under the impression that it is for all regions not per region.
it is, but the placeholder just takes the name of the region
But I can't add a custom placeholder?
idk, never tried custom placeholders, but I'd guess they just work
or maybe playerowners already is changed to ruler?
Do you know a resources that explains how to make custom placeholder?
no, sadly, my best guess is looking at the source code
So I would have to modify the source code of dynmap-worldguard?
no, idk how it interfaces with wg and if it accepts custom flags
So I could accomplish this with a custom flag in WG? I wasn't aware that WG could have custom flags.
changing owner to ruler is a custom flag right?
no, its a modification of the HTML text. It is set as "</span><br /> Owners <span style="font-weight:bold;">%playerowners%<br/>%groupowners%</span><br/>"
and changed to "</span><br /> Rulers <span style="font-weight:bold;">%playerowners%<br/>%groupowners%</span><br/>"
So I can make a bit of HTML code that displays "Nation Type" but the issue for me is how to set per region "Nation Type: %placeholder% (or flag or other type of string).
I also noticed on GitHub that it says "# Format for popup - substitute values for macros" above the Infowindow.
I'm not sure what this is referring to
that is referring to the ability to use placeholders
dynmap-wg doesn't support custom flags no, at least not the ones implemented by nerdFlags
So is there a way to add custom per region info to the info window or is it impossible? If there is a way please describe how to do it or share a resource about how to do it.