Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all 1815 articles
Browse latest View live

and xml line formatting and possibly tabs error

$
0
0
Why is this accepted by the skinning engine ? :

Code:
                    <include condition="Skin.HasSetting(context.trailer) + !String.IsEmpty(ListItem.Trailer)" file="bespoke_Includes_Buttons.xml">movieinformation_TrailerButton</include>

And why is this not ? :

Code:
                    <include condition="Skin.HasSetting(context.trailer) + !String.IsEmpty(ListItem.Trailer)" file="Includes_Buttons.xml">
                        movieinformation_TestButton
                    </include>

The button is not added to the screen, and I see this error message in Kodi's logfile :

Code:
16:57:42.328 T:140370368546880 WARNING: Skin has invalid include:
                                                                    movieinformation_TestButton
The only difference being that I hit the Return-key twice to add the line breaks.

In the failing format, there are leading tabs before movieinformation_TrailerButton.
In both formats there are leading tabs before <include> and </include>.

When I roll back to the one-liner, the warning message doesn't appear in the log and the new button is added to the screen.

Any way to clone a controls parameters?

$
0
0
Code:
<control type="image" id="33009">
            <left>345</left>      
            <top>-1000</top>  
            <height>74</height>  
            <width>74</width>
            <texture>text.png</texture>
        </control>
        <control type="image" id="33010">
            <left>345</left>  
            <top>-1000</top>  
            <height>222</height>  
            <width>2222</width>
            <texture>text.png</texture>
        </control>

I have two textures in a custom script xml... Control 33009 is hard coded and controled by python... I'd like Control 33010 to share the x and y position of 33009 without using python. Is this possible? perhaps a built-in i'm unfamiliar with?

-tag with condition System.IdleTime().

$
0
0
Why does a idle timeout greater than zero fail, when conditioning the <onfocus>-tag ?

Result is in the comment after the various <onfocus> tags :

Code:
                <!--pause-->
                <control type="togglebutton" id="705">
                    <label></label>
                    <altlabel></altlabel>
                    <onclick>PlayerControl(Play)</onclick>
                    <onfocus condition="System.IdleTime(2)">Control.SetFocus(5300,1)</onfocus> <!-- Never. -->
                    <!-- <onfocus>Control.SetFocus(5300,1)</onfocus> --> <!-- Immediate. -->
                    <!-- <onfocus condition="Player.HasVideo">Control.SetFocus(5300,1)</onfocus> --> <!-- Immediate. -->
                    <!-- <onfocus condition="System.IdleTime(1)">Control.SetFocus(5300,1)</onfocus> --> <!-- Never. -->
                    <!-- <onfocus condition="System.IdleTime(0)">Control.SetFocus(5300,1)</onfocus> --> <!-- Immediate. -->
                </control>

Any way to show a different icon if day or night?

$
0
0
Hi Guys,

I'm trying to come up with a way to show a weather icon with a daytime or a night time background depending on the current time. The solution I thought had the best chance of success was to set an alarm in a onload tag in startup.xml to set a skin boolean to true if time was between sun rise and sunset. I can see a number of way that this could fail, so would not be certain I was on the right track unless I managed to get it to work the first time.

So, a couple of questions.

Is the AlarmClock function just restricted to time elapsed or can you get it to trigger at a particular time,?

If you can set a particular time, what is the correct format for the command as the wiki appears a little vague on the details?

Is there some hidden info string or some such that I can use to obtain the current local sunrise and sunset times or would I just have to assume 6am sunrise and 6pm sunset?

And most importantly, has anyone managed to achieve something similar, and if so how?

Wyrm (AppTV)

variables in $LOCALIZE[x] possible?

$
0
0
Hi, is it possible to use a variable to pass a number to a $LOCALIZE[] label?

This is my variable:

Code:
<variable name="ViewtypeLabel">
    <value condition="Control.IsVisible(50)">315002</value>
    <value condition="Control.IsVisible(51)">315003</value>
    <value condition="Control.IsVisible(500)">315007</value>        
</variable>

This is my label:

Code:
<label>$LOCALIZE[$VAR[ViewtypeLabel]]</label>

From what I can tell, it's translating the var to 0, so instead of printing the string with id 315002, it's printing the string with id 0, which is "programs".

Reset focus postion of actor images in list when scolling to next movie

$
0
0
Hi guys

I have a list of pictures of actors that show beside each movie.

I press a button to bring actors pictures in focus to scroll through them.

If i scroll to 3rd actor in list and go back, once i scroll to next movie and bring up the actors the 3rd actor will be in focus.

Is there way to reset focus back to first position when scrolling to next item.

Thanks for any info

Quit and launch a windows program

$
0
0
Is there any way i can program an onclick button to do two actions.

1. Quit kodi
2. wait 1 or 2 seconds
3. launch a windows .exe

I need to quit kodi before i launch a windows exe.

thanks

video windows skinning

$
0
0
Hi all,

I need some help with video windows skinning. I want to know how do you change the skin for full screen video to remove the controls such as player buttons and other controls so I could use my own especially input the texts and images on the video screen to make it like epg mini-guide? is that possible to do that?

If so, I would love to know how to do it.

Thanks in advance

Separate Icon and thumb in PVR

$
0
0
I have a hard time understanding the logic behind having ListItem.Icon and ListItem.Art(thumb) returning the same value in the PVR. I don't have a PVR setup but as I understand it not all (or none?) backends supply thumbnails. However thumbnails can be provided by add-ons like Skin Helper Service, which has a PVR scraper function.

Because ListItem.Icon and ListItem.Art(thumb) return the same value, I am unable to distinguish what is shown in what situation. So I cannot define x dimensions, y scaling and z position when there's a thumbnail available, but use a dimensions, b scaling and c position when a channel logo is showing.

So, to put it briefly, please consider changing this so that:

- ListItem.Icon: returns channel logo
- ListItem.Art(thumb): returns a thumbnail if available, returns empty when not available.

This way the channel logo can be used as a fallback for thumbnails using a different set of properties. I can't think of any situation where this would take away anything.

Thoughts?

Which program do you use to make textures for your skin?

$
0
0
Just a curiosity... wonder which program you use to make the textures for your skin?

Paint.dot net, gimp, Photoshop ?

what reason for you choosing the program you are using?

Also do you make a mockup of your complete skin before programing or basically jump into it with a rough idea?

I think it will be interesting to see how others start?

Reset textbox to the top

$
0
0
Hi all, please can you tell me the way to reset text box to the top on reload in dialog window?
The textbox is controlled by scrollbar and autoscroll, the problem is that it does not reset to the top on dialog close and re-open.
I believe that it's something easy that I just missed.
Below the code:
PHP Code:
<control type="textbox" id="401">
                    <
description>Plot value</description>
                    <
left>46</left>
                    <
top>370</top>
                    <
width>1390</width>
                    <
height>342</height>
                    <
font>font14_textbox</font>
                    <
align>justify</align>
                    <
textcolor>grey</textcolor>
                    <
shadowcolor>shadow</shadowcolor>
                    <
pagecontrol>62</pagecontrol>
                    <
autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(Enable.AutoScroll)</autoscroll>
                    <
label fallback="161">$INFO[VideoPlayer.NextPlot]</label>
                </
control>
                <
control type="scrollbar" id="62">
                    <
showonepage>true</showonepage>
                    <
left>1450</left>
                    <
top>370</top>
                    <
height>340</height>
                    <
width>8</width>
                    <
onup>PageUp(401)</onup>
                    <
ondown>PageUp(401)</ondown>
                    <
onleft>Skin.ToggleSetting(ToggleLiveTVNext)</onleft>
                    <
onright>Skin.ToggleSetting(ToggleLiveTVNext)</onright>
                    <
onleft>Control.SetFocus(61)</onleft>
                    <
onright>Control.SetFocus(61)</onright>
                    <
texturesliderbackground />
                    <
texturesliderbar colordiffuse="55ffffff" border="1">scrollbar/texturesliderbar2.png</texturesliderbar>
                    <
texturesliderbarfocus border="1">scrollbar/texturesliderbar2.png</texturesliderbarfocus>
                    <
orientation>vertical</orientation>
                </
control

Thanks for help.

int/float slider?

$
0
0
Where do I find info on the int/float slider that's said to be new in v18? How to access it from skin or from python?

It sounds like it might help me with a slider for timeshift position that's more accurate than %.

And has anything else changed in the PVR infotag area around reporting the timeshift start/end and position?

skin description on Kodi website

$
0
0
Not sure if I should post this here, feel free to move if not.

I noticed that on my new skin's add-on page on the Kodi website, the description defaults to the German description Shocked

Am I right to assume this is because of the german string being listed first in my addon.xml? I always assumed it would pick English by default. Is this intended?

Master Lock for Skin Settings?

$
0
0
Hi there,

I'm not sure if the search is working properly on the forums yet as I was unable to find relevant results when I searched for the title of my post...

Also, not sure if this is the correct forum...

I am wondering how, in the Kodi pre-compile code, i would add the Skin Settings as one of the Master Lock options?  I am using/compiling Kodi Krypton 17.4.

I am trying to not let users edit the Skin settings.  :-)

Thanks so much in advance for your time!
Ken

Use of Kodi icons in skin / skin mod

$
0
0
I was looking through the Kodi trademark policy documents and FAQ but didn't really see what seems to be the case of using the Kodi icon as an image in a skin or skin mod.  Aside from the trademarked icons depicted here: http://kodi.wiki/view/Official:Media_center_logos what about the modification of the icon as provided in Krypton media/splash.png which varies in allowed color and background from the trademarked logo?

scott s.
.

Kodi Startup With Emby

$
0
0
I use Emby addon for my libraries and there is usually a longer load time for the addon to initialize and load up my large libraries. Is there a way to have the skin hold on my startup.xml until Emby is connected and the libraries have populated.  My homescreen has several widgets that start up blanket and then fill in, so I am trying to have it start with a more complete look. Any help would be appreciated. Thannk!

Need urgent support!

$
0
0
I work in the software department of a new company called Vision Products. We are working on a new gaming console that will compete with Xbox and Playstation, they have huge TV ads, online ads, and celebrity placements set up for the coming weeks. But me and the software team can not figure out the interface of the console, we will use Windows with Kodi, but we have no Kodi knowledge. We need a super simple Kodi skin, it can be based on the Unity skin. All it needs is a button called games, which will launch Steam in big picture mode, a button for YouTube, which a Kodi plugin already exists for, and a settings button that's able to change and connect to different Wi-Fi networks and Bluetooth devices. We want to use our own wallpaper for the background as well, that's all, please let me know ASAP. We can pay, I don't want to loose my job! I will attach the look we are going for. Thank you so much! https://drive.google.com/open?id=0B7S6ou836i7AcjljSl92bEhPREU

Texture development

$
0
0
Hi,

For someone with little to no graphics abilities I just wondered what people do when they want to create new textures for either an existing skin or creating a new look for a skin?

Any pointers?

Mike

ListItem.Property(DBID) Issue With Emby Addon

$
0
0
I have been using the Emby addon for populating my databases. Before I would always use ListItem.Property(DBID) on my info screen to display an icon on similar movies that were in my database. Since moving to Emby I cannot get the icon to show with this. Any suggestion for what could be used?

Rotate horizontal gif image to vertical?

$
0
0
Hi

I have a horizontal gif image of chritmas lights showing across the screen.

Image


I would like the lights to show vertically down side of screen?

Is there a way to rotate image using skinning without having to use photoshop to rotate each layer?

Cheers


EDIT: Got it solved using the animation effect rotate.
Viewing all 1815 articles
Browse latest View live