Syntax Help

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mad-max Offline
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 55
Location: Germany
Post: #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

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
Avatarass Offline
Junior Member
Posts: 27
Joined: Apr 2012
Reputation: 0
Post: #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.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 25,669
Joined: Oct 2003
Reputation: 169
Post: #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: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,985
Joined: Jan 2009
Reputation: 147
Post: #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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-XBMC members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Avatarass Offline
Junior Member
Posts: 27
Joined: Apr 2012
Reputation: 0
Post: #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?
find quote
Post Reply