2012-11-17, 22:25
I want to add Favourites Channels to our add-on, so that the user can define what TV channels the keys 1-9 will jump to.
At the moment I have
The final enum will have 50+ channels and there will be 10 settings, is there a better way than just repeating the same (very long) definition for each?
TIA
At the moment I have
Code:
<category label="Favourite Channels">
<setting id="fav1" label="Favourite 1" type="enum" values="BBC One | BBC Two | ITV 1 | Channel 4 | Five | ITV 1 +1 | Channel 4 +1 | Five +1 | BBC Three | BBC Four | ITV 2 | ITV 2 +1| ITV 3 | ITV 3 +1 | ITV 4 | ITV 4 +1 | E4 | E4 +1" default="0" />
<setting id="fav2" label="Favourite 2" type="enum" values="BBC One | BBC Two | ITV 1 | Channel 4 | Five | ITV 1 +1 | Channel 4 +1 | Five +1 | BBC Three | BBC Four | ITV 2 | ITV 2 +1| ITV 3 | ITV 3 +1 | ITV 4 | ITV 4 +1 | E4 | E4 +1" default="1" />
<setting id="fav3" label="Favourite 3" type="enum" values="BBC One | BBC Two | ITV 1 | Channel 4 | Five | ITV 1 +1 | Channel 4 +1 | Five +1 | BBC Three | BBC Four | ITV 2 | ITV 2 +1| ITV 3 | ITV 3 +1 | ITV 4 | ITV 4 +1 | E4 | E4 +1" default="2" />
</category>
The final enum will have 50+ channels and there will be 10 settings, is there a better way than just repeating the same (very long) definition for each?
TIA