PDA

View Full Version : The <imagesettings> tag



ronnke
February 4th, 2017, 15:32
Are there any undocumented elements of the <imagesettings> tag?



<imagesettings >
<shortcut >
<icon > ... </icon>
<iconpublic > ... </iconpublic>
<hotspot > ... </hotspot>
</shortcut>
</imagesettings>


I have been able to find <pointer>, but I want to know if there are any more. It would be great if something like the following was available:



<imagesettings >
<shortcut >
<icon > ... </icon>
<iconpublic > ... </iconpublic>
<hotspot > ... </hotspot>
</shortcut>


<default>
<gridtype> ... </gridtype>
<snap> ... </snap>
<snapsquare> ... </snapsquare>
<snaphex> ... </snaphex>
</default>

</imagesettings>


I know these values can be set via the <imagecontrol> tag, but the ability to override the default values would be useful in defining ruleset defaults without having to modify the campaign/record_image.xml.

Moon Wizard
February 4th, 2017, 18:31
Currently, there is only shortcut.icon, shortcut.iconpublic, shortcut.hotspot and pointer.defaultconeangle

JPG

Varsuuk
July 8th, 2020, 08:19
Old one, sorry - but I see when searched to find how this is used that there were two defined values in the rulesets I had: "5E" and "30", I presume 30 = 30degrees. What is the value for 5E and why was it chosen as a string? Is there some string resource where 5E translates to a number?

Varsuuk
July 8th, 2020, 08:43
AHA, a little more reading on the time-machine subject and I see Moon answered this (it didn't impact anything, I was just curious)




The default cone angles can be adjusted per ruleset. Valid values are (180, 120, 90, 60, 45, 30, 5E). The 5E version is equal width/distance (~53 degrees).

<imagesettings>
<pointer defaultconeangle="30" />
</imagesettings>
If you want more than one cone, then you'll still need to write the Lua code.

Regards,
JPG