-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,clanwars_confirm_setup].cs2
37 lines (37 loc) · 1.78 KB
/
[clientscript,clanwars_confirm_setup].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
// 554
[clientscript,clanwars_confirm_setup](int $int0, string $string0)
cc_deleteall(interface_92:4);
cc_deleteall(interface_92:5);
def_int $width1 = if_getwidth(interface_92:4);
def_int $height2 = calc(paraheight($string0, $width1, p12_full) * 12 + 5);
cc_create(interface_92:4, ^iftype_text, 0);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($width1, $height2, ^setsize_abs, ^setsize_abs);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(p12_full);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settext($string0);
if_setscrollpos(0, 0, interface_92:4);
if ($height2 > if_getheight(interface_92:4)) {
if_setscrollsize(0, $height2, interface_92:4);
} else {
if_setscrollsize(0, 0, interface_92:4);
}
~scrollbar_vertical(interface_92:5, interface_92:4, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if ($int0 = 0) {
if_sethide(true, interface_92:7);
if_setontimer("clanwars_confirm_challenge_wait(event_com, interface_92:7, calc(clientclock + 150))", interface_92:1);
~clanwars_confirm_challenge_redraw(interface_92:7);
if_setonvartransmit("clanwars_confirm_challenge_redraw(interface_92:7){var92, var375}", interface_92:1);
if_setonop("clanwars_confirm_challenge_op(event_op, event_com)", interface_92:7);
} else if ($int0 = 1) {
if_sethide(false, interface_92:7);
~clanwars_confirm_notpressed(interface_92:7);
if_setonop("clanwars_confirm_join_op(event_op, event_com)", interface_92:7);
} else {
if_sethide(false, interface_92:7);
~clanwars_confirm_notpressed(interface_92:7);
if_setonop("closebutton_click", interface_92:7);
}
~script2876(interface_92:0, interface_92:1, interface_92:4, interface_92:5, calc($height2 + 85), ^min_32bit_int, ^min_32bit_int);