The Main Idea was to show Paths or Railtracks on the Dynmap, as a small colored Line.
If you track the whole trail network for your server, then you can easily navigate through that network via the Dynmap to arrive quickly at your destination.
5 Elements, which you should know, before reading the following...
Element
Function
Style
Gives other elements a color, opacity and width.
Layer
Enables/disables contained elements on the Dynmap.
Path
Represents a line on the Dynmap.
Square
Represents an area on the Dynmap.
Link
Connects different paths and squares.
Features
Track your paths and squares, to display them on the Dynmap.
Create connections between paths and squares.
Color you paths, squares and links. Also set an opacity and width for them.
Sort your elements in different layers.
Many options for elements to display, for a better overview:
Name the elements.
Set, where a path comes from and where it goes to.
Display a list, with which Links the Path is connected, in chronological order.
Create elements with an easy-to-use setup:
Just start the setup.
The setup will request you, to type in the specific values.
The setup will also explain you, which effect the options have.
The setup will tell you, which values are valid.
Edit elements with an easy-to-use editor:
This works in the same way, as setups do. ;-)
Integrated Intro, which helps you understanding DynTrack:
The Intro will start automatically, after a while.
The Intro will NOT start, if you already have a path or a square.
If the Intro annoyes you anyway, then set your permission "dyntrack.info.intro.noauto" to "true"!
Commands & Permissions
There are only a few commands, to keep it simple. :)
For the color you ofc don't have to use random numbers. It's just easy math to get the color :P
Javadoc for Color(int rgb) (which I think you use, but can't say because I don't have your source code) says:
"Creates an opaque sRGB color with the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7."
Example:
First you need to get the hex code of the color you want to use (e.g. from http://www.color-hex.com/color-wheel/ ). Let's use a dark purple color: #981b79
Now split this up in 3 groups with 2 digits each:
98 1b 79
Convert all three numbers to binary representation (for example using the windows calculator):
10011000 11011 1111001
Now pad the three numbers to be all 8 bits long (leading zeros):
10011000 00011011 01111001
Now concatenate the three numbers.
100110000001101101111001
... and convert it to decimal (again windows calculator is your friend :P) and you'll get the color number you have to use for DynTrack :)
9968505 <<< That's the result for our dark purple color.
Hope I could help :)
And of course thanks for your great plugin. Now people can see the strange railroads they have built :D
Edit: Maybe you could include this calculation into DynTrack so people can use the "common" hex color representation (which is widely used on the web, so a lot more people should know how to use it).
Great Idea! This is the last element I'm missing in DynMaps after the support for showing mobs, WorldGuard- and WorldBorder-areas, spawnbeds and markers.
Please add permissions and different colors for different lines soon!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
For the color you ofc don't have to use random numbers. It's just easy math to get the color :P
Javadoc for Color(int rgb) (which I think you use, but can't say because I don't have your source code) says:
"Creates an opaque sRGB color with the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7."
Example:
First you need to get the hex code of the color you want to use (e.g. from http://www.color-hex.com/color-wheel/ ). Let's use a dark purple color: #981b79
Now split this up in 3 groups with 2 digits each:
98 1b 79
Convert all three numbers to binary representation (for example using the windows calculator):
10011000 11011 1111001
Now pad the three numbers to be all 8 bits long (leading zeros):
10011000 00011011 01111001
Now concatenate the three numbers.
100110000001101101111001
... and convert it to decimal (again windows calculator is your friend :P) and you'll get the color number you have to use for DynTrack :)
9968505 <<< That's the result for our dark purple color.
Hope I could help :)
And of course thanks for your great plugin. Now people can see the strange railroads they have built :D
Edit: Maybe you could include this calculation into DynTrack so people can use the "common" hex color representation (which is widely used on the web, so a lot more people should know how to use it).
@Avalario
You can now choose PathColors via PathType ;-)
Great Idea! This is the last element I'm missing in DynMaps after the support for showing mobs, WorldGuard- and WorldBorder-areas, spawnbeds and markers. Please add permissions and different colors for different lines soon!