- September 12, 2007
- 13
- 0
- 42
- Home Country
- Sweden
Hi!
Im new here, and have installed Mediaportal and been using it for a few weeks now. And now im trying to write my own plugin.
The plugin shows up in the main menu, so it must be okei. And I have created a skin from the "Guide". And now i try to load the skin, but it spit out a errormessage: File invalid or missing.
Im using VB.NET instead of C#, it shouldn't be any problems there.
Im trying to call my skin with:
But all i get is the error of invalid file or missing file.
The skin file:
Im using the latest Mediaportal.
Any ideas?
Im new here, and have installed Mediaportal and been using it for a few weeks now. And now im trying to write my own plugin.
The plugin shows up in the main menu, so it must be okei. And I have created a skin from the "Guide". And now i try to load the skin, but it spit out a errormessage: File invalid or missing.
Im using VB.NET instead of C#, it shouldn't be any problems there.
Im trying to call my skin with:
Code:
Public Overloads Function Init() As Boolean
Return Load(GUIGraphicsContext.Skin + "\SearchPlugin.xml")
End Function
But all i get is the error of invalid file or missing file.
The skin file:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
<id>300000</id>
<defaultcontrol>2</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<control>
<description>BackGround</description>
<type>image</type>
<id>1</id>
<posX>0</posX>
<posY>0</posY>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
</control>
<control>
<description>an Image</description>
<type>image</type>
<id>1</id>
<posX>75</posX>
<posY>370</posY>
<texture>hover_my videos.png</texture>
</control>
<control>
<description>text label</description>
<type>label</type>
<id>1</id>
<posX>250</posX>
<posY>70</posY>
<label>Some text</label>
<font>font16</font>
<align>right</align>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>Try Me</description>
<type>button</type>
<id>2</id>
<posX>60</posX>
<posY>97</posY>
<label>Try Me</label>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>3</ondown>
</control>
<control>
<description>Or Me</description>
<type>button</type>
<id>3</id>
<posX>60</posX>
<posY>131</posY>
<label>Or Me</label>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>2</ondown>
</control>
</controls>
</window>
Im using the latest Mediaportal.
Any ideas?