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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
<plugin name="scrollthumbs" url="thumbsbg.png"
align="leftbottom" x="15" y="10"
scale9grid="18|4|4|54"
width="500" height="64"
keep="true"
zorder="98"
onhover="tween(plugin[scrollthumbs].alpha, 1, distance(10,2), linear); "
onout="timerset(1,0,,,,,,false, tween(plugin[scrollthumbs].alpha, 0.15, distance(10,10), linear);); ); "
enabled="false"
/>
<plugin name="scrollthumbscont" url="spacer.png"
parent="scrollthumbs"
align="lefttop" origin="lefttop" x="18" y="7"
width="464"
height="50"
keep="true"
mask="thumbsmask"
/>
<plugin name="thumbsmask" url="spacerb.png"
parent="scrollthumbs"
align="lefttop" origin="lefttop"
x="18" width="464"
y="7" height="50"
keep="true"
enabled="false"
/>
<plugin name="scrollleft" url="scrollbuttons.png"
parent="scrollthumbs"
align="left" edge="left"
x="0"
y="0"
crop="17|0|17|62" onovercrop="0|0|17|62" ondowncrop="34|0|17|62"
ondown="tween(plugin[scrollthumbscont].x, 18, distance(200,0.3), linear);"
onup="stoptween(plugin[scrollthumbscont].x);"
zorder="102"
keep="true"
/>
<plugin name="scrollright" url="scrollbuttons.png"
parent="scrollthumbs"
align="right" edge="left"
x="0"
y="0"
rotate="180"
crop="17|0|17|62" onovercrop="0|0|17|62" ondowncrop="34|0|17|62"
ondown="tween(plugin[scrollthumbscont].x, get(scrollw), distance(200,0.3), linear);"
onup="stoptween(plugin[scrollthumbscont].x);"
zorder="102"
keep="true"
/>
<plugin name="frame" url="frame.png"
parent="scrollthumbscont"
align="lefttop" origin="lefttop" x="5" y="0"
scale9grid="3|3|94|44"
width="85" height="50"
zorder="101"
enabled="false"
keep="true"
/>
<action name="settingbutton">
addplugin(%1);
set(plugin[%1].children,false);
set(plugin[%1].url,%3);
set(plugin[%1].parent,scrollthumbscont);
set(plugin[%1].align,lefttop);
set(plugin[%1].origin,lefttop);
set(plugin[%1].x,%4);
set(plugin[%1].y,0);
set(plugin[%1].width,85);
set(plugin[%1].height,50);
set(plugin[%1].zorder,100);
set(plugin[%1].onclick,set(plugin[scrollthumbs].enabled,false); set(plugin[frame].x,%4); loadscene(%1, null, MERGE, BLEND(0.7) ););
set(plugin[%1].onhover,showtext( %2,buttontext););
set(plugin[%1].keep,true);
</action>
<scene name="scene1name" onstart="action(createbuttons);">
...
</scene>
<scene name="scene2name" onstart="action(createbuttons);">
...
</scene>
<action name="createbuttons">
set(xpos,5); set(scrollw,406);
settingbutton(scene1, Text for scene1, get(xpos)); inc(xpos,90); inc(scrollw,-90);
settingbutton(scene2, Text for scene2, get(xpos)); inc(xpos,90); inc(scrollw,-90);
</action>
|