Jump to content


Photo

Problem With Some Skinning Element


  • Please log in to reply
9 replies to this topic

#1 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 14 September 2007 - 02:18 PM

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

<control type="button" id="10">
    <description>Default Category Button</description>
    <posx>208</posx>
    <posy>150</posy>
    <label>224</label>
    <font>special25</font>
    <align>left</align>
    <texturefocus>button-focus.png</texturefocus>
    <texturenofocus>button-nofocus.png</texturenofocus>
    <include>buttonpanelslide</include>
    <visible
    <allowhiddenfocus="true">ControlGroup(775).HasFocus(10)</visible>
</control>


i have also tried:
CODE

<allowhiddenfocus="true">Control.HasFocus(10)</visible>


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




#2 nuka1195

nuka1195

    X-S Expert

  • Members
  • PipPipPip
  • 639 posts

Posted 14 September 2007 - 03:39 PM

Is this actually what you have in your file?
CODE
<visible<allowhiddenfocus="true">ControlGroup(775).HasFocus(10)</visible>

should be
CODE
<visible allowhiddenfocus="true">ControlGroup(775).HasFocus(10)</visible>

Edited by nuka1195, 14 September 2007 - 03:40 PM.


#3 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 14 September 2007 - 03:55 PM

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

it is
CODE

<visible allowhiddenfocus="true">ControlGroup(775).HasFocus(10)</visible>


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 !

Edited by theboxhead, 14 September 2007 - 03:55 PM.


#4 nuka1195

nuka1195

    X-S Expert

  • Members
  • PipPipPip
  • 639 posts

Posted 14 September 2007 - 05:52 PM

in pmIII the control id is 3

CODE
<control type="grouplist" id="3">
   <description>button area</description>


Edited by nuka1195, 14 September 2007 - 05:55 PM.


#5 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 14 September 2007 - 06:05 PM

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

  <control>
   <description>button area</description>
   <type>image</type>
   <id>3</id>
   <posx>270</posx>
   <posy>60</posy>
   <width>150</width>
   <height>300</height>
   <texture>-</texture>
  </control>
  
  <control>
   <description>Default Button</description>
   <type>button</type>
   <id>7</id>
   <posx>530</posx>
   <posy>150</posy>
   <font>special25</font>
   <textoffsetx>7</textoffsetx>
   <texturefocus>list-focus.png</texturefocus>
   <texturenofocus>-</texturenofocus>
   <include>contentpanelslide</include>
  </control>

  <control type="button" id="10">
   <description>Default Category Button</description>
   <visible allowhiddenfocus="true">ControlGroup(775).HasFocus(10)</visible>
   <posx>208</posx>
   <posy>150</posy>
   <label>224</label>
   <font>special25</font>
   <align>left</align>
   <texturefocus>button-focus.png</texturefocus>
   <texturenofocus>button-nofocus.png</texturenofocus>
   <include>buttonpanelslide</include>
  </control>


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



#6 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 17 September 2007 - 01:14 PM

any1 with some good ideas ? pretty please smile.gif

#7 jmarshall

jmarshall

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,340 posts

Posted 17 September 2007 - 11:20 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.

#8 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 18 September 2007 - 06:58 AM

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

<control type="button" id="10">

<control>
   <description>button area</description

  <control>
   <description>Default Button</description>


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 ?




#9 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 18 September 2007 - 07:54 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


#10 theboxhead

theboxhead

    X-S Senior Member

  • Members
  • PipPip
  • 241 posts

Posted 18 September 2007 - 10:53 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 !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users