-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,xpdrops_redraw].cs2
24 lines (24 loc) · 1.15 KB
/
[proc,xpdrops_redraw].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
// 995
[proc,xpdrops_redraw](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6)
def_fontmetrics $fontmetrics7 = p11_full;
def_fontmetrics $fontmetrics8 = p11_full;
def_int $int9 = 16;
if (%varbit4693 = 1 & ~on_mobile = false) {
$fontmetrics7, $fontmetrics8, $int9 = p12_full, p12_full, 25;
} else if (%varbit4693 = 2 & ~on_mobile = false) {
$fontmetrics7, $fontmetrics8, $int9 = b12_full, b12_full, 25;
}
def_int $width10 = calc(28 + parawidth("+8,888,888,888", 512, $fontmetrics7) + 2);
if_setsize($width10, if_getheight($component1), ^setsize_abs, ^setsize_abs, $component1);
if_settextfont($fontmetrics8, $component3);
def_int $int11 = 0;
def_component $component12 = enum(int, component, enum_1163, $int11);
while ($component12 ! null) {
if (cc_find($component12, 0) = ^true) {
cc_setcolour(enum(int, int, enum_1169, %varbit4695));
~xpdrops_setdropsize($component12, $int9, $fontmetrics7, $fontmetrics8, cc_gettext);
}
$int11 = calc($int11 + 1);
$component12 = enum(int, component, enum_1163, $int11);
}
~xpdrops_setposition($component1, $component2);