-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,hidey_build_tab].cs2
111 lines (111 loc) · 3.7 KB
/
[proc,hidey_build_tab].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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// 1478
[proc,hidey_build_tab](component $component0, component $component1, enum $enum2, int $flags3, int $flags4, int $flags5)
cc_deleteall($component0);
def_int $int6 = 0;
def_int $comsubid7 = -1;
def_int $int8 = 0;
def_int $int9 = 0;
def_int $y10 = 0;
def_string $string0 = "";
def_string $string1 = "";
def_int $int11 = 0;
def_int $int12 = 0;
def_int $int13 = 0;
def_int $int14 = 0;
def_int $height15 = 0;
def_int $int16 = 0;
def_int $int17 = 0;
def_loc $loc18 = enum(int, loc, $enum2, $int16);
while ($loc18 ! null) {
if (calc($int16 % 4) = 0) {
cc_create($component0, ^iftype_rectangle, $int6);
$comsubid7 = $int6;
$int6 = calc($int6 + 1);
cc_setcolour(^white);
cc_setfill(true);
cc_settrans(245);
cc_setposition(0, $height15, ^setpos_abs_centre, ^setpos_abs_top);
} else {
$comsubid7 = -1;
}
$string0 = enum(loc, string, enum_1531, $loc18);
$int8 = calc(paraheight($string0, 143, p12_full) * 12 + 9);
if ($int8 < 20) {
$int8 = 20;
}
$int11, $int13 = ~hh_get_status($loc18, $flags3, $flags4, $flags5);
$int17 = calc($int16 + 1);
$loc18 = enum(int, loc, $enum2, $int17);
if ($loc18 ! null) {
$string1 = enum(loc, string, enum_1531, $loc18);
$int9 = calc(paraheight($string1, 143, p12_full) * 12 + 9);
$int12, $int14 = ~hh_get_status($loc18, $flags3, $flags4, $flags5);
if ($int8 < $int9) {
$int8 = $int9;
}
$y10 = calc($height15 + ($int8 - 17) / 2);
cc_create($component0, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(143, $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(317, $height15, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($string1);
if ($int12 = 1) {
cc_create($component0, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(244, $y10, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tick");
}
if ($int14 = 1) {
cc_create($component0, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(286, $y10, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tick");
}
$int16 = calc($int17 + 1);
$loc18 = enum(int, loc, $enum2, $int16);
} else {
$loc18 = null;
$y10 = calc($height15 + ($int8 - 17) / 2);
}
cc_create($component0, ^iftype_text, $int6);
$int6 = calc($int6 + 1);
cc_setsize(143, $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(85, $height15, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($string0);
if ($int11 = 1) {
cc_create($component0, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(12, $y10, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tick");
}
if ($int13 = 1) {
cc_create($component0, ^iftype_graphic, $int6);
$int6 = calc($int6 + 1);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(54, $y10, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tick");
}
if ($comsubid7 ! -1 & cc_find($component0, $comsubid7) = ^true) {
cc_setsize(0, $int8, ^setsize_minus, ^setsize_abs);
}
$height15 = calc($height15 + $int8);
}
if ($height15 > if_getheight($component0)) {
if_setscrollsize(0, $height15, $component0);
} else {
if_setscrollsize(0, 0, $component0);
}
if_setscrollpos(0, 0, $component0);
cc_deleteall($component1);
~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");