1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#ifndef FRACTS_H
#define FRACTS_H
/*
If you wish to replace the button or combo Images, you may end up with very querky results.
The reason is, that the style internally fracts those images into 9 tiles.
To get valid results, you need to adjust the values below, so they fit your images.
the format is:
w, h, xOff, yOff, centerW, centerH, shadowH, glowWH
- w, h are width and height of the whole button.
- xOff (yOff) is the distance of the central fraction from left (upper) button side.
- centerW (centerH) is the width (height) of the central button fraction.
- shadowH is the height of the buttons shadow
- glowWH is the size of the frame the glow draws around the button
an image may be helpful (make sure your editor uses a monospace font)
[- - - - - - - - - - - - - - - w - - - - - - - - - - - - -]---
|----------------|--------------------------|-----------------| |
| | | |
| yOff | | |
| | | |
|----- xOff----->o--------- centerW --------|-----------------| |
| | | |
| | centerH | h
| | | |
|----------------|--------------------------|-----------------| |
| | | |
| | | | |
| | | |
| | | | |
|----------------|--------------------------|-----------------| |
. ---
Also please notice, that the Button tiles are treated different from the rectangualr ones, namely, (S: static, T: tiled, TH: tiled horizontally, TV: tiled vertically)
Round Button, Combo:
|----------------|--------------------------|-----------------|
| | | |
| S | TH | S |
| | | |
|----------------|--------------------------|-----------------|
| | | |
| TV | T | TV |
| | | |
|----------------|--------------------------|-----------------|
| | | |
| | | |
| S | TH | S |
| | | |
|----------------|--------------------------|-----------------|
Rectangular Button:
|----------------|--------------------------|-----------------|
| | | |
| TV | TH | TV |
| | | |
|----------------|--------------------------|-----------------|
| | | |
| S | TH | S |
| | | |
|----------------|--------------------------|-----------------|
| | | |
| | | |
| TV | TH | TV |
| | | |
|----------------|--------------------------|-----------------|
*/
#endif
|