-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,script5500].cs2
27 lines (27 loc) · 1.09 KB
/
[clientscript,script5500].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
// 5500
[clientscript,script5500](component $component0, graphic $graphic1, string $string0, string $string1)
cc_deleteall($component0);
cc_create($component0, ^iftype_rectangle, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
cc_setfill(true);
cc_setcolour(^white);
def_boolean $boolean2 = ~on_mobile;
~script6171($component0, $string1, interface_755:99, $boolean2);
if_setonop("script6172(event_op, -1, $string0, event_com, cc_getid, $string1, interface_755:99, $boolean2)", $component0);
cc_create($component0, ^iftype_text, 1);
cc_setsize(22, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
cc_setcolour(0xbf751d);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
if ($graphic1 ! null) {
cc_settext($string0);
cc_create($component0, ^iftype_graphic, 2);
cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
cc_setposition(1, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setgraphic($graphic1);
} else {
cc_settext(""<$string0>"");
}