Jump to content


Photo

Group Conditional Visibility


  • Please log in to reply
11 replies to this topic

#1 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 01 September 2008 - 03:39 AM

Hey folks, think the topic gives a bit of a clue... I'm dabbling with some skinning, and I'm looking to make a control group to appear/dissapear as needed. I've tried using a visible tag with the allowfocus attribute set to true, and I can get this to work for buttons when the condition is set as self, but it doesnt work for groups for me. Is there something I'm missing to get an entire group to appear when focussed, or would I need to do this for each button in the group individually?
thanks
Leroux

#2 Jezz_X

Jezz_X

    X-S Knowledgebase

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

Posted 01 September 2008 - 04:44 AM

<visible allowhiddenfocus="true">Condition</visible> on the group should do the job fine post the code you have (just the group) and I may have a better understanding

#3 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 01 September 2008 - 01:12 PM

Cheers Jezz_X, this is the code I have.
CODE
<control type="group" id="9000">
    <posx>20</posx>
    <posy>100</posy>
    <include>buttonpanelslide</include>
    <visible allowhiddenfocus="true">Control.HasFocus(9000)</visible>
    <control type="button" id="2">
        <description>View As Icons button</description>
        <posx>0</posx>
        <posy>0</posy>
        <label>100</label>
        <onleft>50</onleft>
        <onright>50</onright>
        <onup>20</onup>
        <ondown>3</ondown>
    </control>
    <control type="button" id="3">
        <description>Sort by button</description>
        <posx>0</posx>
        <posy>37</posy>
        <label>103</label>
        <onleft>50</onleft>
        <onright>4</onright>
        <onup>2</onup>
        <ondown>99</ondown>
    </control>
    <control type="togglebutton" id="4">
        <description>Sort asc</description>
        <label>-</label>
        <posx>140</posx>
        <posy>48</posy>
        <onleft>3</onleft>
        <onright>50</onright>
        <onup>2</onup>
        <ondown>99</ondown>
    </control>
</control>

Thats the non-working code. If I change the Control.HasFocus() condition to either 2,3 or 4 it will become visible, but obviously only when those are selected. I am intending to add more controls to the group later, which is why I dont really want to do each control seperately as a condition, but I guess I will if necessary.

#4 Jezz_X

Jezz_X

    X-S Knowledgebase

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

Posted 02 September 2008 - 01:29 AM

Try ControlGroup(9000).HasFocus() for the visible condition

#5 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 02 September 2008 - 02:24 AM

QUOTE(Jezz_X @ Sep 2 2008, 02:05 AM) View Post

Try ControlGroup(9000).HasFocus() for the visible condition

You're kidding right? OK, I quit. This is why I'm only skinning for myself, if I screw up with things like that.

Anyways, cheers as always Jezz_X, you have earned yourself another warshipper! smile.gif

#6 Jezz_X

Jezz_X

    X-S Knowledgebase

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

Posted 02 September 2008 - 03:19 AM

hehe don't give up smile.gif its all a learning process we all started somewhere but the wiki and looking at other skins is really the best place to learn
I used to recommend people look at PM3 to learn but thanks to Me PM3 has gotten pretty complicated these days sad.gif (code wise)

#7 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 02 September 2008 - 03:48 AM

Lol, no worries. I won't give up quite that easily yet... just write it down so I dont do the same again. Truth be told its PM3 I'm editing... trying to find a way to change it a bit to add extra features, while remaining true to it. Next order of business is adding movie fanart for myself.

Anyway, I've got that done now... run into other problems but I think I know how to sort them too, so I'll have a go at that tomorrow after a good sleep. Cheers for all the help mate. smile.gif

#8 Jezz_X

Jezz_X

    X-S Knowledgebase

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

Posted 02 September 2008 - 05:56 AM

truth be told (And this is the first time I mentioned this anywhere in public)
I have been working on a new Updated version of pm3 for Hidef (or 16x9) for a while now. It allready includes movie and Tv show fanart as well as much better mouse control (non xbox of course)

Basically its 97% remade images from scratch and thus has a slightly different look to it but still very much follows the pm3 theme of simplistic and very useable.

It will probably be in the first XBMC Atlantis Beta Version downloads. So people can bug check it before we hit final

#9 djdafreund

djdafreund

    X-S Genius

  • Members
  • PipPipPipPip
  • 763 posts
  • Xbox Version:v1.4
  • 360 version:v5.0 (360S - trinity)

Posted 02 September 2008 - 07:00 AM

Ah man. I am SO looking forward to seeing that come out. I love PM3 (2nd most used skin for my xbox's), and always wanted to see a proper 16x9 conversion done on it. Great news to hear. Thanks a bunch!!!

#10 Jezz_X

Jezz_X

    X-S Knowledgebase

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

Posted 02 September 2008 - 07:26 AM

lol you hide it in a non related post and people still find it smile.gif

#11 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 02 September 2008 - 02:46 PM

QUOTE(Jezz_X @ Sep 2 2008, 08:02 AM) View Post

lol you hide it in a non related post and people still find it smile.gif

Surely that can only be a good sign.
Sounds kool man... I'll keep editing just now, because I like to have my own touches at times (I use a customised home screen for instance), adn I wouldn't mind the ability to actually do a little more in skinning.

But totally agree with djdafreund - I use PM3 the whole time on my main box, I just can't adapt well enough to any of the others.

#12 Gamester17

Gamester17

    X-S Senior Member

  • Members
  • PipPip
  • 223 posts
  • Location:Sweden
  • Xbox Version:v1.1
  • 360 version:none

Posted 02 September 2008 - 11:16 PM

QUOTE(Jezz_X @ Sep 2 2008, 07:02 AM) View Post

lol you hide it in a non related post and people still find it smile.gif
news leaker, hehe wink.gif ...maybe its time for your first blog post Jezz_X? biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users