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

"previous window after inactivity delay" - Possible ?

$
0
0
Hi,
How do to go at the previous window after inactivity delay.
For example I select a song in music library and after 3s of inactivity there is return to the home (or other).
Thanks

group, group list & textbox issue Kodi 18 nightly.

$
0
0
Looking if someone else is having a issue. I have a group with the top and left set. Normally every in the group would take this coordinate and add to it.. so basically group top is 100 left is 100. Control one I put left 100. Which normally would be a complete offset of 200 but it's not working.

Then I have a group list in this as well and the same applies I am also have align set to center in the group . The label and textbox control somewhat follows this but the group list does not at all. And stays aligned to the left. Can I not have a grouplist in a group anymore?

Maybe I missed a change in the aoruce code?

Any help would be appreciated.

v17 - Dynamic lable overlap image under it

$
0
0
Hey,

I started sometime ago my journey with skining/custom window/windowxml thing.
Im doing a vertical list with items: [ label that can be multiline (wrapping) and image under it ] and next item, the problem is that I cannot make those items to cooperate.
If label is one line is not a problem I set top for image as height of label and all ok, the problem is when label is wrapping (and I want it to wrap), then the top on image is bad.
I was hoping  that using somekind of panel/group would work like add item add next time to the first free space (and use itemgap to make space between), but that dont work
My XML looks like this:


<?xml version="1.0" encoding="UTF-8"?>
<window id="9999">
    <coordinates>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>
    <views>50</views>
    <animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
    <controls>
        <control type="image">
            <description>Fade</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <texture>calendar-background.png</texture>
        </control>
        <control type="label" id="91">
            <left>92</left>
            <top>10</top>
            <height>20</height>
            <width>250</width>
            <font>font20_title</font>
            <textcolor>black</textcolor>
            <label><!-- code date --></label>
        </control>
        <control type="label" id="92">
            <left>92</left>
            <top>30</top>
            <height>20</height>
            <width>250</width>
            <font>font_Flag</font>
            <textcolor>black</textcolor>
            <label><!-- code day --></label>
        </control>
        <control type="panel" id="55">
            <left>10</left>
            <top>50</top>
            <width>250</width>
            <height>1010</height>
            <visible>true</visible>
            <orientation>vertical</orientation>
            <itemlayout height="200" width="250">
        <!-- font_Flag = 18B, font20_title = 20B, font10 = 24L font13 = 30L -->

                <control type="image">
                    <description>serie</description>
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>250</width>
                    <height>200</height>
                    <texture>series-nofo.png</texture>
                </control>
                <control type="label">
                    <left>20</left>

                    <width>250</width>
                    <height>50</height>
                    <textcolor>black</textcolor>
                    <font>font_Flag</font>
                    <label>$INFO[ListItem.Title]</label>
                </control>
                <control type="image">
                    <left>20</left>

                    <width>100</width>
                    <height>150</height>
                    <info>ListItem.Art(fanart)</info>
                </control>

            </itemlayout>
            <focusedlayout height="200" width="250">

                <control type="image">
                    <description>serie</description>
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>250</width>
                    <height>200</height>
                    <texture>series-fo.png</texture>
                </control>
                <control type="textbox">
                    <left>20</left>
                    <width>250</width>
                    <height>auto</height>
                    <textcolor>orange</textcolor>
                    <font>font_Flag</font>
                    <label>$INFO[ListItem.Title]</label>
                </control>
                <control type="image">
                    <left>20</left>

                    <width>100</width>
                    <height>150</height>
                    <info>ListItem.Art(fanart)</info>
                </control>

            </focusedlayout>
        </control>
    </controls>
</window>

Can it be even done?

Multiply Lists in one window but all list have first item 'onfocused'

$
0
0
Im using custom xml with 7 list (verticals)
each list is populated from py with list_number_1.addItem(listitem)
xml have label with ListItem.Title

I set focuse in PY with setFocus(FIRST_LIST)
Everything is drawn on window, but when I move arrow I can move around (up, down, left, right).
In XML each list have onleft, onright to the list next to it, and that works

Only problem is that when I enter Window All list have first item as onFocused (different texture). it looks like it remambers the selection (and mark first on list if there weren't any seleciton)
How can I reset sellected item ?
Do I need to reset selected item on rest of list when I move to different one ?
or can I put all those list to group/panel and force it to navigate by itself ?

v18 - Should Skin.SetAddon(string,xbmc.addon.game) work?

$
0
0
I am working in retroplayer fork Kodi 18 180817 nightly and would like to use Skin.SetAddon for game add-ons.  Trying this does not launch a select dialog.
There are add-ons installed with <provides>game</provides> in addon.xml.

scott s.
.

Use one list container to open playlist in another?

$
0
0
I have a list on the left full of playlists (including the regular Kodi ones) and a list on the right that's the primary music browser. I want to select a playlist on the left and have it appear and be usable in the right.

Is this possible?

Position in a list?

$
0
0
Sorry for being dense - I feel this must have been mentioned countless times before. What's the infolabel for an item's position in a list container?

v18 - ListItem.Property(Role.????) - Missing Wiki property's, Container(50) issues

$
0
0
Is there a full list of the role property's somewhere?

I have found some not in the wiki;
ListItem.Property(Role.Mix)
ListItem.Property(Role.Drums)
ListItem.Property(Role.Guitars)
ListItem.Property(Role.Percussion)
ListItem.Property(Role.Keyboard)

My issue is i am trying to code the DialogMusicInfo.xml
Container(50) puts each person as a separate ListItem. i.e. Instead of Role: Name/Name/Name, Role: Name, then next line, Role: Name ect.

I have this in my advanced settings if that makes a difference;
<musiclibrary>
        <itemseparator>/</itemseparator>
</musiclibrary>

Cheers
Mr. V

If statement in visiblity condition

$
0
0
hi, 

can someone help me on how to add the following function in a visible tag:
    if updater.availableUpdate():


Thank you for taking the time.

Solved - Can Kodi handle 4K (3840x2160) textures?

$
0
0
I've tried using a 4K image as a wallpaper (on Xbox One X) but the result looked pretty bad - certainly not the full resolution. Is there a limit on what Kodi can use?

Got some problems with "System.GetBool(bool)"

$
0
0
Hello

Im my SettingsWindow i use a lot of Fakelists, now i have also buttons in these Fakelists which should show the actual Setting from another Settingswindow (i.e. SettingsCathegory.xml)

to achive this, i did try to read the coresponding setting via "System.GetBool(bool)" but got some Problems with it.

"System.GetBool(bool)" is listed as "Infolabel" but doesnt/(seems not to) return a Value/String, even if i use something well knewn as "Pvr.HasTVChannels".

What i did try is, use the bool directly in the "<selected>" Tag in a Radiobutton Control, and as a second attempt as visible condition in two different ways. Non of them worked.

Hers the Code: (Bool as visible condition)

          <control type="radiobutton">
                <label>$LOCALIZE[36615]</label>
                <selected>true</selected>
                <textcolor>DialogTextColor2</textcolor>
                <visible>String.IsEqual(System.GetBool(unknownsources),true)</visible>
            </control>
            <control type="radiobutton">
                <label>$LOCALIZE[36615]</label>
                <selected>false</selected>
                <textcolor>DialogTextColor2</textcolor>
                <visible>!String.IsEqual(System.GetBool(unknownsources),true)</visible>
            </control>


          <control type="radiobutton">
                <label>$LOCALIZE[36615]</label>
                <selected>true</selected>
                <textcolor>DialogTextColor2</textcolor>
                <visible>System.GetBool(unknownsources)</visible>
            </control>
            ...

My favoret question: "Shuldnt this work"? Or in other Words: Where do i do the Mistake here?

And where do i finde the Bool for "show notifications" (Settings -> System - > Addons)?
(Didnt finde it in the GUISettings.)

Regards

End Time - PVR Recordings

$
0
0
Can anybody see any obvious errors/glitches with this code, because the end time for my PVR Recordings always returns a result of between 1-3 mins after the start time:-

<label>$INFO[ListItem.StartDate,[COLOR button_focus]Recorded On:[/COLOR] ,[CR]]$INFO[ListItem.StartTime,[COLOR button_focus]Recording Time:[/COLOR] ,] - $INFO[ListItem.EndTime]Hrs [COLOR button_focus] Duration:[/COLOR] $VAR[DurationVar][CR][COLOR button_focus]Genre:[/COLOR] $VAR[PVR_Genre_Info][CR][COLOR button_focus]Parental Guidance Rating:[/COLOR] $VAR[PVR_MPAA_Info][CR][CR][CR]</label>

I looked to see if there had been any changes made for Leia, but couldn't see anything. Everything else works as expected, so was hoping a fresh pair of eyes might spot some obvious mistake I've made with regard to the end time.
Cheers

v18 - gamewindow control

$
0
0
This isn't listed in the skin changes for Leia thread, but I did see it in the doxygen Kodi docs (though IMHO it isn't in the correct level in the TOC).  According to the Kodi docs, the available tags for this control are only the default tags.  But examining the xml in Estuary, I see that tags
Code:
<videofilter>
<viewmode>
<rotation>
are being used in this control.  Is there any documentation on these tags?  I can guess from the context they are needed when a gamecontrol is used in container 11 which core supplies in the select dialog (DialogSelect.xml) as part of DialogGameVideoSelect (also supplies a textbox 12).  Mainly I'm interested in finding out anything else skinners should be aware of with the gamewindow control.

scott s.
.

Request - Extending Container.Update / Container.Refresh

$
0
0
We already have Container.Update and .Refresh which can be used in library pages.
I would love to see these functions working in other windows for custom list containers by providing an ID.

Example -> Container(200).Refresh

This would give skinners better control about widget behaviours in some cases.

v18 - Want to show playlist on the player only

$
0
0
Hello Everyone,

Can any one help me on this, that how we can display all playlist list on the music player while playing the song. I have tried to edit musicosd.xml file and added fixedlist control type to display the list of playlist but didn't got any success.

Thanks in advance

Edit Music Player Layout

$
0
0
Hello Everyone,

Can any one let me know any tutorial site or page which can guide me , How to edit player layout?

Thanks In Advance

Next/Prev Channel Group

$
0
0
Hi, 

I have created a list (see below) of my channels for my PVR. How can add a function to switch channel groups for the list?

Thank you.

Image

Need help reading skin settings

$
0
0
Hi,

I was trying to dynamically set the names of my settings using Container.Content. The following works perfectly and toggled tvshows.nohighlist  and others.

<control type="togglebutton" id="6053">
    <description>LowList Toggle</description>
    <textwidth>255</textwidth>
    <include>ButtonCommonValues</include>
    <label>$LOCALIZE[31093]</label>
    <onclick>Skin.ToggleSetting($INFO[Container.Content,,.nohighlist])</onclick>
    <onclick>ReloadSkin()</onclick>
    <visible>Control.IsVisible(501)</visible>
</control>

I am, however, unable to read this back dynamically. What I am trying to do is replace nohighlist in the code below, with my setting names that are Container.Content + .nohighlist.

<visible>!Skin.HasSetting(nohighlist)</visible>

I tried just basic replacement and it didn't work.

<visible>!Skin.HasSetting($INFO[Container.Content,,.nohighlist])</visible>

I tried setting a variable and expressions and they didn't work either. Do you have any pointers for me?

Conditional Height

$
0
0
I have a fixedlist control of about 800 lines which I want to display with different heights, based on Container.Content. Normally, I would have used conditional includes but since includes cannot resolve Container.Content, I am in need of a different approach. 

Many years ago, the only way was to have different controls for each condition, but I am hoping that someone has identified a better way; I would hate to have to duplicate 800 lines of definition.

Background/Fanart Autoscroll

$
0
0
Hi there,

I have a "RecentMovie" Widget on my homescreen, which autoscrolls through the items (shown as a Poster) in that list. For now the background/fanart switches every time the widget scrolls to another item. But instead of a "simple" switch I would like to autoscroll through the fanarts in the same rhythym as the widget autoscrolls through the items.

The current fanart switch works with:


<control type="image" id="32117">
   <include>FullScreenDimensions</include>
   <aspectratio>scale</aspectratio>
   <texture background="true">$INFO[Container(11011).ListItem.Art(fanart)]</texture>
   <visible>Container(9000).HasFocus(10) + !Skin.HasSetting(hide_fanarthome)</visible>
</control>

So since Autoscroll for an image only works within a Container (as far as I know?) I tried following:


<control type="wraplist" id="32117">
   <posx>0</posx>
   <posy>0</posy>
   <width>1920</width>
   <height>1080</height>
   <viewtype label="List">List</viewtype>
   <autoscroll time="15000" delay="15000" repeat="15000">Container(9000).HasFocus(10)</autoscroll>
   <orientation>horizontal</orientation>
   <preloaditems>2</preloaditems>
   <visible>Container(9000).HasFocus(10) + !Skin.HasSetting(hide_fanarthome)</visible>                        
   <itemlayout width="1920" height="1080">
      <control type="image">
         <posx>0</posx>
         <posy>0</posy>
         <width>1920</width>
         <height>1080</height>
         <aspectratio>scale</aspectratio>
         <texture background="true">$INFO[Container(11011).ListItem.Art(fanart)]</texture>
      </control>
   </itemlayout>
   <focusedlayout width="1920" height="1080">
      <control type="image">
         <posx>0</posx>
         <posy>0</posy>
         <width>1920</width>
         <height>1080</height>
         <aspectratio>scale</aspectratio>
         <texture background="true">$INFO[Container(11011).ListItem.Art(fanart)]</texture>
      </control>
   </focusedlayout>
</control>

Unfortunately that doesn't work. I guess its because I useing the content from another container within a different container!? Is there any solution for what I trying to achieve or is it not possible?
Viewing all 1803 articles
Browse latest View live