-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,1v1arena_hud_toggle].cs2
47 lines (47 loc) · 1.99 KB
/
[proc,1v1arena_hud_toggle].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
// 2717
[proc,1v1arena_hud_toggle](boolean $boolean0, component $component1, component $component2, component $component3)
cc_deleteall($component1);
cc_deleteall($component2);
if_sethide($boolean0, $component3);
def_int $comsubid4 = 0;
if ($boolean0 = true) {
if_sethide(true, $component2);
if_setonmouseover(null, $component2);
if_setonmouseleave(null, $component2);
if_clearops($component2);
if_setonop(null, $component2);
if_sethide(false, $component1);
$comsubid4 = ~options_button_off($component1, 0);
cc_create($component1, ^iftype_text, $comsubid4);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("Show");
if_setonmouseover("cc_colour_swapper(event_com, cc_getid, ^white)", $component1);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component1);
if_setop(1, "Show", $component1);
if_setonop("1v1arena_hud_toggle(false, $component1, $component2, $component3)", $component1);
} else {
if_sethide(true, $component1);
if_setonmouseover(null, $component1);
if_setonmouseleave(null, $component1);
if_clearops($component1);
if_setonop(null, $component1);
if_sethide(false, $component2);
$comsubid4 = ~options_button_off($component2, 0);
cc_create($component2, ^iftype_text, $comsubid4);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("Hide");
if_setonmouseover("cc_colour_swapper(event_com, cc_getid, ^white)", $component2);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component2);
if_setop(1, "Hide", $component2);
if_setonop("1v1arena_hud_toggle(true, $component1, $component2, $component3)", $component2);
}