Syntax Help - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: Syntax Help (/showthread.php?tid=130359)
Pages: 1 2
Syntax Help - Avatarass - 2012-04-30 18:32
Hello, I just tried doing some coding. After looking at some skins' syntax I've come up with this thing for my Home page. Of course it doesn't work, and the skin I started off with is now not usable. So before I continue calibrating it, I need someone to tell me what I did wrong.
The piece of code is this:
RE: Syntax Help - Hitcher - 2012-04-30 19:05
<height>96</heigh cut short.
If you use Notepad++ get the XML plugin for instant syntax error checking.
Or this site -
RE: Syntax Help - Avatarass - 2012-04-30 19:08
(2012-04-30 19:05)Hitcher Wrote: <height>96</heigh cut short.
Thanks. I fixed that but the skin is still dead. By the way im using PSPad.
RE: Syntax Help - Hitcher - 2012-04-30 19:12
<label><string>Programs</string></label> should be <label>Programs</label>.
RE: Syntax Help - Avatarass - 2012-04-30 19:16
(2012-04-30 19:12)Hitcher Wrote: <label><string>Programs</string></label> should be <label>Programs</label>.
Fixed that. Didnt solve the problem.
The reason I did that is because in the original skin (Foundation), the label would be accessed via an ID, that was defined as a string. So I figured If I cut the string definitions then I should at least define them here. I guess was wrong.
RE: Syntax Help - Hitcher - 2012-04-30 21:59
Fixed code is working for me -
What does your XBMC log say?
RE: Syntax Help - Avatarass - 2012-04-30 22:35
Its OK, I rewritten the whole thing and it works now.
Now, I'm not sure why but the background picture does not get my pictures. When I define an normal image - it works, but when I try doing it using ListItem, it doesnt. Could you explain what a ListItem is and whether or not it comes with the program or is something I have to create.
I got a log? How do I access it?
By the way, apparently the imagepath part is not needed because I was able to connect a picture by simply placing the picture into the media folder and then just calling it from there. Which brings me to my next question. What is the purpose of the imagepath if it doesn't work?
RE: Syntax Help - Hitcher - 2012-05-01 00:01
Because you're using it outside of the the actual list you'll need to use the container string instead.
RE: Syntax Help - Avatarass - 2012-05-01 00:12
(2012-05-01 00:01)Hitcher Wrote: Because you're using it outside of the the actual list you'll need to use the container string instead.
Yep, already figure that. But I get black screen. Dont think it has something to do with background="true" or allowoverlay... since I already tried different combinations. Any ideas on that?
Thats what the code looks like for that part:
OK. Woah I got it. I was supposed to use $INFO to access the icon in the container. My only wish is that so if would have been explained in wikia, at all. Going over other more complicated skins is no exactly fun.
RE: Syntax Help - Avatarass - 2012-05-01 03:46
Hey, thanks again for the help. At least one screen of my skin is almost done in the first day of work.
However. I have gotten another problem. I tried to make the focused object unfade and then fade when I scroll back. However now I noticed a glitch. The animation of the scrolling down label, that goes after the focused one is delayed. Also, for some reason the focused one doesnt want to get fully visible. It gets stuck halfway through. I figured that in order to avoid the delay I would have to change the fading time to zero. But I would like to know if theres a way to bypass the glitch and get smooth movement and fading at the same time...
My code is: