2009-09-13, 03:50 AM
McBainUK:
In the SkinPluginConfig.xml, I know how to use the <xmltextsizeedit> function tp increase or decrease a numerical value in an XML file - as used originally for the Text Size, which I also hijacked for the 'TV Guide Rows' selection method.
Such as:
This function takes a starting value and then modifies it by +1, -1, etc. which come from the corresponding folder names under the Resources folder. (I know you know all that, you wrote the code, I just want to make sure we're on the same page)
What I want to do now is change certain values in an .xml file, but use absolute values rather than relative numeric values. For example, I want to be able to set a certain value in an XML file to True or False.
Now as I've been typing this, I had a look at the file 'EditableSkinItemsList.cs'. I see there is a function called <xmledit> which probably does what I want, but I see no example of it's use in SkinPluginConfig.xml. Can you confirm this function is in fact what I want, and give me a usage example?
What I ultimately wish to do is to write a replacement for the existing Settings screen in PVRX2. Sub said he is getting rid of this screen in 1.5, as he's decided he's never going to get around to implementing it the way he planned. There are a variety of user-interface related settings that would be useful to change from the Skin Plugin rather than have to go in to config.exe or hand edit in config.xml.
In the SkinPluginConfig.xml, I know how to use the <xmltextsizeedit> function tp increase or decrease a numerical value in an XML file - as used originally for the Text Size, which I also hijacked for the 'TV Guide Rows' selection method.
Such as:
Code:
<xmltextsizeedit>
<name>skin.xml</name>
<target>%SKINROOT%\TV Guide\skin.xml</target>
<node>/settings/TextStyles/TextStyle[@name='ListingStyle']/@size</node>
<default>11</default>
</xmltextsizeedit>
This function takes a starting value and then modifies it by +1, -1, etc. which come from the corresponding folder names under the Resources folder. (I know you know all that, you wrote the code, I just want to make sure we're on the same page)
What I want to do now is change certain values in an .xml file, but use absolute values rather than relative numeric values. For example, I want to be able to set a certain value in an XML file to True or False.
Now as I've been typing this, I had a look at the file 'EditableSkinItemsList.cs'. I see there is a function called <xmledit> which probably does what I want, but I see no example of it's use in SkinPluginConfig.xml. Can you confirm this function is in fact what I want, and give me a usage example?
What I ultimately wish to do is to write a replacement for the existing Settings screen in PVRX2. Sub said he is getting rid of this screen in 1.5, as he's decided he's never going to get around to implementing it the way he planned. There are a variety of user-interface related settings that would be useful to change from the Skin Plugin rather than have to go in to config.exe or hand edit in config.xml.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV