mc^^^^
6th September 2001, 10:07
Due to a number of posts asking "how do i start skinning" i have made this tutorial on the xml basics and how to position and change the size of buttons.
If you change the main graphics with your own size png's it will freeform skin wa3. To move the buttons around here is an example.
---------------------------------------------------------------------
here is the play button in player-normal.xml:
<button
id="Play"
action="PLAY"
x="39" y="194" <1>
image="player.button.play" <2>
downImage="player.button.play.pressed" <3>
tooltip="Play" <4>
/>
<1> x&y are the coordinates for the buttons as they will appear on the player. eg:39 pixles across & 194 down.
<2> The link to the normal play button in player-elements.xml
<3> The link to the normal play button when pressed in player-elements.xml
<4> The text shown in the song info box when play is pressed.
And now here is the play button in player-elements.xml
<bitmap id="player.button.play" <5>
file="player/buttons-play-unpressed.png" <6>
x="0" y="0" <7>
h="17" w="17"/> <8>
<bitmap id="player.button.play.pressed" <5>
file="player/buttons-play-unpressed.png" <6>
x="0" y="0" <7>
h="17" w="17"/> <8>
<5> The button id as pointed out in player-normal.xml
<6> The picture related to the id.
<7> The x&y coordinates of the image inside the png.
<8> The hieght and width of the button as it appears on the player.
---------------------------------------------------------------------
Once you know that it isn't too hard to figure out the other minor bits. Hope I helped!;)
If you change the main graphics with your own size png's it will freeform skin wa3. To move the buttons around here is an example.
---------------------------------------------------------------------
here is the play button in player-normal.xml:
<button
id="Play"
action="PLAY"
x="39" y="194" <1>
image="player.button.play" <2>
downImage="player.button.play.pressed" <3>
tooltip="Play" <4>
/>
<1> x&y are the coordinates for the buttons as they will appear on the player. eg:39 pixles across & 194 down.
<2> The link to the normal play button in player-elements.xml
<3> The link to the normal play button when pressed in player-elements.xml
<4> The text shown in the song info box when play is pressed.
And now here is the play button in player-elements.xml
<bitmap id="player.button.play" <5>
file="player/buttons-play-unpressed.png" <6>
x="0" y="0" <7>
h="17" w="17"/> <8>
<bitmap id="player.button.play.pressed" <5>
file="player/buttons-play-unpressed.png" <6>
x="0" y="0" <7>
h="17" w="17"/> <8>
<5> The button id as pointed out in player-normal.xml
<6> The picture related to the id.
<7> The x&y coordinates of the image inside the png.
<8> The hieght and width of the button as it appears on the player.
---------------------------------------------------------------------
Once you know that it isn't too hard to figure out the other minor bits. Hope I helped!;)