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

Custom Skin

$
0
0
Hi,

We are looking to use Kodi as an engine for video presentations.
We control content and commands thru IP and we would like to have a completely black screen when nothing is playing.
We also don't won't to see any buttons or time bar appearing when starting or stopping content.
If one of the menu's could be completely black and when we select left or right the menu appears to go to the settings.

Does it exists? How can I get such a skin. We can pay for the development if needed.

Many regards,
Michael Van De Poel
Wtec

Kodi 17.3 - Episodes (TVShows) watched status propertys not updated

$
0
0
After watching an episode of a TV Show and returning from player (fullscreen) to library automatically (via kodi as default when episode ends; normal), these propertys aren't updated until library returns to TV Shows level.

OR at least it isn't updating for python to use, ie.

Code:
stot = int(xbmc.getInfoLabel('ListItem.Property(TotalEpisodes)'))
wtot = int(xbmc.getInfoLabel('ListItem.Property(WatchedEpisodes)'))

I see no change in these propertys unless I navigate to show level then re-enter seasons/episodes levels.

[has been like this previous to kodi 17.3, not sure if same in Jarvis]

Skinning and Music Videos

$
0
0
I am not sure if this was an issue in previous versions;

There are two ways to access music videos. Through the video library or through the music library.

If i browse through the music library, kodi will use mymusicnav.xml and use myvideonav.xml if i browse through the video library.

A few issues;
- myvideonav; the info dialog in cannot be called for artists or albums only videoinfo for titles
- mymusicnav; for artist and albums it calls the music info dialog, for titles the video info dialog
- mymusicnav; for artist and albums. There is no way to use genre, year, studio,label2 ect in the container. If you create an empty music info dialog, opening the dialog will fill all the listitems in the container within the selected view, until you close the info dialog.

My biggest issue is the listitems that are not available for mymusicnav. Any thoughts from devs or skinners?

Leia - DialogVideoInfo.xml focus/control issue? \o/

$
0
0
StringCompare strikes again.. carry on. [=-}

question on togglebutton state retrieval

$
0
0
hi,
could one help me find out how to conditionally run a different script pls?

I have a togglebutton so far, and depending on it's state a different script (or same script but other paramvalue) should be run.

I have a togglebutton defined as this:

Code:
<control type="togglebutton" id="90">
        <description>Toggle</description>
        <left>300</left>
        <top>25</top>
        <width>140</width>
        <height>55</height>

        <texturefocus>custom_homy_bizli_off.png</texturefocus>
        <texturenofocus>custom_homy_bizli_off.png</texturenofocus>
        <alttexturefocus>custom_homy_bizli_on.png</alttexturefocus>
        <alttexturenofocus>custom_homy_bizli_on.png</alttexturenofocus>

        <label>-</label>
        <onleft>1</onleft>
        <onright>1</onright>
        <onup>1</onup>
        <ondown>1</ondown>
</control>

and later on a button with an
Code:
<onclick>RunScript("/path/to/script/stateOn.py")</onclick>


I have no idea so far how to make it conditionally call a different script. Can one help me and give a hint? I don't find function like Control.GetState(90) or the like.

Thx in advance!
thomas[/code]

... and for the special ones... I did really search a very reasonable time on a solution. Once I know the solution I'm sure I'll find tons of resources and articles... but if you're on the wrong track and search on the wrong track you find the wrong stuff.

Why do movie posters take longer to load than tv posters?

$
0
0
On first opening a viewtype, TV Posters load (or seem to) instantly, movies always lag?

With preloaditems has no effect.
Set (collections) Posters for movies load instantly.

Is it just all the info involved with movies slowing it down, or is the image getting loaded last?

This is on Leia but was same on Krpyton, before that I cant rememeber!

Leia Blu-ray menu controls?

$
0
0
So playing with Kodi 18 and have full have Blu-ray menu support wish is awesome btw... But my question is what is the keyboard shortcuts for the topmenu/ main Blu-ray menu while the movie is playing?

Preview are cool but I want to just to the main menu sometimes just to watch some extras.

Skin settings no longer available after migration from Kodi 15

$
0
0
Hi all,

I'm trying to fix my Kodi 15 skin to make it work with Kodi 17.
An issue I'm having is that I have a 'resources' folder with 'settings.xml' which somehow is no longer 'seen' on Kodi 17.
(Selecting my skin in the addon section displays no 'settings' button any longer.)

Somehow I assume that it is not allowed to use these settings.xml for skin settings. (I see this construction being used with all other types of addons.)

I used strings.xml which I replaces with .po files, but that does not change the effect.
Also I used to have a shortcut; "Addon.OpenSettings(skin.my_skin)" which now stalls...

Does anyone know if there are any changed requirements here?

Thanks!
Jeroen

Skinning Beginner

$
0
0
Hello all. I'm knew to Kodi development, but not to Python and am struggling with my initial attempt at building a script that calls an XML file to populate a basic control on screen.

My Python script is:

Code:
import xbmc, xbmcgui, os
    
    class cGUI(xbmcgui.WindowXML):
        
        def __init__(self, *args, **kwargs):
                
            xbmcgui.WindowXML.__init__(self, *args, **kwargs)
    
            self.addControl(xbmcgui.ControlImage(0, 0, 1300, 720, 'special://home//addons//script.video.test2//resources//images//Test file.jpg'))
            
            self.listing = kwargs.get("listing")
            self.main_control_id = kwargs.get("id")
    
        def onInit(self):
            self.exit_monitor = ExitMonitor(self.close_gui)
            self.gui_listbox = self.getControl(self.main_control_id)
            self.gui_listbox.reset()
    
        def onClick(self, controlID):
            if controlID == self.main_control_id:
                self.gui_listbox_SelectedPosition = self.gui_listbox.getSelectedPosition()
    
        def onAction(self, action):
            focused_control=self.getFocusId()
            if action in [ xbmcgui.ACTION_MOVE_LEFT ]:
                if focused_control==self.main_control_id:
                    self.message('You selected : Test Item')
    
    
    ui = cGUI('controltest.xml', 'special://home//script.video.test2//resources//skins//Default//1080i', default='Default', defaultRes='1080i', id=1100)
    ui.doModal()

...and my XML file in the location referenced in the script is:

Code:
<control type="button" id="1100">
          <description>My first button control</description>
          <left>80</left>
          <top>60</top>
          <width>250</width>
          <height>200</height>
          <visible>true</visible>
          <colordiffuse>FFFFFFFF</colordiffuse>
          <texturefocus colordiffuse="FFFFAAFF">myfocustexture.png</texturefocus>
          <texturenofocus colordiffuse="FFFFAAFF">mynormaltexture.png</texturenofocus>
          <label>29</label>
          <wrapmultiline>true</wrapmultiline>
          <font>font12</font>
          <textcolor>FFFFFFFF</textcolor>
          <focusedcolor>FFFFFFFF</focusedcolor>
          <disabledcolor>80FFFFFF</disabledcolor>
          <invalidcolor>FFFFFFFF</invalidcolor>
          <align></align>
          <aligny></aligny>
          <textoffsetx></textoffsetx>
          <textoffsety></textoffsety>
          <pulseonselect></pulseonselect>
          <onclick>XBMC.ActivateWindow(MyVideos)</onclick>
          <onfocus>-</onfocus>
          <onunfocus>-</onunfocus>
          <onup>2</onup>
          <ondown>3</ondown>
          <onleft>1</onleft>
          <onright>1</onright>
    </control>

I am getting an error though of:

Code:
RuntimeError: XML File for Window is missing

...I can't help but think I am nearly there with this and have just made a small mistake somewhere.


Can anyone assist in resolving?

Q: Understanding skin resolutions

$
0
0
So the skin I work on provided a 720p folder with all the xml files. For Leia, I converted my layout to 1080/16:9 aspect. Following the example of Estuary (don't know why this is now preferred though) I placed all the new xml files in an xml folder, then modified addon.xml (again using Estuary as guidance) such that:

Code:
    <extension point="xbmc.gui.skin"  effectslowdown="0.75" debugging="false">
        <res width="1920" height="1440" aspect="4:3" default="false" folder="xml" />
        <res width="1920" height="1280" aspect="3:2" default="false" folder="xml" />
        <res width="1920" height="1200" aspect="16:10" default="false" folder="xml" />
        <res width="2040" height="1080" aspect="17:9" default="false" folder="xml" />
        <res width="1920" height="1080" aspect="16:9" default="true" folder="xml" />
        <res width="1280" height="720" aspect="16:9" default="true" folder="720p"/>
        <res width="2560" height="1080" aspect="21:9" default="false" folder="xml" />
    </extension>

For no particular reason, I left the 720p folder in place. My understanding of the intent of addon.xml, is that only when screen resolution is set to 1280x720 the 720p folder would be used; otherwise for any other screen resolution the xml folder is used.

However, in looking at logs when my skin is first loaded, Kodi logs:

First, under windows screen resolution is 1920,1080 (Kodi set to full screen using window)

Code:
DEBUG: CWinEventsWin32::WndProc: window resize event
DEBUG: CWinEventsWin32::WndProc: window move event
DEBUG: CWinSystemWin32::ResizeInternal - resizing due to size change (0,0,1920,1080 fullscreen)->(0,0,1920,1080 fullscreen)
DEBUG: CWinEventsWin32::WndProcWindow is active

Eventually my skin starts loading:

Code:
INFO: Loading custom window XMLs from skin path E:\Media\Kodi 18 A1 0629\portable_data\addons\skin.aeonmq5.leiamod\xml

then

Code:
INFO: Loading custom window XMLs from skin path E:\Media\Kodi 18 A1 0629\portable_data\addons\skin.aeonmq5.leiamod\720p
ERROR: No id specified or id already in use for custom window in CustomCode.xml
ERROR: No id specified or id already in use for custom window in CustomDelay.xml
...


So if I understand what is happening all my custom skin files from xml folder are read, then the 720p folder, even though there should be no need to load those files given the addon.xml says use xml folder for current screen resolution? Then Kodi errors on all the "custom" xml files that of course are duped in each of the two folders.

So I guess I have no understanding of how multiple skin xml resolution folders along with addon.xml are supposed to work?


scott s.
.

Textboxes with auto-height will scroll if the font has non-default linespacing.

$
0
0
Is anyone else experiencing this?

I have a font that has <linespacing>1.2</linespacing>

When I use a textbox with <height>auto</height>, even if it has plenty of space it will still auto scroll as if the last line doesn't fit (even if there is enough vertical space for extra 2 or 3 more lines). If I remove the linespacing from the font it works correctly.

This is really frustrating as the only space I use custom line spacing is in auto sizing textboxes!

I'm guessing the only solution is to modify the font in font-forge and add the linespacing into the actual font.

ListItem.ChannelGroup not working

$
0
0
I was wondering where ListItem.ChannelGroup is supposed to work?

I would like to use this label in MyPVRChannels.xml and MyPVRGuide.xml, but it doesn't return anything.

How to have textures default to the current skin?

$
0
0
I'm trying to design a large custom dialog, but I don't want to go through the process of creating all the png background images for textures. Is there some way I can have the dialog use the currently-set theme's textures? If so, how? Can I simply leave out the texture tags in the xml or will that cause the controls to not be visible?

script.colorbox

$
0
0
Blurb, I will try support here when I can.
The script will change as more users use it.

Next version (2.0.3) will probably break skins, in as far as setting up own unlimted amount of containers and own ID numbers will be the defacto.

2.0.2
  • Own multiple containers can be defined (cannot be changed after init atm)
  • Ability to ask for a set of window propertys and then set them randomly
  • Three containers (7972 7973 7974) to strip various formatting codes from strings ([CR] /r /t etc.)
  • RunScript support improved
  • LUMAImageColor* and BWImageColor* (prefix manual type in next version) will give value 0-256 based on main color (luminosity and contrast)

Currently included:
  • Various effects including pixelate, posterize, blur, pixelshifts, distortions, two tone and more (see default.py 'ColorBox_function_map')
  • Episodes watched percentage for tvshows (Show_Percentage)
  • Auto transition between colors for daemon types
  • ListItem.Art(fanart) auto processed if set (cfa_daemon_set)
  • Change various settings via NINE_manual_set, ie, pixelsize, quality (see default.py 'ColorBox_settings_map')
  • Manual types eg. 'RunScript(script.colorbox,info=blur,id=PICTURE_NAME,prefix=mypic1,blursize=1,qu​ality=8)'

See skin.adonic for implementations (in Kodi Repo)
My repo has latest versions [adonic for Leia only due to DialogAddonSettings.xml] https://github.com/BADMS/repository.BADM...-1.0.0.zip

[Image: icon.png]
https://github.com/BADMS/script.colorbox

Problem with Playlist Window

$
0
0
i have two different Views for the Playlist Window. One for Video one for Music

therefore i use the visible conditions
Code:
Window.IsVisible(videoplaylist)
to show the video view, and
Code:
Window.IsVisible(musicplaylist)
to show the music view, but Kodi gives a d.F. on these Conditions. (both Views are always visible in the Playlist View (MyPlaylist.xml), No mather which Media is in it.

I did also try
Window.IsActive(videoplaylist) + String.IsEqual(ListItem.DBType,video) + Window.Is(videoplaylist)

Kodi dont care at all.

BUG?

Is there a workaround? Solution?

Im on 17.3

Kodi Default Splash Screen?

$
0
0
Want to know is there a way disable default splash screen with Kodi logo from within the skin or using python? I know I can delete it. But I am lazy and don't want too.

"VideoPlayer.offset(number).Title"

$
0
0
We have already "MusicPlayer.offset(number).Title"

Would be nice if we get the Same for video.

-> needed as a condition to show a playlist Icon if more than one Item is in the playlist ->
Code:
!String.IsEmpty(VideoPlayer.offset(1).Title)

Regards.



EDIT:
Found a solution to show the Playlisticon only if the playlist got more than one Item.

anyway, maybe still a usefull feature request to have consistency between music and Video.

Panel Content won't open onclick on Krypton

$
0
0
Hey there,

Using a panel with <content target="video">videodb://tvshows/titles/</content> but when I click on one of the TV Shows on the panel it doesn't open to the TV Seasons. This previously worked in Jarvis but doesn't in Krypton.

Any suggestions?

Thanks in advance.

Kodi 17 Confluence Menu Position

$
0
0
How can the menu position be changed in Kodi 17 for the skin Confluence? The Home.xml has changed from prior versions.

Grouplist localizes not showing??? stumped..

$
0
0
My SkinSettings.xml has this grouplist for initial options:
Code:
            <control type="list" id="9990">
                <left>70</left>
                <top>604</top>
                <width>340</width>
                <height>310</height>
                <onup>9990</onup>
                <ondown>9990</ondown>
                <onleft>59</onleft>
                <onright condition="Container(9990).HasFocus(8)">60</onright>
                <onright condition="!Container(9990).HasFocus(8)">9991</onright>
                <focusposition>0</focusposition>
                <movement>0</movement>
                <pagecontrol>59</pagecontrol>
                <orientation>Vertical</orientation>
                <scrolltime tween="quadratic" easing="out">300</scrolltime>
                <itemlayout height="62" width="340">
                    <control type="label">
                        <font>font30</font>
                        <textcolor>$VAR[ColorMenuVar]</textcolor>
                        <label>1$INFO[ListItem.Label]</label>
                    </control>
                </itemlayout>
                <focusedlayout height="62" width="340">
                    <control type="image">
                        <animation effect="fade" time="50" start="100" end="50" condition="!Control.HasFocus(9990)">Conditional</animation>
                        <texture>listselect_fo.png</texture>
                        <colordiffuse>$VAR[MenuListColorHighlightVar]</colordiffuse>
                        <include>VisibleFadeEffect</include>
                    </control>
                    <control type="label">
                        <left>0</left>
                        <font>font30</font>
                        <textcolor>$VAR[ColorMenuVar]</textcolor>
                        <label>2$INFO[ListItem.Label]</label>
                    </control>
                </focusedlayout>
                <content>
                    <item id="1">
                        <label>513</label>
                    </item>
                    <item id="2">
                        <label>31311</label>
                    </item>
                    <item id="3">
                        <label>33069</label>
                    </item>
                    <item id="4">
                        <label>16000</label>
                    </item>
                    <item id="5">
                        <label>31009</label>
                    </item>
                    <item id="6">
                        <label>31014</label>
                    </item>
                    <item id="7">
                        <label>10038</label>
                    </item>
                    <item id="8">
                        <label>31195</label>
                    </item>
                </content>
            </control>

for some reason this gives me this (I inserted 1/2 for santiy check). It was working fine, I am on latest 17 nightly:

[Image: RmJHqz9.png]
Viewing all 1818 articles
Browse latest View live


Latest Images