-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,1v1arena_hud_init].cs2
35 lines (35 loc) · 1.69 KB
/
[clientscript,1v1arena_hud_init].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
// 2713
[clientscript,1v1arena_hud_init](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5)
~1v1arena_hud_toggle(false, $component1, $component2, $component3);
def_string $op0 = "Spectator";
cc_deleteall($component4);
def_int $comsubid6 = ~options_button_off($component4, 0);
cc_create($component4, ^iftype_text, $comsubid6);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($op0);
if_setop(1, $op0, $component4);
cc_setcolour(0xff981f);
if_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, ^white)", $component4);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component4);
if_setonop("1v1arena_hud_button(event_opindex, $component4, cc_getid)", $component4);
if_setontimer(null, $component4);
$op0 = "Start All";
cc_deleteall($component5);
$comsubid6 = ~options_button_off($component5, 0);
cc_create($component5, ^iftype_text, $comsubid6);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($op0);
if_setop(1, $op0, $component5);
cc_setcolour(0xff981f);
if_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, ^white)", $component5);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component5);
if_setonop("1v1arena_hud_button(event_opindex, $component5, cc_getid)", $component5);
if_setontimer(null, $component5);