OK, I have it looking right(ish) for the NextPVR backend but pressing the Cancel or OK buttons does nothing and I can't get the plot to populate.
Code is attached. If anyone could have a look at it and let me know what i'm doing wrong then that would be appreciated.
Code:
<window>
<defaultcontrol always="true">21</defaultcontrol>
<include>transition_Dialog</include>
<coordinates>
<system>1</system>
<posx>240</posx>
<posy>100</posy>
</coordinates>
<controls>
<!--window size-->
<control type="image">
<width>800</width>
<height>500</height>
<include>dialog_Window</include>
</control>
<!--window header-->
<control type="label">
<description>header label</description>
<width>720</width>
<label>$ADDON[pvr.nextpvr 30100]</label>
<include>dialog_Windowtitle</include>
</control>
<!--program title-->
<control type="label" description="program title" id = "20">
<posx>40</posx>
<posy>60</posy>
<width>720</width>
<height>30</height>
<label>$LOCALIZE[369]</label>
<include>dialog_Text</include>
<align>left</align>
<aligny>center</aligny>
</control>
<!--plot-->
<control type="textbox" id="400">
<posx>40</posx>
<posy>100</posy>
<width>720</width>
<height>100</height>
<label>$INFO[ListItem.Plot]</label>
<include>dialog_Text</include>
</control>
<!--menu-->
<!--recording type-->
<control type="spincontrolex" id="21">
<description>recording type</description>
<posx>40</posx>
<posy>200</posy>
<width>800</width>
<include>dialog_ControlCommons</include>
<include>dialog_Spin</include>
<label>$ADDON[pvr.nextpvr 30120]</label>
<onright>21</onright>
<onleft>21</onleft>
<onup>28</onup>
<ondown>25</ondown>
</control>
<!--pre padding-->
<control type="spincontrolex" id="25">
<description>pre padding</description>
<posx>40</posx>
<posy>245</posy>
<width>800</width>
<include>dialog_ControlCommons</include>
<include>dialog_Spin</include>
<label>$ADDON[pvr.nextpvr 30132]</label>
<onright>23</onright>
<onleft>23</onleft>
<onup>21</onup>
<ondown>26</ondown>
</control>
<!--post padding-->
<control type="spincontrolex" id="26">
<description>post padding</description>
<posx>40</posx>
<posy>290</posy>
<width>800</width>
<include>dialog_ControlCommons</include>
<include>dialog_Spin</include>
<label>$ADDON[pvr.nextpvr 30133]</label>
<onright>23</onright>
<onleft>23</onleft>
<onup>25</onup>
<ondown>23</ondown>
</control>
<!--keep count-->
<control type="spincontrolex" id="23">
<description>keep count</description>
<posx>40</posx>
<posy>335</posy>
<width>800</width>
<include>dialog_ControlCommons</include>
<include>dialog_Spin</include>
<label>$ADDON[pvr.nextpvr 30130]</label>
<onright>23</onright>
<onleft>23</onleft>
<onup>26</onup>
<ondown>27</ondown>
</control>
<!--recording dir-->
<control type="spincontrolex" id="27">
<description>recording directory</description>
<posx>40</posx>
<posy>380</posy>
<width>800</width>
<include>dialog_ControlCommons</include>
<include>dialog_Spin</include>
<label>$ADDON[pvr.nextpvr 30134]</label>
<onright>23</onright>
<onleft>23</onleft>
<onup>23</onup>
<ondown>28</ondown>
</control>
<!--buttons-->
<control type="group" id="9001">
<posx>275</posx>
<posy>435</posy>
<!--OK button-->
<control type="button" id="28">
<label>$LOCALIZE[186]</label>
<onleft>29</onleft>
<onright>29</onright>
<onup>27</onup>
<ondown>21</ondown>
<include>dialog_WindowButton</include>
</control>
<!--cancel button-->
<control type="button" id="29">
<left>130</left>
<label>$LOCALIZE[222]</label>
<onleft>28</onleft>
<onright>28</onright>
<onup>27</onup>
<ondown>21</ondown>
<include>dialog_WindowButton</include>
</control>
</control>
</controls>
</window>
Oh, for what it's worth, the WMC and NextPVR backends require different RecordPrefs.xml files. This is just for the NextPVR backend. I haven't looked at the WMC one but it shouldn't be too different except the spinners won't point back to the same things.