Much thanks to Oli, who gave my good advice in improving the user interface of the Interactive Map. The result is this new version.
- improved user interface / better integration in the existing interface
- improved structure in js-scripts so options like greyOut can be set from outside the interface
- changed structure in php-scripts, so they can be easily extended for variant specific problems like other scripts as well (e.g. you can use maps by different variants etc. for the Interactive Map)
- 'IA_mapData.map' is now placed inside the variant's cache folder as it is most probably generated by the scripts and not handmade
All files were changed and have to be replaced by the new versions!
The user interface is now integrated into the website. It is clearly separated from the DropDownMenu-Interface as the user has to decide via tabs which interface should be used. Some buttons like the ones for the map history are removed for the new interface as they do not work anyway with the interface.
The integration into the DropDownMenu-Interface:
Bildschirmfoto 2013-11-28 um 16.53.31.png [ 111.63 KiB | Viewed 10026 times ]
The new user interface (with GreyOut enabled):
Bildschirmfoto 2013-11-28 um 16.54.30.png [ 136.21 KiB | Viewed 10026 times ]
Information about the second and the third change can be found in 'README.txt'.
As I changed the structure of the php-scripts, making it object orientated and so easily to extend, I started a new series of prepared variants. The old versions are still compatible with the new version of the Interactive Map, but I improved some things, mainly concerning the used map.
All the prepared Classic-Variants will use the 'IA_smallmap.png' of the Classic-Variant if they don't use a slightly different map so there is no need to place a png-file in every variant.
I played around a little bit with 'Duo' as it has no territories with land- AND sea-parts. I colored all sea-territories of 'smallmap.png', as well, allowing the InteractiveMap to use the basic map instead of an extra-map. For this I had to extend 'drawmap' in the variant's 'drawMap.php' so it colors every sea territory sea-blue when the drawmap-object is constructed. If you do not like the change, you can simply use the original map instead, rename the new map and change 'drawMap.php' and 'interactiveMap.php' to use the correct maps with the correct functions.
For all changes, please, study the change logs I attached to each variant in the variant-package.
The 25 variants of the first variant-package are:
(top-25 of vdip's variant-ranking according to the rating (players*gamesPlayed)
The other variants will follow later!
The needed files for the Interactive Map and the variant-package with the first 25 adjusted variants can be downloaded here:
interactiveMap.zip [252.03 KiB]
Downloaded 542 times