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

fanart art issus that is rackin my brain.

$
0
0
So this is the variable for the fanart
Code:
<variable name="GlobalBackground">
    <value condition="!String.IsEmpty(Skin.String(MyBackground))+Skin.HasSetting(CustomBackground)">$INFO[Skin.String(MyBackground)]</value>
    <value condition="!String.IsEmpty(Container(9001).ListItem.Art(fanart)) + !Skin.HasSetting(featured)+Window.IsActive(Home)">$INFO[Container(9001).ListItem.Art(fanart)]</value>
    <value condition="!String.IsEmpty(Container(9001).ListItem.Art(fanart)) + ControlGroup(7001).HasFocus + Skin.HasSetting(featured)+Window.IsActive(Home)">$INFO[Container(9001).ListItem.Art(fanart)]</value>
    <value condition="!String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>
    <value/>
</variable>

Just so you know container 9001 is a widget... This works fine on my phone no mater what I change the widget to ... but on the pc if fill the widget with a addon. it will only show the first item fanart when I have contatiner 9001 in focus instead of changing and a differ movie comes into focus.

Any ideas?

question about where to find exact locations of controls

$
0
0
i know i can easily find the xml file that's associated with the current window, but that doesn't exactly mean that the control or container is in that xml, is there some kind of algorithm i can follow when it comes to distinguishing this progmatically. from what i understand, conditional visibility plays a big part, from the view id to the container content etc... and also includes. i'm making a tool for skinners and it's beginning to become tedious. so dont be afraid to make a suggestion

PVR Timer Rules

$
0
0
I am not a PVR user and I have to rely on the PVR Demo add-on so excuse my ignorance, but can anybody explain the point of the Timer Rules entry I see in skins?

Seems to me it just links to the same dialog the "New timer" entry in the Timers window links to? Or am I missing something?

As there is no shortage of buttons, bells and whistles in the PVR I'd rather leave it out if it's unnecessary.

addon.xml proper use of

$
0
0
Looking through the wiki, I don't think I understand the best practice for defining skin resolutions. From looking at Estuary, I assume using resolution-unique named folders is deprecated, instead the <res/> tag should be used? Is there an advantage of using one method over the other? Is there a minimum number of <res/> options that should be provided? Does "width" and "height" take priority over "aspect", or are both even needed? Anything else that should be known about resolutions? I assume it is now standard that default layout should be 1080-based?

scott s.
.

Dialog Confirm Different Button Layouts

$
0
0
I'm currently coding DialogConfirm.xml and am trying to have different button sizes depending on whether it's an OK, Yes/No or Progress dialog. This is my code...

Code:
            
            <!--ok buttons-->
            <control type="group">
                <visible>Window.IsVisible(OKDialog)</visible>
            
                <!--buttons-->
                <control type="grouplist" id="9000">
                    <left>-15</left>
                    <bottom>-15</bottom>
                    <width>1040</width>
                    <height>120</height>
                    <align>left</align>
                    <orientation>horizontal</orientation>
                    <itemgap>-30</itemgap>
                    
                    <!--ok-->
                    <include content="Dialog.Popup.Button">
                        <param name="id" value="11" />
                        <param name="label" value="" />
                        <param name="width" value="1030" />
                    </include>
                    
                </control>
                
            </control>
            
            <!--yes / no buttons-->
            <control type="group">
                <visible>Window.IsVisible(YesNoDialog)</visible>
            
                <!--buttons-->
                <control type="grouplist" id="9000">
                    <left>-15</left>
                    <bottom>-15</bottom>
                    <width>1040</width>
                    <height>120</height>
                    <align>left</align>
                    <orientation>horizontal</orientation>
                    <itemgap>-30</itemgap>
                    
                    <!--yes-->
                    <include content="Dialog.Popup.Button">
                        <param name="id" value="11" />
                        <param name="label" value="" />
                        <param name="width" value="530" />
                    </include>
                    
                    <!--no-->
                    <include content="Dialog.Popup.Button">
                        <param name="id" value="10" />
                        <param name="label" value="" />
                        <param name="width" value="530" />
                    </include>
                    
                </control>
                
            </control>
            
            <!--progress buttons-->
            <control type="group">
                <visible>Window.IsVisible(ProgressDialog)</visible>
            
                <!--buttons-->
                <control type="grouplist" id="9000">
                    <left>-15</left>
                    <bottom>-15</bottom>
                    <width>1040</width>
                    <height>120</height>
                    <align>left</align>
                    <orientation>horizontal</orientation>
                    <itemgap>-30</itemgap>
                    
                    <!--cancel-->
                    <include content="Dialog.Popup.Button">
                        <param name="id" value="10" />
                        <param name="label" value="" />
                        <param name="width" value="1030" />
                    </include>
                    
                </control>
                
            </control>

It works fine for OK and Yes/No. when it's an OK dialog it's one full width button, when it's a Yes/No it's two half width buttons. It isn't working properly for Progress though. The full width button is there but it never has focus. Any ideas why?

Also if someone could shed some light on what I'm meant to do with the id="12" button that would be great, I've taken it out for now but if it's something that's gonna come into prominence in the near future then it would be good to know!

Thanks

Movie Set infopage buttons

$
0
0
Hi everyone,
I'm trying to add two buttons in the custom infopage below for movie sets.
On the first one I want it to open the collection folder (show the movies inside the collection) and on the second one I want it to open the window "choose art"

on the first one I tried this
PHP Code:
<control type="button" id ="8">
<
description>Movies</description>
    <
label>342</label>
    <include>
DefInfoButtons</include>
    <
onclick>Action(Select,1)</onclick>
    <
onclick>Action(Close)</onclick>                        
</
control

on the second, I tried this. The sendclick works on the dialogvideoinfo, but not on this custom window. it is possible to choose artwork on the contextmenu->manage
PHP Code:
<control type="button" id ="33">
        <
description>Get Thumb</description>
        <
label>13405</label>
        <include>
DefInfoButtons</include>
    <
onclick>SendClick(10)</onclick>
        <
visible>!Skin.HasSetting(global.kioskmode)</visible>
 </
control

Neither of those worked so I need your help to figure it out.

[Image: f6vLksj.png]

Thanks in advance
Best regards

request: onclick for scrollbar possible?

$
0
0
Would be a help for me if not others, thanks Big Grin

Minimal set of files required?

$
0
0
Hello,

What is the minimal set of files required for a skin? Any specific elements they have to implement?

I mean, I created a "skin" consisting of only Home.xml file (+addon.xml). I expected to get GUI consisting of just my home screen (or empty/garbled one, as probably there are errors in my Home.xml), but it looked like Kodi was confused and after loading the skin it just blanked the settings screen.

refresh a window

$
0
0
Hi everybody;

I'm working in my mod, and I need refresh a window after change a condition, but I don't know how can i do it. Anybody can help me?

I want change between standard lyrics and manfeed style lyrics, but I need reload all music window for the change. I can't get the correct command for it.

Thanks for all.

Progress control problems

$
0
0
Hello

Look at this progress:
watch gallery


Where does the border come from and why lefttexture and righttexture are stretched (they are 2 pixel wide images - the white on the ends indicates the stretch, as I have not applied transparency yet)?

The code:

Code:
<control type="progress">
<description>My first progress control</description>
<left>80</left>
<top>60</top>
<height>20</height>
<lefttexture border="0">pb-start.png</lefttexture>
<midtexture border="0">pb.png</midtexture>
<righttexture border="0">pb-end.png</righttexture>
<info>100</info>
<width>500</width>
</control>

Button "Clash" with main menu

$
0
0
I am new to skinning so created 4 new buttons and aligned 2 of each either side of the main menu bar. The 2 on the left are fine focus 90100, 90120 and work as they should

The 2 on the right I called id. 90130 and 90110, they don't work at all and turning on debug, the 2 on the left, focus 90100 and 90120 show fine, yet the 2 to the right both shows as 9000, the same as the main menu focus.

I set easing out to 0, to try and solve the problem to no avail, if I move them up the screen, they then work fine,

So any ideas what I may be doing wrong please.

Common background slideshow

$
0
0
Hi,

Is this possible to have full-screen slideshow in window background (that's simple), that is common for multiple windows (full windows, not dialogs)? The idea is that navigating to another window would not break slideshow sequence.

Kodi skin that imitates iPod Classic

$
0
0
Hello readers.. I'm trying to develop a portable Kodi media center to replace my iPod Classic 5, which broke. Since Apple ceased the manufacture of iPod Classics, I did some research and found the Raspberry Pie computer and Kodi. Some parts of the default theme are too small on the portable display I'm currently using (a 2.5" TFT)
I don't have any programming experience, but I do know about graphic design. I'm requesting help with the "xml" parts of the theme to make a skin for Kodi that looks like the OS on an iPod Classic.

Thanks for reading!

Player.ProgressCache texture show at 10

$
0
0
Hi,

I need help. I use png´s as a texture for a progress bar. but I start at 10 not 0
pictures called 0.png-100.png the id="22" gives numbers from 0-100
What do I have to do

Quote:<control type="progress" id="32">
<animation effect="slide" start="0,-238" end="0,0" time="240" tween="quadratic">WindowOpen</animation>
<animation effect="slide" end="0,-238" start="0,0" time="240" tween="quadratic">WindowClose</animation>
<description>progress control</description>
<left>0</left>
<top>2</top>
<width>105</width>
<height>200</height>
<colordiffuse>006db9e5</colordiffuse>
<info>Player.ProgressCache</info>
</control>
<control type="image">
<top>90</top>
<left>155</left>
<width>390</width>
<height>390</height>
<aligny>top</aligny>
<animation effect="rotate" end="-360" center="auto" time="4000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<texture background="true">$INFO[Control.GetLabel(32),progress/,.png]</texture>
</control>

this is the code I wrote.

also the pictures flicker while change. How can I solve this issue
Please help.

Do skinners agree with this pull request I made for supplied strings


Using a PARAM to Check a Boolean Condition

$
0
0
Is this a valid use of a $PARAM?

I have a couple of buttons with visible conditions checking if a container HasNext or HasPrevious. If I hard-code the Container ID, everything works as expected.

Code:
<visible>Container($PARAM[list_id]).HasPrevious</visible>

When I attempt to use a $PARAM for any boolean condition, my Kodi.log idicates the following:
Code:
15:59:12.986 T:6012   ERROR: Misplaced [
15:59:12.986 T:6012   ERROR: Error parsing boolean expression Container($PARAM[list_id]).HasPrevious
15:59:12.986 T:6012   ERROR: Misplaced [
15:59:12.986 T:6012   ERROR: Error parsing boolean expression Container($PARAM[list_id]).HasNext

I am unable to find anything stating that this is not a valid use of PARAM. Additionally, it works for InfoLabels on the same Container.

Edit: I should mention I am attempting my testing on Kodi 17.1.

Kodi built in settings user select start up window.

$
0
0
Last question for tonight the. Built in Kodi setting that allow the user to choose the window they would like to make home... Is the a way to disable that as a selectable item? My skin will not support this on the traditional sense..

Some questions regarding windows handling

$
0
0
1. <ononluad> for a window - is this called on ActivateWindow() for another window? What if the window activated is a dialog?
2. How to close a custom dialog, returning back to calling window? Are there some default buttons for a custom dialog with default actions?
3. I am calling ActivateWindow() from a custom dialog. Should I somehow cleanup current custom/normal dialog before calling ActivateWindow()?

Add widgets, no option for up or down from the widget

$
0
0
Using a modded silvo skin, when i add a widget am pretty sure some code is missing. the widget is focus 80211, however i need an option as to whether a widget is present or not so i can go up or down from the widgets, dependant if one is there or not.

Could anyone please help with the code if possible, ot point me in the right direction.

TY

Set rating button problem

$
0
0
Hi everyone,
I'm having issues with the label for the "set my rating" button->id=7 on music (albums and songs)
What I'm trying to do and already works on tvshows and movies is when there is no user rating the label is "set my rating", if the rating is already set, the button label is "my rating . "rating number"
the problem is that I cannot archive the same result on music. the default label is "set my rating" no matter what I do... What is the problem/what am I doing wrong

PHP Code:
<variable name="SetSee">
        <
value condition="IsEmpty(ListItem.UserRating)">$LOCALIZE[38023]</value>
        <
value condition="!IsEmpty(ListItem.UserRating)">$LOCALIZE[38018• $INFO[ListItem.UserRating]</value>
 </
variable

PHP Code:
<control type="button" id="7">
    <
description>Set my rating</description>
    <
label>$VAR[SetSee]</label>
       <include>
DefInfoButtons</include>
</
control


[Image: IG4wXzg.png]
[Image: HIKqcd4.png]

Thanks in advance
Best Regards
Viewing all 1806 articles
Browse latest View live