Foen
March 15th, 2009, 10:21
This extension (posted over at the Wiki) allows maps in reference modules to have hotlinks between them. It differs from the standard image windows by limiting other user interaction (such as placing tokens) and making the hotspots respond to mouse hovers (instead of having to press CTRL).
The atlas entries look like:
<map-001>
<librarylink type="windowreference">
<class>referencemap</class>
<recordname>..</recordname>
</librarylink>
<image type="image">
<bitmap>maps/World Map.png</bitmap>
</image>
<hotspots>
<id-00001>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-002@Atlas</recordname>
<name type="string">Country of Mehwar</name>
<highlight type="string">squarehighlight</highlight>
<position>
<left type="number">761</left>
<top type="number">331</top>
</position>
<size>
<width type="number">115</width>
<height type="number">89</height>
</size>
</id-00001>
</hotspots>
<name type="string">World Map</name>
</map-001>
<map-002>
<librarylink type="windowreference">
<class>referencemap</class>
<recordname>..</recordname>
</librarylink>
<image type="image">
<bitmap>maps/Mehwar Political.jpg</bitmap>
</image>
<hotspots>
<id-00001>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-004@Atlas</recordname>
<name type="string">Mathana Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">563</left>
<top type="number">274</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00001>
<id-00002>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-005@Atlas</recordname>
<name type="string">Jihana Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">303</left>
<top type="number">274</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00002>
<id-00003>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-003@Atlas</recordname>
<name type="string">Rhavina Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">0</left>
<top type="number">-2</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00003>
</hotspots>
<name type="string">Country of Mehwar (Political)</name>
</map-002>
The thumbnails show a world map with a square hotspot for the country, then the country map (having clicked the hotspot on the world map) showing one of three regional hotspots using a hex frame (Rhavina Province, top left), and finally the regional map.
Foen
The atlas entries look like:
<map-001>
<librarylink type="windowreference">
<class>referencemap</class>
<recordname>..</recordname>
</librarylink>
<image type="image">
<bitmap>maps/World Map.png</bitmap>
</image>
<hotspots>
<id-00001>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-002@Atlas</recordname>
<name type="string">Country of Mehwar</name>
<highlight type="string">squarehighlight</highlight>
<position>
<left type="number">761</left>
<top type="number">331</top>
</position>
<size>
<width type="number">115</width>
<height type="number">89</height>
</size>
</id-00001>
</hotspots>
<name type="string">World Map</name>
</map-001>
<map-002>
<librarylink type="windowreference">
<class>referencemap</class>
<recordname>..</recordname>
</librarylink>
<image type="image">
<bitmap>maps/Mehwar Political.jpg</bitmap>
</image>
<hotspots>
<id-00001>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-004@Atlas</recordname>
<name type="string">Mathana Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">563</left>
<top type="number">274</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00001>
<id-00002>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-005@Atlas</recordname>
<name type="string">Jihana Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">303</left>
<top type="number">274</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00002>
<id-00003>
<class type="string">referencemap</class>
<recordname type="string">library.reference-001.entries.map-003@Atlas</recordname>
<name type="string">Rhavina Province</name>
<highlight type="string">hexhighlight</highlight>
<position>
<left type="number">0</left>
<top type="number">-2</top>
</position>
<size>
<width type="number">317</width>
<height type="number">201</height>
</size>
</id-00003>
</hotspots>
<name type="string">Country of Mehwar (Political)</name>
</map-002>
The thumbnails show a world map with a square hotspot for the country, then the country map (having clicked the hotspot on the world map) showing one of three regional hotspots using a hex frame (Rhavina Province, top left), and finally the regional map.
Foen