-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,makeover_hair_setup].cs2
45 lines (45 loc) · 1.69 KB
/
[clientscript,makeover_hair_setup].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
// 502
[clientscript,makeover_hair_setup](component $component0, component $component1, component $component2)
cc_deleteall($component0);
cc_deleteall($component2);
if (%varbit4146 = 1) {
if_settext("Select hairstyle", $component1);
~makeover_drawmodels($component0, enum_881, enum_882, null, null, 1200, 0, 180, 1, 1);
} else if (%varbit4146 = 2) {
if_settext("Select facial hair", $component1);
~makeover_drawmodels($component0, enum_884, enum_885, enum_886, null, 1200, 0, 180, 1, 1);
} else if (%varbit4146 = 3) {
if_settext("Select hairstyle", $component1);
~makeover_drawmodels($component0, enum_888, enum_889, null, null, 1350, 0, 150, 1, 1);
} else {
if_settext("Please try again later.", $component1);
return;
}
def_int $int3 = 0;
while ($int3 < 25) {
cc_create($component2, ^iftype_rectangle, $int3);
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
if ($int3 < 13) {
cc_setposition(calc($int3 * 25), 0, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(calc(($int3 - 13) * 25 + 12), 26, ^setpos_abs_left, ^setpos_abs_top);
}
cc_setfill(true);
cc_setcolour(enum(int, int, enum_890, $int3));
cc_setop(1, enum(int, string, enum_891, $int3));
$int3 = calc($int3 + 1);
}
$int3 = 0;
while ($int3 < 25) {
cc_create($component2, ^iftype_graphic, calc($int3 + 25));
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
if ($int3 < 13) {
cc_setposition(calc($int3 * 25), 0, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(calc(($int3 - 13) * 25 + 12), 26, ^setpos_abs_left, ^setpos_abs_top);
}
cc_setgraphic("overlay_multiway");
~makeover_indicator($int3, 3);
cc_setonvartransmit("makeover_indicator(event_com, event_comsubid, $int3, 3){var263}");
$int3 = calc($int3 + 1);
}