home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Skin functions: What is available?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1276159" data-attributes="member: 141969"><p>Yes, the Wiki is "variable in quality", with many omissions, and some errors. The way that skin authors become adept is via trial and error, using the Wiki as a source of hints as to what is supported and how it might work. To paraphrase Winston Churchill: it is an annoyance <em>up with which we have to put</em>. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite4" alt=":mad:" title="Mad :mad:" loading="lazy" data-shortname=":mad:" /></p><p></p><p>My custom is to scan the skin files for DWHD, Titan, Ares, and Amped, to see how they use a particular facility. I use Windows "findstr.exe" to perform this search. It may be possible to use Windows "Search" dialogue, but I cannot work out how to use it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />.</p><p></p><p></p><p>To navigate <em>between</em> panels you use the <hyperlink> tag. On the "Recorded TV" panel I added to the left side menu a button that allows me to goto the "Search TV Guide" panel:</p><p></p><p>[code]<control></p><p> <description>"Search TV Guide" button</description></p><p> <type>button</type></p><p> <id>501</id></p><p> <label>Search TV Guide</label></p><p> <hyperlink>604</hyperlink></p><p> <onup>5</onup></p><p> <ondown>6</ondown></p><p> <onleft>50</onleft></p><p> <onright>50</onright></p><p></control>[/code]</p><p></p><p></p><p>This works for panels that don't require any parameters. So it works for "Recorded TV", "TV Guide", "Search TV Guide", "Videos", and so on, but it does not work for "Upcoming Episodes" and similar panels that require one or more parameters in order to work correctly (there is no way that the skin author can specify those parameters).</p><p></p><p>As [USER=54906]@catavolt[/USER] said, with the <onclick> tag you can use any function that is valid in an expression, but the vast majority of uses of <onclick> set skin settings, that is, variables that are defined in the file "SkinSettings.xml". There are basically two types of setting: <em>strings</em> and <em>booleans</em>:</p><p></p><p>[code]<onclick>#(skin.setstring('#skin.list.rows',#selectedlabel33))</onclick></p><p></p><p><onclick>#(skin.togglesetting('#skin.schedule.show.series'))</onclick>[/code]</p><p></p><p></p><p>Important: the name of the skin setting to be set <strong>must be enclosed in single quotes</strong>. If you omit the quotes, the skin engine will replace the skin variable by its current value, and then set a skin setting whose name is the current value. Example:</p><p></p><p>[code]<onclick>#(skin.togglesetting(#skin.schedule.show.series))</onclick>[/code]</p><p></p><p></p><p>When the skin engine executes this code, it replaces <strong>#skin.schedule.show.series</strong> by its current value <strong>True</strong> or <strong>False</strong>, and then toggles the value of a skin variable called <strong>True</strong> or <strong>False</strong>. (Yes, I got caught out several times by this error.)</p><p></p><p>Note: it is valid to omit the quotes around the name of the skin variable, but this is an advanced coding technique for use in special circumstances which I won't describe here.</p><p></p><p></p><p>There are no functions that do this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite16" alt=":cry:" title="Crying :cry:" loading="lazy" data-shortname=":cry:" />. A really useful enhancement would be a function that could access and set any settings in the file "MediaPortal.xml". This would allow the skin author to test MP settings (not the same as skin settings), and alter the values of MP settings. But this function does not exist. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1276159, member: 141969"] Yes, the Wiki is "variable in quality", with many omissions, and some errors. The way that skin authors become adept is via trial and error, using the Wiki as a source of hints as to what is supported and how it might work. To paraphrase Winston Churchill: it is an annoyance [I]up with which we have to put[/I]. :mad: My custom is to scan the skin files for DWHD, Titan, Ares, and Amped, to see how they use a particular facility. I use Windows "findstr.exe" to perform this search. It may be possible to use Windows "Search" dialogue, but I cannot work out how to use it :(. To navigate [I]between[/I] panels you use the <hyperlink> tag. On the "Recorded TV" panel I added to the left side menu a button that allows me to goto the "Search TV Guide" panel: [code]<control> <description>"Search TV Guide" button</description> <type>button</type> <id>501</id> <label>Search TV Guide</label> <hyperlink>604</hyperlink> <onup>5</onup> <ondown>6</ondown> <onleft>50</onleft> <onright>50</onright> </control>[/code] This works for panels that don't require any parameters. So it works for "Recorded TV", "TV Guide", "Search TV Guide", "Videos", and so on, but it does not work for "Upcoming Episodes" and similar panels that require one or more parameters in order to work correctly (there is no way that the skin author can specify those parameters). As [USER=54906]@catavolt[/USER] said, with the <onclick> tag you can use any function that is valid in an expression, but the vast majority of uses of <onclick> set skin settings, that is, variables that are defined in the file "SkinSettings.xml". There are basically two types of setting: [I]strings[/I] and [I]booleans[/I]: [code]<onclick>#(skin.setstring('#skin.list.rows',#selectedlabel33))</onclick> <onclick>#(skin.togglesetting('#skin.schedule.show.series'))</onclick>[/code] Important: the name of the skin setting to be set [B]must be enclosed in single quotes[/B]. If you omit the quotes, the skin engine will replace the skin variable by its current value, and then set a skin setting whose name is the current value. Example: [code]<onclick>#(skin.togglesetting(#skin.schedule.show.series))</onclick>[/code] When the skin engine executes this code, it replaces [B]#skin.schedule.show.series[/B] by its current value [B]True[/B] or [B]False[/B], and then toggles the value of a skin variable called [B]True[/B] or [B]False[/B]. (Yes, I got caught out several times by this error.) Note: it is valid to omit the quotes around the name of the skin variable, but this is an advanced coding technique for use in special circumstances which I won't describe here. There are no functions that do this :cry:. A really useful enhancement would be a function that could access and set any settings in the file "MediaPortal.xml". This would allow the skin author to test MP settings (not the same as skin settings), and alter the values of MP settings. But this function does not exist. :( -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Skin functions: What is available?
Contact us
RSS
Top
Bottom