NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 121 122 123 124 125 … 193 Next »
Skin XML suggestion

 
  • 0 Vote(s) - 0 Average
Skin XML suggestion
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#1
2006-02-16, 04:00 PM
Sub,
I'm working with my WYSIWYG designer for SkinTools, and came up with something that I think may help both people who work with the XML files manually and my application.
Right now, there is no logical connection in between a composite image and a special element. For example, I can't tell just from looking at the skin.xml file in Main Menu, that this composite image:

Code:
<CompositeImage name="NormalButtonImage" size="166,45">    
    ...            
</CompositeImage>

is related to the "Buttons" Special Element:

Code:
<SpecialElement name="Buttons" loc="280,90" spacing="38" alwayCentered="false" maxVisibleButtons="7" allowTopBottomWrap="false" showNumbers="false"/>

So right now, I have to set up relationships in my code, then tell my code not to display the composite images that are related to a special element, as the element should determine how they are drawn.

I think that this can all be solved with something the following syntax:

Code:
<CompositeImage name="NormalButtonImage" size="166,45" specialElement="Buttons">    
...                
</CompositeImage>

Basically it's the same way you handle TextStyles. Adding this shouldn't break existing skins, and will also make it easier for anyone manually editing a skin's XML file to clearly see the realtionships without having to run GBPVR.

Obviously, you know the big picture, and why this may not be a good idea. I'd love to hear your thoughts on this.

gruskada
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,734
Threads: 767
Joined: Nov 2003
#2
2006-02-16, 04:03 PM
I know it would make your project easier, but to be honest, there often isnt a direct relationship between a special element and a composite element. I've typically use a special element when I've needed to represent some positional information, but there is not a picture to go at the location.
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#3
2006-02-16, 04:06 PM (This post was last modified: 2006-02-16, 04:28 PM by gruskada.)
sub Wrote:I know it would make your project easier, but to be honest, there often isnt a direct relationship between a special element and a composite element.

Wow, you're quick. Anyway, I just thought it would be helpful in the cases where there is a relationship (like everywhere a "Buttons" special element is used).

gruskada
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#4
2006-02-16, 04:43 PM (This post was last modified: 2006-02-16, 06:08 PM by gruskada.)
I think something like this would be my ideal skin XML file to work with:

Code:
<settings>
    <CompositeImages>
        <CompositeImage name="[required]" size="[required]" specialElement="[optional]">
    </CompositeImages>
    
    <!--- used for positioning only --->
    <SpecialElements>
        <SpecialElement name="[required]" loc="[required]">
    </SpecialElements>

    <!--- used to set variables only --->
    <Variables>
        <Variable name="[required]" value="[required]" specialElement="[optional]">
    </Variables>    
</settings>

...ducking for cover :eek:

gruskada
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2006-02-16, 07:14 PM
My only concern with the above, is why do we need size information on the compositeimage and the special element, since theoretically thewy should be the same.

Other than that, naming convention helps as well.

If I have SE LeftList then I'll probably make a CI called LeftListImage.

But that's just me.
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#6
2006-02-16, 07:34 PM (This post was last modified: 2006-02-16, 07:49 PM by gruskada.)
psycik Wrote:My only concern with the above, is why do we need size information on the compositeimage and the special element, since theoretically thewy should be the same.

Other than that, naming convention helps as well.

If I have SE LeftList then I'll probably make a CI called LeftListImage.

But that's just me.

There's no size info (width,height) on the special element, just position info (Loc), which is just an x,y coord.

gruskada
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Suggestion: disable specific recurring schedule janoonk 8 2,622 2021-06-02, 01:57 AM
Last Post: sub
  More than a skin, thinking customized user interface Jakesty 2 1,792 2018-02-22, 04:26 PM
Last Post: sub
  New settings suggestion liteswap 1 1,400 2012-02-01, 04:33 PM
Last Post: sub
  Suggestion a_edwall 5 2,611 2011-09-02, 11:54 AM
Last Post: mvallevand
  Couple of skin wish list items Northpole 0 1,469 2011-07-02, 12:51 AM
Last Post: Northpole
  Vertical Version of Menu in Default Skin jksmurf 0 1,138 2011-02-13, 02:23 AM
Last Post: jksmurf
  NPVR Skin wish list XJW 5 2,688 2010-07-18, 07:42 AM
Last Post: XJW
  Suggestion: A world first - Who's watched what? peter_h 16 6,711 2010-07-14, 10:55 PM
Last Post: stustunz
  Suggestion: Any interest in tracking Who's Watched What? peter_h 0 1,172 2010-07-14, 02:37 AM
Last Post: peter_h
  Vertical button list skin MixMan 0 1,336 2009-06-23, 09:28 PM
Last Post: MixMan

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode