-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,tob_hud_statusrefresh].cs2
49 lines (49 loc) · 1.59 KB
/
[proc,tob_hud_statusrefresh].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
// 2298
[proc,tob_hud_statusrefresh](int $int0, int $int1, string $string0, component $component2, component $component3, component $component4)
def_int $int5 = 0;
if ($int1 ! 0 & cc_find($component2, 0) = ^true) {
if_sethide(false, $component2);
if (string_length($string0) <= 0 | compare($string0, "null") = 0) {
$string0 = "-";
}
if ($int0 = calc(%varbit6441 - 1)) {
cc_settext("Me");
$int5 = 1;
} else {
cc_settext(substring($string0, 0, 1));
}
if_setonmouserepeat("tooltip_mouserepeat($component2, -1, $component4, $string0, 25, 512)", $component2);
if_setonmouseleave("deltooltip($component4)", $component2);
if ($int1 = 31) {
if (.cc_find($component3, 0) = ^true) {
.cc_setgraphic("orb_filler,3");
}
cc_setcolour(0x7f0000);
if_setsize(26, 26, ^setsize_abs, ^setsize_abs, $component3);
if_setonstattransmit(null, $component2);
} else {
if (.cc_find($component3, 0) = ^true) {
.cc_setgraphic("orb_filler,1");
}
if ($int1 = 30) {
cc_setcolour(^red);
if_setsize(26, 0, ^setsize_abs, ^setsize_abs, $component3);
if_setonstattransmit(null, $component2);
} else {
cc_setcolour(^white);
if ($int5 = 1) {
~script2300($component3);
if_setonstattransmit("script2299($component3){hitpoints}", $component2);
} else {
if_setsize(26, ~min(26, calc($int1 - 1)), ^setsize_abs, ^setsize_abs, $component3);
if_setonstattransmit(null, $component2);
}
}
}
} else {
if_sethide(true, $component2);
if_setonstattransmit(null, $component2);
if_setonmouserepeat(null, $component2);
if_setonmouseleave(null, $component2);
~deltooltip_action($component4);
}