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:
is related to the "Buttons" Special Element:
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:
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
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