-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script4338].cs2
54 lines (54 loc) · 2.08 KB
/
[proc,script4338].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
// 4338
[proc,script4338](component $component0, int $int1, int $int2, int $int3, struct $struct4)(int)
def_int $int5 = ~clan_hall_settings_get_value($struct4);
cc_create($component0, ^iftype_graphic, $int3);
$int3 = calc($int3 + 1);
cc_setsize(0, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int2 - ($int1 / 2 + 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setgraphic("tradebacking");
cc_settiling(true);
cc_create($component0, ^iftype_rectangle, $int3);
cc_setsize(0, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int2 - ($int1 / 2 + 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^white);
def_int $comsubid6 = $int3;
def_int $trans7 = 255;
if ($int5 ! 0) {
$trans7 = 220;
}
cc_settrans($trans7);
if (%varbit12200 = 1 & ~on_mobile = false) {
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 200, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, $trans7, null)");
}
cc_setop(1, "Select");
cc_setonop("script4339($struct4, $component0, $int3)");
$int3 = calc($int3 + 1);
cc_create($component0, ^iftype_rectangle, $int3);
$int3 = calc($int3 + 1);
cc_setsize(0, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int2 - ($int1 / 2 + 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(false);
cc_setcolour(0x0e0e0c);
cc_create($component0, ^iftype_rectangle, $int3);
$int3 = calc($int3 + 1);
cc_setsize(2, 18, ^setsize_minus, ^setsize_abs);
cc_setposition(1, calc($int2 - ($int1 / 2 + 9)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(false);
cc_setcolour(0x474745);
cc_create($component0, ^iftype_text, $int3);
$int3 = calc($int3 + 1);
cc_setsize(10, 16, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int2 - ($int1 / 2 + 8)), ^setpos_abs_centre, ^setpos_abs_top);
cc_settextfont(p12_full);
if ($int5 ! 0) {
cc_setcolour(^white);
} else {
cc_setcolour(0x808080);
}
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setonvartransmit("script4340(event_com, $int3, $struct4, $comsubid6){var3027}");
cc_settext(tostring(~clan_hall_settings_get_value($struct4)));
return($int3);