2003-10-07, 06:58
after doing the ntsc skin, i thought of one way that could speed up design.
having refrences to code that are repeated.
i like the way that everything can be changed, but i'd also like the option to set up parameters that can be refrenced.
eg.
refrences.xml
<ref>
<ref_id>1</ref_id>
<description>universal listcontrol</description>
<type>listcontrol</type>
<posx>210</posx>
<posy>80</posy>
<width>470</width>
<height>400</height>
<spinwidth>16</spinwidth>
<spinheight>16</spinheight>
<spinposx>645</spinposx>
<spinposy>438</spinposy>
<spincolor>ffffffff</spincolor>
<textureup>scroll-up.png</textureup>
<texturedown>scroll-down.png</texturedown>
<textureupfocus>scroll-up-focus.png</textureupfocus>
<texturedownfocus>scroll-down-focus.png</texturedownfocus>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.jpg</texturenofocus>
<image>icon-folder.png</image>
<font>font13</font>
<selectedcolor>0xffff6600</selectedcolor>
<textcolor>0xffb2d4f5</textcolor>
<colordiffuse>ffffffff</colordiffuse>
<suffix>|</suffix>
</ref>
then in mymusic.xml and or mypictures.xml
<control>
<id>10</id>
<onleft>11</onleft>
<onright>11</onright>
<onup>2</onup>
<ondown>2</ondown>
<ref_id>1</ref_id>
</control>
this way you could still customize every control, or use the refrence.
steve
having refrences to code that are repeated.
i like the way that everything can be changed, but i'd also like the option to set up parameters that can be refrenced.
eg.
refrences.xml
<ref>
<ref_id>1</ref_id>
<description>universal listcontrol</description>
<type>listcontrol</type>
<posx>210</posx>
<posy>80</posy>
<width>470</width>
<height>400</height>
<spinwidth>16</spinwidth>
<spinheight>16</spinheight>
<spinposx>645</spinposx>
<spinposy>438</spinposy>
<spincolor>ffffffff</spincolor>
<textureup>scroll-up.png</textureup>
<texturedown>scroll-down.png</texturedown>
<textureupfocus>scroll-up-focus.png</textureupfocus>
<texturedownfocus>scroll-down-focus.png</texturedownfocus>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.jpg</texturenofocus>
<image>icon-folder.png</image>
<font>font13</font>
<selectedcolor>0xffff6600</selectedcolor>
<textcolor>0xffb2d4f5</textcolor>
<colordiffuse>ffffffff</colordiffuse>
<suffix>|</suffix>
</ref>
then in mymusic.xml and or mypictures.xml
<control>
<id>10</id>
<onleft>11</onleft>
<onright>11</onright>
<onup>2</onup>
<ondown>2</ondown>
<ref_id>1</ref_id>
</control>
this way you could still customize every control, or use the refrence.
steve