-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,helper_generic_draw_data].cs2
26 lines (26 loc) · 1.22 KB
/
[proc,helper_generic_draw_data].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
// 4710
[proc,helper_generic_draw_data](int $int0)
def_int $width1 = parawidth(~helper_generic_get_string($int0), calc(119 / 2), p12_full);
def_int $width2 = parawidth(~helper_generic_get_string(calc($int0 + 1)), calc(119 - $width1), p12_full);
def_int $int3 = calc(paraheight(~helper_generic_get_string($int0), $width1, p12_full) * 14);
def_int $int4 = calc(paraheight(~helper_generic_get_string($int0 + 1), $width2, p12_full) * 14);
def_int $int5 = ~max($int3, $int4);
if (cc_find(interface_711:3, $int0) = ^true) {
cc_setsize($width1, $int5, ^setsize_abs, ^setsize_abs);
cc_setposition(0, %varcint493, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext(~helper_generic_get_string($int0));
}
if (cc_find(interface_711:3, calc($int0 + 1)) = ^true) {
cc_setsize($width2, $int5, ^setsize_abs, ^setsize_abs);
cc_setposition(0, %varcint493, ^setpos_abs_right, ^setpos_abs_top);
cc_setcolour(^white);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
cc_settext(~helper_generic_get_string(calc($int0 + 1)));
~helper_generic_set_height($int5);
}