2019-05-19, 23:12
i am trying to customize the osmc skin, trying to make the movie plot clickable so it pops out, to make it more readable.
xml:<control type="button" id="138">
<width>754</width>
<height>418</height>
<textoffsetx>40</textoffsetx>
<textoffsety>20</textoffsety>
<aligny>bottom</aligny>
<label></label>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Header,$LOCALIZE[207],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Text,$ESCINFO[ListItem.Plot],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">ActivateWindow(1102)</onclick>
<onup>50</onup>
<onleft>4000</onleft>
<onright>4000</onright>
<ondown>5000</ondown>
<texturenofocus border="21">dialogs/dialog-bg.png</texturenofocus>
<visible>Integer.IsGreater(Container(4000).NumItems,0)</visible>
</control>
(2019-05-20, 02:10)the_other_guy Wrote: you could look at skin.estuary DialogVideoInfo.xmlthank you for the reply, however i am very new to this.
xml:<control type="button" id="138">
<width>754</width>
<height>418</height>
<textoffsetx>40</textoffsetx>
<textoffsety>20</textoffsety>
<aligny>bottom</aligny>
<label></label>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Header,$LOCALIZE[207],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Text,$ESCINFO[ListItem.Plot],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">ActivateWindow(1102)</onclick>
<onup>50</onup>
<onleft>4000</onleft>
<onright>4000</onright>
<ondown>5000</ondown>
<texturenofocus border="21">dialogs/dialog-bg.png</texturenofocus>
<visible>Integer.IsGreater(Container(4000).NumItems,0)</visible>
</control>
xml:<!-- Plot -->
<control type="button" id="138">
<width>754</width>
<height>418</height>
<textoffsetx>40</textoffsetx>
<textoffsety>20</textoffsety>
<aligny>bottom</aligny>
<label></label>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Header,$LOCALIZE[207],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Text,$ESCINFO[ListItem.Plot],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">ActivateWindow(1102)</onclick>
<onup>50</onup>
<onleft>4000</onleft>
<onright>4000</onright>
<ondown>5000</ondown>
<texturenofocus border="21">dialogs/dialog-bg.png</texturenofocus>
<visible>Integer.IsGreater(Container(4000).NumItems,0)</visible>
</control>
<control type="image">
<left>735</left>
<width>512</width>
<height>418</height>
<aligny>bottom</aligny>
<texture border="21">dialogs/dialogbackground.png</texture>
<visible>Integer.IsGreater(Container(4000).NumItems,0)</visible>
</control>
<control type="group">
<top>370</top>
<width>1170</width>
<height>210</height>
<control type="textbox">
<align>left</align>
<textcolor>$VAR[TextColor2]</textcolor>
<label>[LIGHT]$VAR[Plot][/LIGHT]</label>
<autoscroll delay="10000" time="2000" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,S light)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font30</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>[LIGHT]$VAR[Plot][/LIGHT]</label>
<autoscroll delay="10000" time="1900" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,M light)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font33</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>[LIGHT]$VAR[Plot][/LIGHT]</label>
<autoscroll delay="10000" time="1800" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,L light)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font36</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>[LIGHT]$VAR[Plot][/LIGHT]</label>
<autoscroll delay="10000" time="1700" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,XL light)</visible>
</control>
<control type="textbox">
<align>left</align>
<textcolor>$VAR[TextColor2]</textcolor>
<label>$VAR[Plot]</label>
<autoscroll delay="10000" time="2000" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,S)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font30</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>$VAR[Plot]</label>
<autoscroll delay="10000" time="1900" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,M)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font33</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>$VAR[Plot]</label>
<autoscroll delay="10000" time="1800" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,L)</visible>
</control>
<control type="textbox">
<align>left</align>
<font>Font36</font>
<textcolor>$VAR[TextColor2]</textcolor>
<label>$VAR[Plot]</label>
<autoscroll delay="10000" time="1700" repeat="12000">True</autoscroll>
<visible>Skin.String(PlotFont,XL)</visible>
</control>
</control>
</control>
xml:
<control type="group">
<top>260</top>
<left>50</left>
<control type="button" id="61">
<left>600</left>
<top>-18</top>
<width>1170</width>
<height>509</height>
<font></font>
<onleft>61</onleft>
<onright>61</onright>
<ondown>9000</ondown>
<onup>9000</onup>
<textcolor>FFF0F0F0</textcolor>
<shadowcolor>22000000</shadowcolor>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Header,$LOCALIZE[207],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Text,$ESCINFO[ListItem.Plot],home)</onclick>
<onclick>ActivateWindow(1102)</onclick>
<texturefocus colordiffuse="button_focus" border="21">dialogs/button-fo.png</texturefocus>
<texturenofocus border="21">dialogs/dialog-bg.png</texturenofocus>
</control>
<control type="textbox">
<left>660</left>
<top>20</top>
<width>1050</width>
<height>425</height>
<align>justify</align>
<textcolor>FFF0F0F0</textcolor>
<shadowcolor>22000000</shadowcolor>
<label>$INFO[ListItem.Plot]</label>
<autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(AutoScroll)</autoscroll>
</control>
</control>
(2019-08-18, 19:29)M89SE Wrote: You need to find out what id number the osmc skin has for activating the plot window.thank you so much!
<onclick condition="!String.IsEmpty(ListItem.Plot)">ActivateWindow(1102)</onclick>
Also you need to have it in this order:
Group
Button
Textbox
ex.
xml:
<control type="group">
<top>260</top>
<left>50</left>
<control type="button" id="61">
<left>600</left>
<top>-18</top>
<width>1170</width>
<height>509</height>
<font></font>
<onleft>61</onleft>
<onright>61</onright>
<ondown>9000</ondown>
<onup>9000</onup>
<textcolor>FFF0F0F0</textcolor>
<shadowcolor>22000000</shadowcolor>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Header,$LOCALIZE[207],home)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Plot)">SetProperty(TextViewer_Text,$ESCINFO[ListItem.Plot],home)</onclick>
<onclick>ActivateWindow(1102)</onclick>
<texturefocus colordiffuse="button_focus" border="21">dialogs/button-fo.png</texturefocus>
<texturenofocus border="21">dialogs/dialog-bg.png</texturenofocus>
</control>
<control type="textbox">
<left>660</left>
<top>20</top>
<width>1050</width>
<height>425</height>
<align>justify</align>
<textcolor>FFF0F0F0</textcolor>
<shadowcolor>22000000</shadowcolor>
<label>$INFO[ListItem.Plot]</label>
<autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(AutoScroll)</autoscroll>
</control>
</control>