-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,xpdrops_setup_init].cs2
128 lines (128 loc) · 12.6 KB
/
[clientscript,xpdrops_setup_init].cs2
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// 1010
[clientscript,xpdrops_setup_init](component $component0, component $layer1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22, component $component23, component $component24, component $component25, component $component26, component $component27, component $component28, component $component29, component $component30, component $component31, component $component32, component $component33, component $component34, component $component35, component $component36, component $component37, component $component38, component $component39, component $component40, component $component41, component $component42, component $component43, component $component44, component $component45, component $component46, component $component47)
~xpdrops_setup_appearance($component8, $component10, $component22, $component12, $component14, $component16, $component18, $component20, $component24);
if_sethide(true, $component4);
~xpdrops_setup_init_display($component8, $component9, enum(int, string, enum_1164, -1), "Controls the position of the XP display and droplets.", 170, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component10, $component11, enum(int, string, enum_1165, -1), "Controls the text size used by the XP display and droplets.", 180, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component12, $component13, enum(int, string, enum_1166, -1), "Controls how long the XP display remains visible after each event.", 200, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component14, $component15, "Counter", "Choose which skill will have its details displayed in the number panel.<br><br>'<~text_client("<col=ef1020>", "<col=ff981f>")>Most recent</col>' will show whichever skill gained XP most recently.<br><br>If a <~text_client("<col=ef1020>", "<col=ff981f>")>tracker</col> has been set for the skill, the panel will show XP gained since the tracker's start point.", 300, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component16, $component17, "Progress bar", "Choose which skill will have its details displayed in the progress bar.<br><br>'<~text_client("<col=ef1020>", "<col=ff981f>")>Most recent</col>' will show whichever skill gained XP most recently.<br><br>If a <~text_client("<col=ef1020>", "<col=ff981f>")>goal</col> has been set for the skill, the bar will show progress towards that goal.<br><br>Otherwise it will show progress towards the next level.", 300, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component18, $component19, enum(int, string, enum_1168, -1), "Controls the text colour of the droplets.", 150, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component20, $component21, enum(int, string, enum_1170, -1), "When multiple skills increase together, their droplets may be grouped, within limits.", 300, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component22, $component23, enum(int, string, enum_1140, -1), "Droplet speed.", 200, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
~xpdrops_setup_init_display($component24, $component25, enum(int, string, enum_1625, -1), "Enables fake XP drops in certain situations where XP is blocked.", 250, $layer1, $component4, $component6, $component7, $component47, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25);
if_setnoclickthrough(true, $component5);
if_setonclick("xpdrops_setup_display_dropdown_close($component4, $component47, $component8, $component10, $component12, $component14, $component16, $component18, $component20, $component22, $component24)", $component5);
~xpdrops_setup_display_update($component8, $component10, $component12, $component14, $component16, $component18, $component20, $component22, $component24);
if_setonvartransmit("xpdrops_setup_display_update($component8, $component10, $component12, $component14, $component16, $component18, $component20, $component22, $component24){var1227, var1141}", $component0);
cc_deleteall($component27);
def_stat $statarray0(23);
def_int $int48 = 0;
while ($int48 <= 23) {
cc_create($component27, ^iftype_rectangle, $int48);
cc_setsize(0, 25, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int48 * 25), ^setpos_abs_centre, ^setpos_abs_top);
cc_setfill(true);
if (~on_mobile = false) {
cc_setonmouseover("script1015(event_com, event_comsubid, ^white, 225)");
}
if (calc($int48 % 2) = 0) {
cc_setcolour(^white);
cc_settrans(255);
if (~on_mobile = false) {
cc_setonmouseleave("script1015(event_com, event_comsubid, ^white, 255)");
}
} else {
cc_setcolour(^black);
cc_settrans(225);
if (~on_mobile = false) {
cc_setonmouseleave("script1015(event_com, event_comsubid, ^black, 225)");
}
}
cc_setop(1, "Configure");
if ($int48 < 23) {
$statarray0($int48) = enum(int, stat, enum_681, calc($int48 + 1));
cc_setopbase("<col=ff9040><enum(stat, string, enum_680, $statarray0($int48))></col>");
cc_setonop("script1023(event_op, event_comsubid, $statarray0($int48), $component3, $component26, $component27, $component28, $component29, $component30, $component31, $component32, $component33, $component34, $component35, $component36, $component37, $component38, $component39, $component40, $component41, $component42, $component43, $component44, $component45, $component46)");
} else {
cc_setopbase("<col=ff9040>Total XP</col>");
cc_setonop("script1023(event_op, event_comsubid, null, $component3, $component26, $component27, $component28, $component29, $component30, $component31, $component32, $component33, $component34, $component35, $component36, $component37, $component38, $component39, $component40, $component41, $component42, $component43, $component44, $component45, $component46)");
}
$int48 = calc($int48 + 1);
}
%varcint49 = 0;
def_int $int49 = 0;
while ($int49 <= 23) {
%varcint49 = calc($int49 * 25);
cc_create($component27, ^iftype_graphic, $int48);
$int48 = calc($int48 + 1);
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
cc_setposition(0, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
if ($int49 < 23) {
cc_setgraphic(enum(stat, graphic, enum_255, $statarray0($int49)));
} else {
cc_setgraphic("staticons2,7");
}
cc_create($component27, ^iftype_text, $int48);
$int48 = calc($int48 + 1);
cc_setsize(80, 25, ^setsize_abs, ^setsize_abs);
cc_setposition(28, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xffb83f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
if ($int49 < 23) {
cc_settext(enum(stat, string, enum_680, $statarray0($int49)));
} else {
cc_settext("Total XP");
}
cc_create($component27, ^iftype_text, $int48);
$int48 = calc($int48 + 1);
cc_setsize(110, 26, ^setsize_minus, ^setsize_abs);
cc_setposition(0, %varcint49, ^setpos_abs_right, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
$int49 = calc($int49 + 1);
}
cc_deleteall($component28);
if_setscrollpos(0, 0, $component27);
%varcint49 = calc(25 * (23 + 1));
if (%varcint49 > if_getheight($component27)) {
if_setscrollsize(0, %varcint49, $component27);
} else {
if_setscrollsize(0, 0, $component27);
}
~scrollbar_vertical($component28, $component27, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if_sethide(false, $component3);
if_sethide(false, $component26);
if_sethide(true, $component29);
cc_deleteall($component29);
cc_create($component29, ^iftype_text, 0);
cc_setsize(10, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 5, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(b12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
~stonepanel(-1, $component29, 1);
~script1016($component30);
~script1016($component31);
~script1016($component32);
def_string $op0 = "Discard";
~script1018(false, 0xff2020, $op0, $component45);
if (~on_mobile = false) {
if_setonmouseover("script1017(true, 0xff2020, $op0, event_com)", $component45);
if_setonmouseleave("script1017(false, 0xff2020, $op0, event_com)", $component45);
}
if_setonop("script1023(event_op, -1, null, $component3, $component26, $component27, $component28, $component29, $component30, $component31, $component32, $component33, $component34, $component35, $component36, $component37, $component38, $component39, $component40, $component41, $component42, $component43, $component44, $component45, $component46)", $component45);
$op0 = "Save";
$int48 = ~script1018(false, ^green, $op0, $component46);
if (~on_mobile = false) {
if_setonmouseover("script1017(true, ^green, $op0, event_com)", $component46);
if_setonmouseleave("script1017(false, ^green, $op0, event_com)", $component46);
}
if_setonop("script1019(event_op, event_com, $int48, ^green)", $component46);
~script1026($component3, $component26, $component27, $component28, $component29, $component30, $component31, $component32, $component33, $component34, $component35, $component36, $component37, $component38, $component39, $component40, $component41, $component42, $component43, $component44, $component45, $component46);
if_setonvartransmit("script1025($component3, $component26, $component27, $component28, $component29, $component30, $component31, $component32, $component33, $component34, $component35, $component36, $component37, $component38, $component39, $component40, $component41, $component42, $component43, $component44, $component45, $component46){var638, var261, var262, var1228, var1229, var1230, var1231, var1232, var1233, var1234, var1235, var1236, var1237, var1238, var1239, var1240, var1241, var1242, var1243, var1244, var1245, var1246, var1247, var1248, var1249, var1250, var1251, var1252, var1253, var1254, var1255, var1256, var1257, var1258, var1259, var1260, var1261, var1262, var1263, var1264, var1265, var1266, var1267, var1268, var1269, var1270, var1271, var1272, var1273, var1274, var1275}", $component2);