Release script.toolbox
#17
phil65,

I for one would love to see something like this and yes to add some additional python accessible functions as MassIV suggested. One I would like would be 'FileExists'. I know the need for this has lessened to some degree as a number of former custom image types have made their way into mainline Kodi, but the need to have a blank fallback image for an image control that you check to see if your image loaded is a PITA.

PHP Code:
                <control type="group">
                    <
visible>VideoPlayer.Content(Movies) | VideoPlayer.Content(episodes)</visible><!-- Movies or Tv Episodes -->
                    <
animation effect="fade" time="200">VisibleChange</animation>
                    <
control type="image" id="890"><!-- Use Clearart if available -->
                        <
left>8</left>
                        <
top>496</top>
                        <
width>275</width>
                        <
height>145</height>
                        <
texture>$VAR[PlayerVideoClearart]</texture>
                        <
aligny>bottom</aligny>
                        <
aspectratio>keep</aspectratio>
                    </
control>
                    <
control type="group">
                        <
visible>StringCompare(Control.GetLabel(890),blank.png)</visible>
                        <
control type="image" id="891"><!-- Use Logo if available -->
                            <
left>8</left>
                            <
top>565</top>
                            <
width>276</width>
                            <
height>75</height>
                            <
texture>$VAR[PlayerVideoLogo]</texture>
                            <
aspectratio align="left" aligny="bottom">keep</aspectratio>
                        </
control>
                        <
control type="image"><!-- Fallback to video cover image if no clearart or logo -->
                            <
left>56</left>
                            <
top>460</top>
                            <
width>180</width>
                            <
height>180</height>
                            <
aligny>bottom</aligny>
                            <
texture diffuse="mask-rect.png">$VAR[PlayerVideoCover]</texture>
                            <
aspectratio scalediffuse="false">keep</aspectratio>
                            <
visible>StringCompare(Control.GetLabel(891),blank.png)</visible>
                        </
control>
                    </
control>
                </
control

In the above example each one of the $VAR's has a default value of 'blank.png' which is used in the check in the next image block. Would be really nice to be able to give a script a list of images to check and have it return the first one found. To display one image block with one visible condition has got to be faster and easier to read for the skin coder.

I'm sure if we thought about it, there would be a number of situations like this one that could be handled better than they currently are.

Just my 2c worth
Wyrm
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply


Messages In This Thread
script.toolbox - by phil65 - 2014-10-30, 00:27
RE: [RLEASE] script.toolbox - by Bumpaneer - 2015-03-06, 00:27
RE: [RLEASE] script.toolbox - by phil65 - 2015-03-06, 01:26
RE: Suggestion: Script to expose python functions to skinners - by wyrm - 2014-10-31, 05:53
RE: [RLEASE] script.toolbox - by jurialmunkey - 2015-03-06, 02:11
RE: [RLEASE] script.toolbox - by senna99 - 2015-03-11, 13:25
RE: script.toolbox - by phil65 - 2015-03-11, 19:24
RE: script.toolbox - by senna99 - 2015-03-11, 21:01
RE: script.toolbox - by sualfred - 2015-03-16, 11:50
RE: script.toolbox - by phil65 - 2015-03-16, 12:03
RE: script.toolbox - by sualfred - 2015-03-16, 12:29
RE: script.toolbox - by Jayz2K - 2015-05-19, 09:31
RE: script.toolbox - by phil65 - 2015-05-19, 15:35
RE: script.toolbox - by Jayz2K - 2015-05-19, 16:10
RE: script.toolbox - by phil65 - 2015-05-19, 16:22
RE: script.toolbox - by Jayz2K - 2015-05-19, 16:59
RE: script.toolbox - by Hitcher - 2015-05-20, 17:22
RE: script.toolbox - by phil65 - 2015-05-20, 17:38
RE: script.toolbox - by phil65 - 2015-05-20, 17:42
RE: script.toolbox - by Hitcher - 2015-05-20, 17:47
RE: script.toolbox - by Hitcher - 2015-05-20, 20:31
RE: script.toolbox - by phil65 - 2015-05-20, 20:40
RE: script.toolbox - by Hitcher - 2015-05-20, 20:41
RE: script.toolbox - by phil65 - 2015-05-20, 21:17
RE: script.toolbox - by Jayz2K - 2015-05-20, 22:02
RE: script.toolbox - by phil65 - 2015-05-20, 22:17
RE: script.toolbox - by Hitcher - 2015-05-21, 19:01
RE: script.toolbox - by phil65 - 2015-05-21, 19:30
RE: script.toolbox - by Hitcher - 2015-05-21, 19:33
RE: script.toolbox - by phil65 - 2015-05-21, 19:34
RE: script.toolbox - by Hitcher - 2015-05-21, 19:42
RE: script.toolbox - by phil65 - 2015-05-21, 19:46
RE: script.toolbox - by Hitcher - 2015-05-21, 19:50
RE: script.toolbox - by phil65 - 2015-05-21, 19:53
RE: script.toolbox - by Hitcher - 2015-05-21, 20:01
RE: script.toolbox - by sualfred - 2015-05-21, 20:22
RE: script.toolbox - by Hitcher - 2015-05-21, 21:14
RE: script.toolbox - by phil65 - 2015-05-22, 00:17
RE: script.toolbox - by marcelveldt - 2015-05-22, 00:39
RE: script.toolbox - by Hitcher - 2015-05-26, 09:17
RE: script.toolbox - by phil65 - 2015-05-22, 02:32
RE: script.toolbox - by wyrm - 2015-05-22, 06:18
RE: script.toolbox - by phil65 - 2015-05-22, 06:58
RE: script.toolbox - by wyrm - 2015-05-22, 08:55
RE: script.toolbox - by Hitcher - 2015-05-22, 08:06
RE: script.toolbox - by Hitcher - 2015-05-22, 19:17
RE: script.toolbox - by phil65 - 2015-05-22, 20:44
RE: script.toolbox - by sualfred - 2015-05-22, 19:30
RE: script.toolbox - by braz - 2015-05-26, 13:18
RE: script.toolbox - by phil65 - 2015-05-26, 13:52
RE: script.toolbox - by braz - 2015-05-26, 13:55
RE: script.toolbox - by Wanilton - 2015-05-26, 14:14
RE: script.toolbox - by mikeSiLVO - 2015-06-27, 19:29
RE: script.toolbox - by phil65 - 2015-06-27, 19:56
RE: script.toolbox - by mikeSiLVO - 2015-06-27, 20:09
RE: script.toolbox - by phil65 - 2015-06-27, 20:12
RE: script.toolbox - by janeczku - 2015-07-01, 08:20
RE: script.toolbox - by Fist - 2015-07-15, 10:52
RE: script.toolbox - by sualfred - 2015-07-05, 08:56
RE: script.toolbox - by Hitcher - 2015-07-05, 10:55
RE: script.toolbox - by sualfred - 2015-07-05, 11:00
RE: script.toolbox - by Hitcher - 2015-07-05, 11:15
RE: script.toolbox - by sualfred - 2015-07-05, 11:19
RE: script.toolbox - by mikeSiLVO - 2015-07-20, 10:07
RE: script.toolbox - by phil65 - 2015-07-20, 14:30
RE: script.toolbox - by mikeSiLVO - 2015-07-20, 17:48
RE: script.toolbox - by phil65 - 2015-07-20, 17:52
RE: script.toolbox - by mikeSiLVO - 2015-07-27, 10:53
RE: script.toolbox - by im85288 - 2015-07-20, 19:50
RE: script.toolbox - by Hitcher - 2015-07-20, 21:29
RE: script.toolbox - by Jayz2K - 2015-07-23, 18:54
RE: script.toolbox - by mbuzina - 2015-07-28, 18:00
RE: script.toolbox - by phil65 - 2015-07-28, 18:11
RE: script.toolbox - by Fist - 2015-07-29, 08:23
RE: script.toolbox - by Fist - 2015-08-20, 09:57
RE: script.toolbox - by janeczku - 2015-07-29, 15:45
RE: script.toolbox - by JDizzy - 2015-07-30, 18:56
RE: script.toolbox - by Fist - 2015-07-30, 20:35
script.toolbox - by mbuzina - 2015-07-30, 15:28
RE: script.toolbox - by Fist - 2015-07-31, 12:04
RE: script.toolbox - by Fist - 2015-08-03, 08:30
RE: script.toolbox - by Mike_Doc - 2015-08-23, 20:12
RE: script.toolbox - by Stildawn - 2015-09-02, 09:35
RE: script.toolbox - by scott967 - 2015-09-08, 22:37
RE: script.toolbox - by Jayz2K - 2015-09-08, 23:53
RE: script.toolbox - by phil65 - 2015-09-09, 01:44
RE: script.toolbox - by scott967 - 2015-09-09, 02:31
RE: script.toolbox - by phil65 - 2015-09-09, 03:29
RE: script.toolbox - by Pienoet - 2015-11-01, 20:36
RE: script.toolbox - by noxx2 - 2015-11-06, 09:16
RE: script.toolbox - by thy1225 - 2015-12-30, 12:26
RE: script.toolbox - by eshep - 2016-07-01, 03:44
RE: script.toolbox - by braz - 2016-05-27, 22:40
RE: script.toolbox - by emre.ay - 2016-07-03, 12:33
RE: script.toolbox - by badaas - 2016-07-17, 10:11
RE: script.toolbox - by tommymsw - 2016-07-16, 02:43
RE: script.toolbox - by TaceN - 2017-05-13, 23:29
RE: script.toolbox - by badaas - 2017-07-17, 00:26
RE: script.toolbox - by Greatnloopy - 2017-07-17, 08:22
RE: script.toolbox - by heula - 2018-08-16, 12:27


Logout Mark Read Team Forum Stats Members Help
script.toolbox2
This forum uses Lukasz Tkacz MyBB addons.