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

Launching Addons via Widget using Super Favourites Link

$
0
0
Hi there,

I run into another issue and need a bit help with it.

I like to use Super Favourites to create a custom Folder with my most used Addons/Plugins and use this folder as a Favorite Link to be able to get it shown as a widget. That is working so far. The problem I have is, I can't launch any of the shown Addons via the widget.

I also have tried to just put the complete "Video Addons" Folder to Favourites and use that link for the widget. With that I am able to launch the Addons. To be sure its not the Super Favourites link that causes the issue I was checking the Artic Zephyr Skin where I can also create custom Widgets which are linked via Favorites. There the Favourite link to my Super Favourites Custom Folder also works and I am able to launch the Addons.

So I guess it has to do something with my "<onclick>" command I am using.
<onclick>RunAddon($INFO[Container(10010).ListItem.Property(Addon.ID)])</onclick>

This command is working fine with the widget when its linked to:
<content target="addons">addons://user/xbmc.addon.video</content>

But when I using the link to Super Favourites:
<content target="addons">plugin://plugin.program.super.favourites/?label=xyz&amp;mode=400&amp;path=special%3%2F%2Fprofile%2Faddon_data%2Fplugin.program.super.favourites%2FSuper%20Favourites%2Fxyz&amp;sf_options=fanart%3DNULL%26_options_sf&quot;,return)</content>
I am not able to launch any of the addons shown in the widget (*xyz is my created custom folder for testing).

I checked the xml files from Artic Zephyr Skin how its done there, but couldn't find anything that helped.

Thanks again for your time and help Smile

Texture quality is to bad

$
0
0
Why have textures .png or .jpg with rounded corners such a bad quality or resolution. How can we increment the resolution for rounded image icons or other textures?

Show label only if is present

$
0
0
I use the <title> tag for translated titles, and I'd like for it to appear only if its present (so a movie with <title></title> should display nothing). This is the expected behavior if I just use $INFO[ListItem.Title]  but I've included it on a parenthesis, so if there is no <title></title> you'll see ( ) instead of a blank space.

                     <label>[LOWERCASE]( $INFO[ListItem.Title] )[/LOWERCASE]</label>
                      <visible>String.Contains(ListItem.Title,Default)</visible>

It seems to be something like this. I tried variations of it but it doesn't work.

Panel container question

$
0
0
Hi, 

I like to know if its possible to create a panel container and on click it shall list file items ? instead of trying to play the files. 

is that possible ?

right now by default it tries to play, and if 1 file exist it can play fine. but with multiple files it obviously cannot play. i dont want to force a file to play, i like the user to be able to select from a list.

Play Themes alternative

$
0
0
@manfeed

If you do decide to turn this into addon I already have most of the code written as I was going to add it into "Special Features Addon" but I was informed of this before I ever go to that part. @Karellen and I had already discussed the limits of what was and was not allow for the official repo. And I didnt continue because I did not want to step on anymore toes once you made this thread. So either post here or PM and we can add it in and push it through i guess in about two weeks, one week for coding and the second for people to test.

I would just need the current agreed upon folder structure, the rest will be fairly simple to implement. We could even take it one step further and add another section in the plugin directory that would list all the movies/tv shows that have working themes with support for all audio and video codec that Kodi supports.

What would be ideal I am using a "Extras folder" i know a lot of people would be against this but if we had moved them into that directory it would help clean the directories and you could simple have a theme-song, theme-video in that folder without the movie/tvshow name..

Either way let me know something i will be in and out over the next week.

Multiline movie title

$
0
0
Trying to get a movie title display like this:

Dr. Strangelove or: How I
Learned to Stop Worrying a...


But I'm not sure how to go about it. Closest I found was adding
<wrapmultiline>true</wrapmultiline>
, but it seems not to respect height of the object, and just parses all the lines, overlapping with controls and so on:

Dr. Strangelove or: How I
Learned to Stop Worrying and
Love the Bomb


My code is:

                    <control type="label">
                      <left>200</left>
                      <top>225</top>
                      <width>900</width>
                      <height>154</height>
                      <font>Bold77</font>
                      <textcolor>FF000000</textcolor>
                      <label>[LOWERCASE]$INFO[ListItem.OriginalTitle][/LOWERCASE]</label>
                      <wrapmultiline>true</wrapmultiline>
                    </control>

How to regain Focus?

$
0
0
So I am working on custom window... All works as long as I use either mouse or keyboard. Issue is when I use the mouse and then go back to keyboard.

Basically I have one primary button I want to have the main focus and from that point I can navigate to and from. What I am looking for is when I take the mouse and hover to a "dead" area where there are no controls, then when I press up or down on the keyboard I want it to set the focus back to this primary button. Is there a clean correct way to do this. I know I can hack it by putting a fake hidden button the size of the screen with the up down left right set to go to the primary button, but i am hopeing someone know a better way.


Thanks.

Any skinner willing to do the Plex Player skin?

$
0
0
Am I the only one that would like to see a remake of Plex Player skin but for Kodi itself?

Image

This is the skin. I personally really like the color scheme and how everything feels, but would rather use it inside Kodi than a Plex app.

Plex doesn't let you customize it either which is a huge downside.

Using Python 3 Windows animations?

$
0
0
Kodi build: Kodi 18.0-ALPHA2 Git:20180608-6c3268b171
Complied: Jun 9 2018

It maybe something i am doing, as i am using custom xml windows with python. The issues I have is changing windows the background image is remaining the same but when the window changes it flashes black then comes back.

First Window window id=13001

<control type="image" id="1000">
<height>1080</height>
<width>1920</width>
</control>
<control type="image" id="1001">
<height>1080</height>
<width>1920</width>
<animation effect="fade" delay="300" start="0" end="100" time="800">WindowOpen</animation>
</control>

Second Window

<control type="image" id="1000">
<height>1080</height>
<width>1920</width>
</control>
<control type="image" id="1001">
<height>1080</height>
<width>1920</width>
<animation condition="!Window.Previous(13001)" effect="fade" delay="300" start="0" end="100" time="800">Conditional</animation>
</control>

Is there something I am missing? I want there to be no transition between these to windows... If it can not be done please reply i can combine the 2 windows but at the moment the first window is at 395 lines of xml code and another 250 plus lines of code in python alone and i am just trying to slip them up one becuase they have different objectives and 2 is just to help orgainze the code.

Any help will be appercaited

Video window and modulating a diffuse texture to it

$
0
0
Hi all, i'm new in this all skinning part of things.

What i'm trying to achieve is having a video window and have a diffuse texture loading on top (hope i'm phrasing it right).
This is similar to the way that netflix plays auto on screen and have a black fading effect that
(a) makes the video window borders not seen and so it looks integrated with the background.
(b) making the background darker (depending on the diffuse color) so that text would be easier to read.
© look awesome.

Basically on titan skin, spotlight images are loaded through:
Code:
<texture colordiffuse="$VAR[Netflix2_PanelColor]">special://home/addons/resource.images.backgroundoverlays.basic/resources/Side by Side.png</texture>

Is there a workaround to make that work with video control? I tried to add an image on top of the video window, but with no success thus far.

THANKS.

reading Plot of PVR Recordings

$
0
0
Hi, is there a way to Display the Plot in DialogFullScreenInfo.xml?

It shows the Plot in MyPVRRecordings.xml window but how can I display the Plot in Dialog FullScreenInfo ?

newbie skinner question, math module in xml?

$
0
0
So, i'm really trying to understand how things should work, i read and searched in the kodi wiki and didn't get an answer.
I want to set height for a control to be a CONSTANT\INFOLABEL, for ex. 10\10=1.

So, how is this done? it's such a basic thing to do in gen. coding but writing functions in xml feels like being handicapped.
I don't even know if infolabel if values are strings/ints if it even matter.

Should i use a built-in module?

thanks

Need help understanding label aligny = center positioning

$
0
0
I am trying to work through a problem I introduced by modifying my ttf fonts.  The observed behavior is that text set in labels with aligny center moved down.  I did some testing with font size 30 in a label with height 50 in the default resolution / aspect.  The rendered text was about 6 or 7 pixels lower.  I tried looking in guilib to see how the text vertical positioning is defined.  I see  in GUIFontTTF that there is a
Code:
  m_cellHeight   = cellAscender - cellDescender;
which makes sense.  But in GUILabel I see this:
Code:
        posY += m_renderRect.Height() * 0.5f;
which makes sense, except I can't see how m_renderRect.Height is related to m_cellHeight.  I tried playing around with the typo ascent and descent metrics in the ttf Font file, but it didn't seem to have an effect (though it could be my font file has other issues).

So if there is any insight it would help me focus my testing.  I use centered text because I have fontset options with different sizes and I don't see any other way to get decent layout unless the text is centered.

scott s.
.

Slideshow.IsPaused and Slideshow.IsRandom Slideshow.IsVideo bools not cleared on

$
0
0
When slideshow is playing, if any GUI bools Slideshow.IsPaused, Slideshow.IsRandom, and/or Slideshow.IsVideo evaluate TRUE, then slideshow is stopped, the bools remain TRUE.  It seems like they should be FALSE if Slideshow.IsActive is FALSE.

scott s.
.

Localization file is not loaded if the login screen is enabled


Aspect ratio placement problem

$
0
0
My problem is that I switch between two screens (16:10, and 16:9), and these two elements below (a star rating right at the middle of the screen), although perfectly aligned on my 16:10 screen, are way off on the 16:9 TV. First is an image of empty stars, and the second is the actual rating if present.

                    <control type="image">
                        <top>75</top>
                        <align>center</align>
                        <height>25</height>
                        <aspectratio>keep</aspectratio>
                        <texture background="true">rating/none.png</texture>
                    </control>

                    <control type="image">
                        <top>75</top>
                        <left>881</left>
                        <height>25</height>
                        <aspectratio align="left">keep</aspectratio>
                        <texture background="true">$INFO[ListItem.UserRating,rating/,.png]</texture>
                    </control>

Coverflow Example

$
0
0
Hi Everyone,

Does anyone know a good coverflow example in a skin? I've done a quick google search but couldn't find any skinning tutorials on that one.

I seem to remember seeing it in older skins, but appears to have fallen out of favor in the new ones?

So does anyone know a good skin to examine the XML code for a coverflow view?

Something like this would be idea



Show an image with onclick

$
0
0
I want an image to appear when I start the movie, as a transition. The idea is for a completely black image to fade into the screen upon selection, and then to launch the movie.

So the questions are:

a) how do I make an image appear with onclick?
b) how do I animate that image?
c) how do I make the SendClick(8) action only occur once the animation of the image has finished?

I have no idea on how to do it. Closest is I found "Notification(header,message[,time,image])" on the wiki, but I haven't gotten it to display anything with the code below, plus it doesn't seem to have much space for customization... unless the "Notification" is reliant on some .xml file which has the specifications for how a "Notification" appears (size, position, animation, etc), in which case I wonder what .xml file would that be?


                <control type="grouplist">
                    <control type="button" id="97">
                        <onclick>Notification(test header,test message[,5000,views/black_background.png])</onclick>
                        <onclick>SendClick(8)</onclick>
                        <onup>Back</onup>
                        <ondown>Back</ondown>
                        <onleft>Back</onleft>
                        <onright>Back</onright>
                    </control>
                </control>

few small question about ''bypassing'' kodi core behavior

$
0
0
Hi, i'm finalizing a new mod here. and there are a few things I really want to have but not sure if can possibly be done or are HARDCODED into kodi's behavior.

1) going back from fullvideo to last window (INCLUDING DIALOG INFO) -
Say I enter a movie/tvshow and started playing video fullscreen.
Desired behavior: going back/stop video returns to last window, in this case, DIALOG VIDEO INFO.
Currently: going back brings to last window such as home/tvshows/season/episodes....but not dialog info.

2) When playing an episode, from episodes viewtype/widgets... Next button doesn't work. I assume this happens since there's no queue in the playlist.
But it seems plausible that playing hitting next when playing episode will bring to next episode (unless playlist was specified).
Core or skinnable? (and yeah i know about ''play next auto'' or ''next up'' addon, i'm talking about next from osd button itself).

Help for a total Newbie

$
0
0
I have been trying to teach myself some skinning for Kodi.  I have used an existing module  script-xxx.xml -- I have learned a ton by tweaking here and there, and am at a point where I am trying to make my own skin.  Here is my question.  I have a label control with the following syntax:
         <label>$INFO[Control.GetLabel(3998)]</label>
The value within the Control.GetLabel(3999) is the value that I want to use... however, I only want to use the first value from that variable.  the variable contains a number followed by a space and them some other text.  I am looking for a way to extract only the number part. Example: "23 pants ordered", I would want the value of only "23" (ultimately I would love to format it as "0023") -- Example: "750 items ordered" , I would want to extract the value "750" (ultimately would love to format it as "0750").  I think that this may need to use some sort of Split command and extract only the first value, but I have no idea how that syntax works.  I've been trying and searching web for 2 days now.  I know this is an easy one for you more advanced skinners.  Please help out a newbie... 
Thanx in advance.
Viewing all 1801 articles
Browse latest View live