(2015-11-30, 17:11)ronie Wrote: (2015-11-30, 16:13)Watts Wrote: In my case i just want to modify a certain subtitle script
has the script been updated to the current kodi subtitle system?
if not, you'll have to start by fixing the python code of the script.
as for DialogSubtitles.xml, you could copy the one included in Confluence to the droid skin and take it from there.
the required controls in the dialog are explained here:http://kodi.wiki/view/List_of_Built_In_C...titles.xml
edit:
and modify the subtitles button in the video osd to use:
Code:
<onclick>ActivateWindow(SubtitleSearch)</onclick>
Hi there,
Thank you very much for pointing me into the right direction, i will try and get it all to work with the tips you gave me!
And i will also update the thread with my progress...
Cheers,
Watts.
EDIT
Got the SubtitlesDialog.xml to work and the button is working... But the subtitles services are giving errors (all of them).
This is the xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
<allowoverlay>no</allowoverlay>
<include>PopUpEffect</include>
<onunload>ClearProperty(SubSettings,Home)</onunload>
<controls>
<control type="group" id="250">
<control type="group">
<posx>320</posx>
<posy>180</posy>
<animation type="Conditional" condition="!IsEmpty(Window(Home).Property(SubSettings)) | Control.hasFocus(150)">
<effect type="slide" start="0" end="240" easing="out" tween="cubic" time="200" />
</animation>
<control type="image">
<posx>-21</posx>
<posy>-21</posy>
<width>1322</width>
<height>762</height>
<texture border="4">dialogs/toast_back_blue.png</texture>
<bordertexture border="21">thumbs/thumb_shadow.png</bordertexture>
<bordersize>21</bordersize>
</control>
<control type="label" id="2">
<description>Heading</description>
<posx>0</posx>
<posy>0</posy>
<height>72</height>
<label>KODI SUBTITLES</label>
<width>840</width>
<textcolor>Blue2</textcolor>
<textoffsetx>30</textoffsetx>
</control>
<control type="image" id="110">
<description>Service Logo</description>
<posx>860</posx>
<posy>5</posy>
<width>400</width>
<height>62</height>
<aspectratio aligny="bottom" align="right">keep</aspectratio>
</control>
<control type="image">
<posx>2</posx>
<posy>72</posy>
<width>1280</width>
<height>2</height>
<texture>common/blue2.png</texture>
</control>
<control type="label" id="100">
<description>textarea</description>
<posx>0</posx>
<posy>72</posy>
<width>1280</width>
<height>72</height>
<font>Small</font>
<textcolor>grey</textcolor>
<textoffsetx>30</textoffsetx>
</control>
<control type="list" id="120">
<posx>0</posx>
<posy>144</posy>
<width>1280</width>
<height>504</height>
<onleft>150</onleft>
<onright>121</onright>
<onup>120</onup>
<ondown>120</ondown>
<viewtype label="535">list</viewtype>
<pagecontrol>121</pagecontrol>
<scrolltime tween="quadratic" easing="out">200</scrolltime>
<itemlayout width="" height="72">
<control type="image">
<width>1280</width>
<height>72</height>
<include>toast_back</include>
</control>
<control type="image">
<posx>15</posx>
<posy>15</posy>
<width>62</width>
<height>42</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.Thumb,script.xbmc.subtitles/,/flag.png]</texture>
</control>
<control type="image">
<posx>97</posx>
<posy>26</posy>
<width>68</width>
<height>22</height>
<texture>script.xbmc.subtitles/sync.png</texture>
<visible>ListItem.property(sync)</visible>
<colordiffuse>White2</colordiffuse>
</control>
<control type="label">
<posx>155</posx>
<width>893</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>30</textoffsetx>
<textcolor>White2</textcolor>
<visible>ListItem.property(sync) + ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>97</posx>
<width>941</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<textcolor>White2</textcolor>
<visible>!ListItem.property(sync) + ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>97</posx>
<width>1008</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<textcolor>White2</textcolor>
<visible>!ListItem.property(sync) + !ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>180</posx>
<width>925</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<textcolor>White2</textcolor>
<visible>ListItem.property(sync) + !ListItem.property(hearing_imp)</visible>
</control>
<control type="image">
<posx>1048</posx>
<posy>6</posy>
<width>60</width>
<height>60</height>
<texture>script.xbmc.subtitles/cc.png</texture>
<visible>ListItem.property(hearing_imp)</visible>
</control>
<control type="image">
<posx>1115</posx>
<posy>19</posy>
<width>160</width>
<height>34</height>
<texture>$INFO[ListItem.ActualIcon,flags/stars/,.png]</texture>
<colordiffuse>White2</colordiffuse>
</control>
</itemlayout>
<focusedlayout height="72">
<control type="image">
<width>1280</width>
<height>72</height>
<include>toast_back</include>
</control>
<control type="image">
<width>1280</width>
<height>72</height>
<texture>dialogs/listitem_focus.png</texture>
<visible>Control.HasFocus(120)</visible>
</control>
<control type="image">
<posx>15</posx>
<posy>15</posy>
<width>62</width>
<height>42</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.Thumb,script.xbmc.subtitles/,/flag.png]</texture>
</control>
<control type="image">
<posx>97</posx>
<posy>26</posy>
<width>68</width>
<height>22</height>
<texture>script.xbmc.subtitles/sync.png</texture>
<visible>ListItem.property(sync)</visible>
</control>
<control type="label">
<posx>155</posx>
<width>893</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>30</textoffsetx>
<visible>ListItem.property(sync) + ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>97</posx>
<width>941</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<visible>!ListItem.property(sync) + ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>97</posx>
<width>1008</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<visible>!ListItem.property(sync) + !ListItem.property(hearing_imp)</visible>
</control>
<control type="label">
<posx>180</posx>
<width>925</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label2]</label>
<textoffsetx>5</textoffsetx>
<visible>ListItem.property(sync) + !ListItem.property(hearing_imp)</visible>
</control>
<control type="image">
<posx>1048</posx>
<posy>6</posy>
<width>60</width>
<height>60</height>
<texture>script.xbmc.subtitles/cc.png</texture>
<visible>ListItem.property(hearing_imp)</visible>
</control>
<control type="image">
<posx>1115</posx>
<posy>19</posy>
<width>160</width>
<height>34</height>
<texture>$INFO[ListItem.ActualIcon,flags/stars/,.png]</texture>
</control>
</focusedlayout>
</control>
<control type="group" id="111">
<control type="button">
<posx>90</posx>
<posy>648</posy>
<width>1190</width>
<height>72</height>
<font>Small</font>
<label>$LOCALIZE[SCRIPT655]</label>
<disabledcolor>White2</disabledcolor>
<enable>no</enable>
</control>
</control>
<control type="group">
<posx>0</posx>
<posy>648</posy>
<width>72</width>
<height>72</height>
<control type="button" id="11115">
<posx>0</posx>
<posy>0</posy>
<width>90</width>
<height>72</height>
<onclick>SetProperty(SubSettings,True,Home)</onclick>
<onclick>SetFocus(150)</onclick>
<onleft>120</onleft>
<onright>121</onright>
<ondown>120</ondown>
<onup>120</onup>
</control>
<control type="image">
<posx>21</posx>
<posy>12</posy>
<width>48</width>
<height>48</height>
<texture>icons/settings_nf.png</texture>
</control>
</control>
<control type="spincontrol" id="121">
<description>Next page button</description>
<posx>1136</posx>
<posy>648</posy>
<width>72</width>
<height>72</height>
<font>Small</font>
<align>right</align>
<subtype>page</subtype>
<textcolor>White2</textcolor>
<onleft>11115</onleft>
<onright>11115</onright>
<ondown>120</ondown>
<onup>120</onup>
<textoffsetx>30</textoffsetx>
<showonepage>false</showonepage>
<visible>Control.IsVisible(120)</visible>
</control>
</control>
<control type="group">
<posx>-400</posx>
<posy>180</posy>
<animation type="Conditional" reversible="false" condition="!IsEmpty(Window(Home).Property(SubSettings)) | Control.HasFocus(150)">
<effect type="slide" start="0" end="480" easing="out" tween="cubic" time="200" />
<effect type="fade" start="0" end="100" time="200" />
</animation>
<animation type="Conditional" reversible="false" condition="IsEmpty(Window(Home).Property(SubSettings)) + !Control.HasFocus(150)">
<effect type="fade" start="100" end="0" time="200" />
<effect type="slide" end="0" start="480" easing="out" tween="cubic" time="200" />
</animation>
<control type="image">
<posx>-21</posx>
<posy>-21</posy>
<width>522</width>
<height>762</height>
<texture border="4">dialogs/toast_back_blue.png</texture>
<bordertexture border="21">thumbs/thumb_shadow.png</bordertexture>
<bordersize>21</bordersize>
</control>
<control type="label">
<description>XBMC Subtitles label</description>
<posx>0</posx>
<posy>0</posy>
<width>480</width>
<height>72</height>
<label>$LOCALIZE[SCRIPT760]</label>
<font>Small_Caps</font>
<textcolor>Blue2</textcolor>
<textoffsetx>30</textoffsetx>
</control>
<control type="list" id="150">
<posx>0</posx>
<posy>72</posy>
<width>480</width>
<height>504</height>
<onleft>11116</onleft>
<onright>11116</onright>
<onup>150</onup>
<ondown>11116</ondown>
<viewtype label="535">list</viewtype>
<scrolltime>200</scrolltime>
<orientation>vertical</orientation>
<hitrect x="0" y="0" w="480" h="1080" />
<itemlayout width="480" height="72">
<control type="image">
<width>480</width>
<height>72</height>
<include>toast_back</include>
</control>
<control type="label">
<width>480</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label]</label>
<textoffsetx>30</textoffsetx>
<textcolor>White2</textcolor>
<scroll>true</scroll>
<visible>!ListItem.property(man)</visible>
</control>
<control type="label">
<width>480</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label]</label>
<textoffsetx>30</textoffsetx>
<textcolor>Blue2</textcolor>
<scroll>true</scroll>
<visible>ListItem.property(man)</visible>
</control>
</itemlayout>
<focusedlayout width="480" height="72">
<control type="button">
<!-- Gives error in log: WARNING: Trying to add unsupported control type 1 -->
<width>480</width>
<height>72</height>
<include>HiddenButton</include>
<onunfocus>ClearProperty(SubSettings,Home)</onunfocus>
</control>
<control type="image">
<width>480</width>
<height>72</height>
<include>toast_back</include>
</control>
<control type="image">
<width>480</width>
<height>72</height>
<texture>dialogs/listitem_focus.png</texture>
<visible>Control.HasFocus(150)</visible>
</control>
<control type="label">
<width>480</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label]</label>
<textoffsetx>30</textoffsetx>
<textcolor>White2</textcolor>
<scroll>true</scroll>
<visible>!ListItem.property(man)</visible>
</control>
<control type="label">
<width>480</width>
<height>72</height>
<font>Small</font>
<label>$INFO[ListItem.Label]</label>
<textoffsetx>30</textoffsetx>
<textcolor>Blue2</textcolor>
<scroll>true</scroll>
<visible>ListItem.property(man)</visible>
</control>
</focusedlayout>
</control>
<control type="button" id="11116">
<posx>0</posx>
<posy>648</posy>
<width>480</width>
<height>72</height>
<onclick>ClearProperty(SubSettings,Home)</onclick>
<onclick>SetFocus(120)</onclick>
<onleft>150</onleft>
<onright>150</onright>
<ondown>150</ondown>
<onup>150</onup>
<label>222</label>
</control>
<control type="image">
<posx>2</posx>
<posy>72</posy>
<width>480</width>
<height>2</height>
<texture>common/blue2.png</texture>
</control>
</control>
</control>
</controls>
</window>
What am i missing here?