« Dynmap-Factions » : différence entre les versions
Aller à la navigation
Aller à la recherche
Page créée avec « {{Infobox Plugin | image = No_Logo.png | catégorie = Mapping | dev = mikeprimm | bukkit = dynmap-factions | dépendance = Dynmap, Factions | grade = Intendant |... » |
mAucun résumé des modifications |
||
Ligne 8 : | Ligne 8 : | ||
| status = installé | | status = installé | ||
|}} | |}} | ||
[[Fichier:Dynmap-Factions Aperçu.png|thumb|Aperçu d'un territoire claim sur [[Dynmap]].]] | |||
'''Dynmap-Factions''' permet d'ajouter simplement une aperçu des territoires revendiqués par les factions/guildes sur [[Dynmap]] en utilisant directement l'API de [[Factions]]. | '''Dynmap-Factions''' permet d'ajouter simplement une aperçu des territoires revendiqués par les factions/guildes sur [[Dynmap]] en utilisant directement l'API de [[Factions]]. |
Version du 13 février 2016 à 23:12
Dynmap-Factions | ||||
---|---|---|---|---|
![]() | ||||
Plugin | ||||
Catégorie | Mapping [edit] | |||
Développeur(s) | mikeprimm | |||
Bukkit | dynmap-factions | |||
Dépendance | Dynmap, Factions | |||
Nefald | ||||
Status | installé [edit] | |||
Grade requis | Intendant | |||
Article | ||||
Dernière révision | 13/02/2016 |

Dynmap-Factions permet d'ajouter simplement une aperçu des territoires revendiqués par les factions/guildes sur Dynmap en utilisant directement l'API de Factions.
Configuration
La mise à jour des territoires est automatiquement et est (configurable sur une période - par défaut toutes les 5 minutes (300 secondes)
# Dynmap-Factions configuration
update:
period: 300
layer:
name: Guildes
hidebydefault: false
layerprio: 2
minzoom: 0
infowindow: <div class="infowindow"><span style="font-size:120%;">%regionname%</span><br />Flags<br /><span style="font-weight:bold;">%flags%</span></div>
visibility-by-faction: true
regionstyle:
strokeColor: '#17D32A'
strokeOpacity: 0.8
strokeWeight: 3
fillColor: '#17D32A'
fillOpacity: 0.35
homeicon: redflag
boost: false
visibleregions: []
hiddenregions: []
custstyle:
SafeZone:
strokeColor: '#00B2FF'
fillColor: '#00B2FF'
boost: false
WarZone:
strokeColor: '#404040'
fillColor: '#404040'
boost: false
- update - The settings in this section control details of how and when updates from Factions are processed. The following settings are defined:
- period - This specifies the number of seconds between checks of the Factions configuration.
- infowindow - this setting controls the generation of the HTML within the popup window displayed with the region is clicked. Several substitution macros are supported, which will be resolved into appropriate data specific to the region being displayed:
%regionname%
- the tag of the faction%playerowners%
- the owner player of the faction%playermembers%
- the names of the players that are members of the faction%nation%
- the tag of the faction%flags%
- the various attribute flags for the region
- regionstyle - this is a map of attributes used for describing the coloring of the outline and fill for the regions being presented. The names of the Marker icons to be used for marking the town's home block (both if it is a nation's capital or if not) can be defined. The attributes include:
- strokeColor - this specified the color of the outline of the regions
- strokeOpacity - this specifies how opaque the outline is (0.0 = transparent, 1.0 = solid)
- strokeWeight - this specifies the thickness of the outline
- fillColor - this specifies the color used to fill the interior of the region
- fillOpacity - this specifies how opaque the fill color is (0.0 = transparent, 1.0 = solid)
- homeicon - Name of the Dynmap Marker Icon to be used for marking the factions home location. If not defined, no marker is shown. See https://github.com/webbukkit/dynmap/wiki/Using-markers for details on standard markers, and how to add custom markers.
- visibleregions - this optional parameter, if defined, is used to provide a list of town names to be shown (any not on the list will not be shown). If the visibleregions attribute is not defined (the default), all towns will be shown.
- hiddenregions - this optional parameter, if defined, is used to provide a list of town names to NOT be shown.
- custstyle - this optional parameter, if defined, allows the regionstyle attributes used for specific regions to be overridden. The sections under the custstyle correspond to the name of the region to be customized, and the attributes within that section are the style settings (strokeColor, strokeOpacity, strokeWeight, fillColor, fillOpacity, homeicon) that will be used in place of the defaults from the regionstyle setting.
- layer - This section controls display of the layer on the Dynmap maps, The attributes defined within the section include:
- label - Name of the layer (controls what is shown on the layer selector).
- hidebydefault - this optional parameter, if defined and set to true, changes the default visibility state for the map layer with the region information to be hidden. The layer can still be made visible with the layer control on the web client UI.
- layerprio - this optional parameter provides an ordering weight for the layer in the layer selection control, which orders from lowest to highest layerprio (and then alphabetically for equal priority layers). Default is 2.