xboxscene.org forums

Author Topic: Problem With Some Skinning Element  (Read 67 times)

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« on: September 14, 2007, 07:18:00 AM »

Okay i'm working on a new version of my xperience skin v 2.0
All buttons are hidden until you move left/righ or up/down. This works
fine an all xml pages except for the xml file "SettingsCategory.xml"

this is the control wich i cant get working:
CODE


    Default Category Button
    208
    150
    
    special25
    left
    button-focus.png
    button-nofocus.png
    buttonpanelslide
        ControlGroup(775).HasFocus(10)



i have also tried:
CODE

Control.HasFocus(10)


The problem is when i move to the left when im in a settings screen the buttons doesent show. But i know
that the control itself is active cause i can navigate between all the buttons and the settings pages are changing.
I have done this on all other pages and there is no problem getting the button panel to slide in nicely.
I have tried everything i know to get this working but to no luck sad.gif
If i remove the hidden focus the buttons show up and works like intended. help im clueless as to what this
is !

If someone has a SettingsCategory.xml file that has a working hidden button function that works
it would be nice to see it.

Best Regards a hard at work skinner. smile.gif


Logged

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« Reply #1 on: September 14, 2007, 08:55:00 AM »

okay something got wrong in my copy/paste process smile.gif

it is
CODE

ControlGroup(775).HasFocus(10)


But nothing i do makes the controll work... i have tested both on my xbmc pc build
and on the actuall xbox itself....

but thanks for pointing out what might have been a typicall typo in my code !
Logged

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« Reply #2 on: September 14, 2007, 11:05:00 AM »

Yes thats true. i have based the skin on PMIII
so this is what i have further up in the xml:
CODE

  
   button area
   image
   3
   270
   60
   150
   300
   -
  

  
  
   Default Button
   button
   7
   530
   150
   special25
   7
   list-focus.png
   -
   contentpanelslide
  


  
   Default Category Button
   ControlGroup(775).HasFocus(10)
   208
   150
  
   special25
   left
   button-focus.png
   button-nofocus.png
   buttonpanelslide
  



I have tried about all combinations i can think of with these three controls. the only control
who seems to do anything if i change stuff seems to be control id 10

Logged

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« Reply #3 on: September 17, 2007, 06:14:00 AM »

any1 with some good ideas ? pretty please smile.gif
Logged

jmarshall

  • Archived User
  • Hero Member
  • *
  • Posts: 541
Problem With Some Skinning Element
« Reply #4 on: September 17, 2007, 04:20:00 PM »

That button is only used to copy for the real category buttons that are added.

Thus if you put a visible condition on it the visible condition will be copied to the real category buttons.

Control 10 will never be visible, and thus nor will anything else.

I don't really have a clear idea of what you are trying to accomplish (and why) but I suspect you can do what you want via a grouplist or something.
Logged

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« Reply #5 on: September 17, 2007, 11:58:00 PM »

Let me try to clearify stuff then wink.gif

On all pages trough this skin no buttons are visible. but if you move left/right
the button panels comes sliding in from left and stays on the center of the screen.
I have done this on every page troughout the skin and this works just fine.
The only place where it doesent work is in the SettingsSubcategory.

I have tried all possible combination with these three controls:
CODE




   button area
  
   Default Button


if i set the button id 10 controll to visible i shows up on the screen. If i set it to not
visible it doesent show up.  but if i try allowhiddenfocus="true" on it it doesnt show at all.
As far as i can tell there is no logical reason. the button id 10 controll is a standard button control
and it should work ?


Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Problem With Some Skinning Element
« Reply #6 on: September 18, 2007, 12:54:00 AM »

No

If you want to animate those buttons you need you have the control area a grouplist and animate the grouplist that contains all the buttons or you need to group it and animate the group.   the point being that the grouplist is what controls the onscreen location of the buttons. the actual defaultbutton and other default controls should have no animation at all

From your previous posts I can see you are using the old way of having a image for the button area you need to update it to a grouplist like PM3 and most other skins use now.

And on another note have a look at how Vision Skin works will show you how to do the hidden button thing
Logged

theboxhead

  • Archived User
  • Full Member
  • *
  • Posts: 155
Problem With Some Skinning Element
« Reply #7 on: September 18, 2007, 03:53:00 AM »

Hey JezzX !

I see your point. I have actually created grouplist
for most of my other stuff and animated that group.
Gonna put all those controls into a group and try to animate it.
I'll have a look at vision xml to get the right idea.

Again thanks for you insights JezzX !
Logged