2
How To Create Your Own Skin
4
There is 2 main steps to create an KsCD skin:
5
1 - Draw the 'default' KsCD with the buttons positioned at the right place.
6
2 - Draw the other buttons in the others states.
8
A button can have 3 states:
10
* pressed : when the mouse clicks on the button.
11
* over : when the mouse is over the button.
13
1. Draw the 'default' KsCD
15
a) Create the background with 'kscdBack_default' id :
16
- mustn't have any transform attribute on it (see its xml)
17
- his position must be the following : x=0, y=0 (in the top left corner)
19
b) Rules for drawing a default button:
20
* First draw the button the way you want in the top left corner.
21
* Name this button with the corresponding id (see list below).
22
* Translate the button to the place you want on the background.
24
The button list to be drawn:
41
c) Then select every 'default' items and group them with the id:'kscd_default'.
43
2 - Draw the other buttons
45
Then you will have to redraw each button in every state :
b'\\ No newline at end of file'