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

HOW-TO:Add a new window or dialog via skinning

$
0
0
Suppose I've created my own custom_about.xml file.
Then how should i call it from IncludesHomeMenuItems.xml file ?
As per the Window IDs guide, 1100-1199 Ids are reserved for custom*.xml file.
Help me choose the particular ID, so i could call custom_about.xml file.
Huh

Bool to check if played video has been started from an addon

$
0
0
Hey,

is there a way to verify if a video which is playing comes from an addon? Something similar to String.IsEmpty(Container.PluginName) when browsing the addon itself, but relating to the VideoPlayer.

Thank you!

Execute actions when player starts playing media? Something like Player.OnPlay

$
0
0
Hey,

is there a way to check from within a Skin when the player starts playing a media file (video file, music file). Something like a Player.OnPlay action which can execute some actions from within the skin.

Thanks again!

New Settingslayout

$
0
0
As The only Link i could finde guides to a "Read only" Thread in the Developer discusion Area, and i couldnd finde an other related Tread, i decide to start one here. (Hope this is the right Place to discuss this, if not, feel free to move this Tread in to the right Subforum,. If there already exist a Thread to discuss the new layout just guide me there.)

I recently Checked the new "Settings Layout" in Krypton.

From a first Look it looks clean and in most cases Intuitive, and provide imho. a better overview over the existend Kodi settings.

How ever; two things popt in my eyes which doesnt fell right.

1st:

"Application Control"
-> These are Services and belong therefor to the Item "Services" imho.

Screen:



2nd:

"Other"
-> The Settings listed under "Other" are UI related and belongs therefor in to the "Skin" - Item imho. (just the way it was) i think also that a special item "others" look just a bit odd there.

Screen:


to share my thoughts

(+ there are at the moment a bunch of Settings missing, but from a first look it seems its only in Confluence.)

mfG.

Use of Boolean with Themes

$
0
0
This is simple but I am learning skins and I can't figure this one out properly.

Simply trying to use a boolean to show a shadow when default theme, and no shadow when theme is selected.

<shadowcolor condition="!Skin.HasTheme(WhiteFlat)">ff851e19</shadowcolor>
<shadowcolor>shadow</shadowcolor>

That's what I had last (which is wrong)...right now the top line shadow shows whether my theme is selected or not.

Power / favs label display

$
0
0
Hi guys. ive added a few buttons to my skin bottom left with the power and favs buttons using the home.xml and texture tool (in xonfluence).. what im trying to acheive is the label for each to be be displayed in text as its focused on. ive searched and searched for an example i can study from and i cant find one.. Are any of u guys aware of a skin that uses this that i could look at and study ??

Much appreciated guys

onload / onfocus for changing folder

$
0
0
How do i trigger something like in the onload or the onfocus but when you change folder in browsing videos?

Selected condition for skin.toggledebug

$
0
0
Hi Guy's,

I've gone looking and can't find what I'm looking for, so was hoping that someone might be able to help with the name of the system Boolean for selecting Skin.ToggleDebug.

I use the following for allowing my users to toggle System Debug

PHP Code:
<control type="radiobutton" id="803"><!-- System Debug toggle -->
                        <include>
settings-submenu-common</include>
                        <
label>$LOCALIZE[20191]</label>
                        <
textwidth>750</textwidth>
                        <
onclick>ToggleDebug</onclick>
                        <
selected>System.GetBool(debug.showloginfo)</selected>
                        <
radioposx>844</radioposx>
</
control

I would also like to include the above in my support menu for Skin Debug (Skin.ToggleDebug), but as I don't know the correct selected condition for the <selected> tag, I can toggle the function correctly, just not show the current state on the button.

Any ideas?

Wyrm (AppTV)

using arithmetic operator in skin ?

$
0
0
Hello all...

in Kodi XML for skinning,
is possible to use arithmetic operator to add, sub, divide or mutiply any value by a number for exemple ?
Any function ?

for example :

Quote:<label>($VAR[myvalue]*8/100)</label>

myvalue : 600

label would be : 600*8/100 = 48

thanks

Merged DialogMusicInfo issues Krypton (solved)

$
0
0
Small issue:

I get no album tracklist, since the music info dialogs were merged to DialogMusicInfo.
The Container (id=50) isn't filled, but it works for the artist level and albums are going to be displayed correctly.

Edit:
To be sure it's not a local problem I've checked it on another device -> Same issue.

Edit2:
Sorry, my fault. Just a scraper issue. After refetching all albums and artists everything is fine.

Get Current Selected Item Icon Image help plz

$
0
0
Code:
                    <control type="image">
                        <width>226</width>
                        <height>226</height>
                        <texture background="true">$INFO[ListItem.Icon]</texture>
                    </control>

This is the code I'm trying. I wanna be displayed that the icon of selected playing item. Sad

Trying to get it to OSD. But it was not showing. When I replace the path with local png file it shows. But cannot get the icon image from currently playing item Sad

Alternate line formatting in lists

$
0
0
Hey guys...

I am looking at doing a list view like this in Kodi v17-

[Image: 2AkaNrYm.jpg]

What you see above was created using a custom list item property "UseAltHex" for each of the defined content items (true/false). If "UseAltHex" is true, the hex is in the left position, if it is false, it is in the right.

My question to you- Is it possible to do something like this in a list or panel where the content items are not predefined?

If so, how would I go about doing that? Any suggestions would be greatly appreciated!

Need help implementing playspeed control

$
0
0
I want to have an animation popup when user changes playback speed using PlayerControl(tempoup/down) . It would popup on a change then fade out. I think I can put it on fullscreenvideo window. Problem is I think it can work when playspeed is first enabled, by setting viz on Player.IsTempo but I'm stuck on how to make it popup if user changes speed from say 1.1 to 1.2.

On ff/rew change I take it core causes dialogseekbar to activate but it doesn't seem to activate on tempup/tempodown or I would use that instead of fullscreenvideo.

Any ideas?

scott s.
.

Is there any ways to get Buffer percentage in Text to skin?

$
0
0
Any one knows? I wanna get Buffering Percentage in Text to Skin. Plz Any Helps?

MSW Swell Forecast addon

$
0
0
Hi,

we did create an "weather addon" to display http://MagicSeaweed.com 's wave and wind forecast for surfers within KODI/XBMC. Unluckily the addon became obsolete with recent changes to the skinning system.

Now i am looking for someone who can port the addon to a Kodi 15 and mod the "transparency" skin accordingly. The look should be adapted to that of the weather-plugin. I am offering USD 200,- and the addon will go into public domain. The only changes neccessary should be skin directives.

Screenshot from the old version:
[Image: kodi-msw-addon.jpg]

anyone interested?

String.Contains function.....helpppp....

$
0
0
Hello...i'm going crazy....

I'm under Krypton and do a mod for a skin.....

the String.Contains() function seem to not working....or, i hope, i'm wrong ....

here is my problem :

Code:
<control type="group">
    <posy>350</posy>
    <posx>-600</posx>
    <scrollspeed>30</scrollspeed>
    <scroll>true</scroll>
     <control type="label">
     <posy>0</posy>
     <align>left</align>
     <label>1-$INFO[ListItem.Path,,extrafanart/]</label>
     </control>
     <control type="label">
     <posy>20</posy>
     <align>left</align>
     <label>2-$INFO[ListItem.Art(fanart)]</label>
     </control>
     <control type="label">
     <posy>40</posy>
     <align>left</align>
     <label>3-$INFO[ListItem.Path]</label>
     </control>
     <control type="label">
     <posy>60</posy>
     <align>left</align>
     <label>4-$INFO[Control.GetLabel(7998)]</label>
     </control>
     <control type="label">
     <posy>80</posy>
     <align>left</align>
     <label>5-</label>
     <visible>String.Contains(Control.GetLabel(7998),ListItem.Path)</visible>
     </control>        
</control>

and the result :

[Image: Image1.jpg]

I don't understand why the label 5 is visible !?
Label3 and Label are different !!!

Why don't work ?

please help meeeeee....LOL

Krypton and variables

$
0
0
FAO Team Kodi members and seasoned skinners and anyone who might be able to help.

Hi,

I'm trying to update Madnox to make it ready for Krypton but I am finding severe problems with using the skin in Krypton and these problems do not seem to exist for the same skin with Jarvis. The issue in Jarvis was losing a VAR now and then that was connected mainly to textures and dialog window backgrounds but in Krpyton we are losing VARs for everything and anything, simple ones used in breadcrumbs, ones used to determine poster just anything is being lost i.e. the VAR one minute has a value but the next is empty!

This main problem I'm having seems to be connected to VARS, it seems that upon skin load and doing anything i.e. entering the Movies node I just start to lost VARs? They just suddenly lose their values and it can be any VARS but it seems to be affecting the skin across the board and if I do a reload then for a few mins or less the VARS seem to have values but just start losing them again.

A ticket was raised to try and establish the issue a while back, can be found here http://trac.kodi.tv/ticket/16634, but I don't see any update but now the issue is far worse when using Krypton!. it's not just the latest Beta, I've had the issue using the Alpha etc etc.

It seems it may / may not be connected to variables.xml, my current xml has 5723 lines in it and MikeSilvo has found that if we delete from around line 2700 down then the it seems to possibly resolve the problem or at least the problem isn't obvious from the start. But obviously I would prefer not to just butcher variables.xml in an attempt to possibly resolve this issue.

I'd really like to get Madnox to Krypton, mainly due to my skinning partner Schimi2k passing away on 2nd August, and he really wanted for us to make it available for Krypton but I'm just stuck with this main issue and it seems it is well beyond my limited skinning knowledge.

So. can anyone help or give suggestions, has anything changed in Krypton to cause this?

I know Madnox is at its basis old and crappy, we've been told that enough times, but generally it is always operational until it seems we try to go Krpyton? I'm sure some will say they don't have the problem and I could be doing something stupid, but it works with Jarvis and the initial ticket could be reproduced in confluence so something may have changed for Krytpon, Bobcrachett also mentioned a PR that might be connected to this issue but thought it might not make Krypton, apologies I can't find more info on the actual PR right now.

Thanks for you time and hopefully your help. You can check out the Krypton work in progress branch here, just select the krytpon branch.

Mike.

how do you make a Kodi compatible semi-transparent png?

$
0
0
I'm having trouble making semi-transparent png textures.
Please could you let me in on the secret. Smile

I can make a simple one colour texture with 70% opacity in Photoshop or Gimp but cannot get Kodi to load it.
There are no error messages.

I need it to be similar to the black-back.png texture that comes with Confluence.

I need to use it in my TV Guide fork called TV Guide Fullscreen at the moment.
Here is the black-back.png texture for reference.
https://github.com/primaeval/script.tvgu...k-back.png

Bouncy fixedlist

$
0
0
Greetings!

Hope a more experienced skinner can help me suss out an issue that has me stumped. I converted a control type from list to fixedlist and it does not behave correctly. When the focus position is reached the list does scroll but the button lurches one position in the scroll direction before settling back to the focus position; if that makes any sense.

I've fought this for hours with no luck. Please, if you have any thoughts on the subject, I would love to hear them.

Here's the hunk of code:

Code:
<control type="group" description="Slider and List">
                <posx>1030</posx>
                <posy>141</posy>
                <control type="fixedlist" id="50">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>830</width>
                    <height>892</height>
                    <onleft>9000</onleft>
                    <onright>70</onright>
                    <onup>50</onup>
                    <ondown>50</ondown>
                    <pagecontrol>70</pagecontrol>
                    <focusposition>4</focusposition>
                    <movement>4</movement>
                    <preloaditems>4</preloaditems>
                    <viewtype label="537">Big List 50</viewtype>
                    <scrolltime easing="inout" tween="sine">280</scrolltime>  
                    <itemlayout height="99">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>99</height>
                            <width>830</width>
                            <texture flipy="true" border="3">img/ListNF.png</texture>
                        </control>
                        <control type="image" description="TV Logo">
                            <posx>700</posx>
                            <posy>0</posy>
                            <width>90</width>
                            <height>90</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label" description="Number">
                            <left>0</left>
                            <height>99</height>
                            <width>80</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <info>ListItem.ChannelNumber</info>
                        </control>
                        <control type="label" description="Main Label">
                            <posx>126</posx>
                            <height>55</height>
                            <width>600</width>
                            <scroll>false</scroll>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label" description="Label2">
                            <posx>126</posx>
                            <posy>35</posy>
                            <height>60</height>
                            <font>size18</font>
                            <width>600</width>
                            <scroll>false</scroll>
                            <textcolor>Grey</textcolor>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="99">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>99</height>
                            <width>830</width>
                            <texture flipy="true" border="3">img/ListNF.png</texture>  <!--   -->
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>830</width>
                            <height>99</height>
                            <texture>img/MediaButton2.png</texture>
                        </control>
                        <control type="image" description="TV Logo">
                            <posx>700</posx>
                            <posy>0</posy>
                            <width>90</width>
                            <height>90</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label" description="Number">
                            <left>0</left>
                            <height>99</height>
                            <width>80</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <info>ListItem.ChannelNumber</info>
                        </control>
                        <control type="label" description="Main Label">
                            <posx>126</posx>
                            <height>55</height>
                            <width>600</width>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label" description="Label2">
                            <posx>126</posx>
                            <posy>35</posy>
                            <height>60</height>
                            <font>size18</font>
                            <width>600</width>
                            <textcolor>White2</textcolor>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </focusedlayout>
                </control>
            </control>

Thanks!

Personal Repo Question

$
0
0
Hey guys Smile

I was unable to update or install my skin on my test portable install on Krypton. It works fine on Jarvis and below so I was thinking that it had to do with my version numbering. My skin is a mod of Aeon Nox 5 and I use the main skin version number dash my version number so the current Krypton version is 5.9.1-4.0.0.

I created a test repo to see if that was the cause and it appears to be... My question is should I change my version numbering and use 6.0.0 then add the base skin to news or will/can this be changed back to the way it worked previously?

P.S. I do know that the preferred versioning is x.y.z for Kodi repository but since my way was working since Helix and my mod will never make it into the repo I have been doing it this way and just want to make sure how I should proceed with version numbers going forward.

Thanks.
Viewing all 1807 articles
Browse latest View live