2023-01-17, 14:22
I have the following in "resources/skins/default/1080i/myaddon.xml":
I would like "800" and "120" to be random values within a certain range, e.g. 750-850 and 100-150 respectively. I would like the random value to be set each time the XML contents are drawn, and then again only when it is loaded again.
I see that control tags may contain some builtin conditional functions like String.IsEqual, etc., but I haven't found a way to return random integers.
How can I achieve this?
xml:
<control type="group">
<orientation>vertical</orientation>
<top>800</top>
<right>120</right>
<control type="grouplist">
...
</control>
I would like "800" and "120" to be random values within a certain range, e.g. 750-850 and 100-150 respectively. I would like the random value to be set each time the XML contents are drawn, and then again only when it is loaded again.
I see that control tags may contain some builtin conditional functions like String.IsEqual, etc., but I haven't found a way to return random integers.
How can I achieve this?