Syntax Help
#16
For adding views, you need to include the view file itself in includes.xml...
Then you need MyVideoNav.xml or MyMusicNav.xml or what kind of media you want to add views to.
Then check the ID of the main control of the view e.g. 50 for default list.
In MyVideoNav you'll find a views tag where you need to add the ID and a bit below you need to include the include name of the view...
Sorry if this is a bit confusing and without code, it's tapatalked Big Grin
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#17
(2012-05-01, 23:17)mad-max Wrote: For adding views, you need to include the view file itself in includes.xml...
Then you need MyVideoNav.xml or MyMusicNav.xml or what kind of media you want to add views to.
Then check the ID of the main control of the view e.g. 50 for default list.
In MyVideoNav you'll find a views tag where you need to add the ID and a bit below you need to include the include name of the view...
Sorry if this is a bit confusing and without code, it's tapatalked Big Grin

yeah I figured that much over the last hour.

But it still doesnt solve the problem why the image disappears. I mean it doesnt have any views or anything, its just 3 images.
Reply
#18
When you're pasting code, please use a code block as it makes things much more readable (or pastebin if you prefer).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#19
(2012-05-01, 21:21)Avatarass Wrote:
Code:
<window id="6">
<defaultcontrol always="false">303</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
    
    <control type="image">
      <description>UnderLayer</description>
      <posx>-300</posx>
      <posy>-300</posy>
      <width>600</width>
      <height>600</height>
      <visible allowhiddenfocus="true">Control.HasFocus(303)</visible>
      <fadetime>150</fadetime>
      <texture>Layer1.png</texture>
      <aspectratio>keep</aspectratio>
    </control>
    
    <control type="image" id="303">
      <description>Order</description>
      <posx>-290</posx>
      <posy>-290</posy>
      <width>580</width>
      <height>580</height>
      <visible>true</visible>
      <fadetime>150</fadetime>
      <texture>Layer2.png</texture>
      <aspectratio>keep</aspectratio>
      <onup>303</onup>
      <ondown>9000</ondown>
      <onright>303</onright>
      <onleft>302</onleft>
    </control>
    
    <control type="image" id="302">
      <description>SearchIcon</description>
      <posx>-290</posx>
      <posy>-290</posy>
      <width>580</width>
      <height>580</height>
      <visible allowhiddenfocus="true">Control.HasFocus(302)</visible>
      <texture>Layer3.png</texture>
      <aspectratio>keep</aspectratio>
    </control>
    
</controls>
</window>

you can't put the focus on an image control, nor do image controls accept <onfoo> tags.

by the looks of it, you need to code them as button controls.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#20
(2012-05-02, 00:47)ronie Wrote: you can't put the focus on an image control, nor do image controls accept <onfoo> tags.

by the looks of it, you need to code them as button controls.

I see. But I dont want to have any other buttons on the screen. Just the picture that represents a button.

What I think is, I have to create a wraplist and put all the stuff i want there. Then I connect a picture that will spin along with wraplist. I think I can do that by using a labels of the objects in the list to send values of rotation to the picture. Like 90, 180, and 360 degrees. Then I just take the wraplist off the screen to have nothing but the picture I want. Am I correct?
Reply

Logout Mark Read Team Forum Stats Members Help
Syntax Help0