-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,deadman_spectator_stats].cs2
56 lines (56 loc) · 2.67 KB
/
[proc,deadman_spectator_stats].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
// 2182
[proc,deadman_spectator_stats](string $text0, string $text1, int $int0, int $int1, int $int2, int $int3, int $int4, int $int5, int $int6, int $int7, int $int8)
def_enum $enum9 = enum_140;
if ($int8 = 1) {
$enum9 = enum_142;
}
if_settext($text0, enum(component, component, $enum9, interface_154:10));
if_settext($text1, enum(component, component, $enum9, interface_154:11));
def_string $text2 = "<tostring($int0)> / <tostring($int1)>";
if_settext($text2, enum(component, component, $enum9, interface_154:16));
$int0 = calc($int0 * 100 / $int1 * 500 / 100);
if ($int0 > 500) {
$int0 = 500;
}
if_setsize($int0, 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:15));
if_setsize(calc(500 - $int0), 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:14));
def_string $text3 = "<tostring($int2)> / <tostring($int3)>";
if_settext($text3, enum(component, component, $enum9, interface_154:30));
$int2 = calc($int2 * 100 / $int3 * 247 / 100);
if ($int2 > 247) {
$int2 = 247;
}
if_setsize($int2, 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:29));
if_setsize(calc(247 - $int2), 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:28));
$int4 = calc($int4 / 10);
if ($int4 > 100) {
$int4 = 100;
}
def_string $text4 = "<tostring($int4)>%";
if_settext($text4, enum(component, component, $enum9, interface_154:23));
$int4 = calc($int4 * 247 / 100);
if_setsize($int4, 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:22));
if_setsize(calc(247 - $int4), 6, ^setsize_abs, ^setsize_minus, enum(component, component, $enum9, interface_154:21));
def_component $component10 = enum(component, component, $enum9, interface_154:60);
cc_deleteall($component10);
def_int $int11 = 0;
cc_create($component10, ^iftype_graphic, $int11);
$int11 = calc($int11 + 1);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_settiling(true);
cc_setgraphic("tradebacking_dark");
def_int $int12 = 8;
def_int $int13 = 0;
def_int $int14 = 0;
$int11, $int12, $int13, $int14 = ~script5226($int5, $component10, $enum9, $int11, $int12, $int13, $int14);
$int11, $int12, $int13, $int14 = ~script5226($int6, $component10, $enum9, $int11, $int12, $int13, $int14);
$int11, $int12, $int13, $int14 = ~script5226($int7, $component10, $enum9, $int11, $int12, $int13, $int14);
if ($int13 <= 0) {
if_sethide(true, $component10);
cc_deleteall($component10);
return;
}
if_sethide(false, $component10);
if_setsize(calc(8 + 36 + 4 + $int14 + 4 + 8), calc($int12 + 8), ^setsize_abs, ^setsize_abs, $component10);
$int11 = ~stonebox($component10, 1, $int11);