xboxscene.org forums

Author Topic: Tring To Add Button To My Videos Ect  (Read 90 times)

iamashithuman

  • Archived User
  • Newbie
  • *
  • Posts: 4
Tring To Add Button To My Videos Ect
« on: April 19, 2006, 05:29:00 PM »

Hi I have no dramas adding a button and positing that button but i was wondering if someone could me understand how to work out what values i need for the on right on up ect. I know if i add a button i will need to change these postions on all other buttons but am unsure of how to work the values for each.
Any help would be app. thankz
Logged

nuka1195

  • Archived User
  • Sr. Member
  • *
  • Posts: 290
Tring To Add Button To My Videos Ect
« Reply #1 on: April 19, 2006, 09:47:00 PM »

You use control names.

self.button1.controlDown(self.button2)
self.button2.controlUp(self.button1)

Here is a link to a thread about automatically setting navigation. It may help if I misunderstood what you were asking.

This post has been edited by nuka1195: Apr 20 2006, 04:50 AM
Logged

Abe87

  • Archived User
  • Jr. Member
  • *
  • Posts: 94
Tring To Add Button To My Videos Ect
« Reply #2 on: April 20, 2006, 11:03:00 PM »

nuka1195 it sounds like he is talking about this

CODE


        Bookmark button 1
        button
        31
        50
        268
        
        XBMC.ActivateWindow(MyMusic,Local)
        50
        50
        7
        32
        no
      



The onleft, onright, onup, and ondown are the id numbers of the button that you want to move to when you press left, right, up, and down.

Here is a thread that I started about modding the PM3 skin and it has some mods that I have done. If you look in there you can see where I changed the values for onleft, etc.

http://forums.xbox-scene.com/index.php?showtopic=506586

I hope this helps you out. If you need any more info let me know.
Logged

nuka1195

  • Archived User
  • Sr. Member
  • *
  • Posts: 290
Tring To Add Button To My Videos Ect
« Reply #3 on: April 20, 2006, 11:20:00 PM »

(IMG:style_emoticons/default/biggrin.gif)  I thought it was a python question.
Logged

Abe87

  • Archived User
  • Jr. Member
  • *
  • Posts: 94
Tring To Add Button To My Videos Ect
« Reply #4 on: April 20, 2006, 11:31:00 PM »

It might be.  (IMG:style_emoticons/default/uhh.gif) But him saying onleft, onright, onup, and ondown makes me think he is trying to add a button to the skin to run a script.

If he checks out the link that I provided it has an example of adding a button to the MyMusic section for XBMCLyrics.

This post has been edited by Abe87: Apr 21 2006, 06:32 AM
Logged