2023-05-19, 06:46
Hello
I am working on my custom skin based on the default skin (Estuary).
I use script-shortcut to add a new home menu (type will be movie/TVs/or etc..). For now, it is working to create a new home menu thru
<onclick>RunScript(script.skinshortcuts,type=manage&group=mainmenu)</onclick>.
My next step is..
after creating a new home menu and I am going to show its widgets (like Estuary skin) on the right side at home.
Here is the movie widget code I am using (it is almost same as Estuary widget at home)
I think I need to put a new home button mapped path above "content_path".
In script-shortcuts.xml, this new button action is defined below
Please help me out.
I am working on my custom skin based on the default skin (Estuary).
I use script-shortcut to add a new home menu (type will be movie/TVs/or etc..). For now, it is working to create a new home menu thru
<onclick>RunScript(script.skinshortcuts,type=manage&group=mainmenu)</onclick>.
My next step is..
after creating a new home menu and I am going to show its widgets (like Estuary skin) on the right side at home.
Here is the movie widget code I am using (it is almost same as Estuary widget at home)
xml:
<visible>String.IsEqual(ListItem.Property(MyProperty),myproper)</visible> // I gave my custom property using script.skinshortcuts, it works
<pagecontrol>5010</pagecontrol>
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="NEW HOME BUTTON PATH"/> // I need contents_path for the new home menu which mapped the custom video library path.
<param name="widget_header" value="Continue"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5100"/>
</include>
I think I need to put a new home button mapped path above "content_path".
In script-shortcuts.xml, this new button action is defined below
It looks like I will get displaypath from button id="307" - ($INFO[Container(211).ListItem.Property(displaypath)]) and it will put in my widget content path using some wayxml:
<!-- Change action -->
<control type="button" id="307">
<width>870</width>
<height>84</height>
<font>Light32</font>
<textwidth>790</textwidth>
<textoffsetx>40</textoffsetx>
<textcolor>ff505153</textcolor>
<focusedcolor>ffffaf37</focusedcolor>
<texturefocus border="3">settings/button_focus.png</texturefocus>
<texturenofocus border="3">settings/button_no_focus.png</texturenofocus>
<label>$ADDON[script.skinshortcuts 32027]</label>
<label2>$INFO[Container(211).ListItem.Property(displaypath)]</label2>
</control>
I have no idea how to do that.xml:
<param name="content_path" value="NEW HOME BUTTON PATH"/>
Please help me out.