-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,poll_voting_addquestion].cs2
113 lines (113 loc) · 4.45 KB
/
[proc,poll_voting_addquestion].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
112
113
// 621
[proc,poll_voting_addquestion](int $int0, boolean $boolean1, string $string0, int $int2, int $flags3)
def_int $width4 = if_getwidth(interface_400:10);
def_int $int5 = calc($width4 - 4 * 2);
def_int $int6 = %varcint43;
def_int $height7 = %varcint49;
cc_create(interface_400:10, ^iftype_rectangle, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(0, $height7, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
cc_settrans(225);
cc_create(interface_400:10, ^iftype_rectangle, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(0, $height7, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0x777775);
cc_setfill(false);
cc_create(interface_400:10, ^iftype_rectangle, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(1, calc($height7 + 1), ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0x474745);
cc_setfill(false);
%varcint49 = calc(%varcint49 + 4);
def_string $string1 = "";
$string1, $string0 = ~script632($string0);
def_int $int8 = calc(paraheight($string1, $int5, p11_full) * 10 + 2);
$int8 = ~max($int8, 15);
cc_create(interface_400:10, ^iftype_text, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(4, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int5, $int8, ^setsize_abs, ^setsize_abs);
%varcint49 = calc(%varcint49 + $int8);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($string1);
$string1, $string0 = ~script632($string0);
$int8 = calc(paraheight($string1, $int5, p12_full) * 12 + 5);
cc_create(interface_400:10, ^iftype_text, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(4, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int5, $int8, ^setsize_abs, ^setsize_abs);
%varcint49 = calc(%varcint49 + $int8);
cc_setcolour(^white);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($string1);
def_string $string2 = "";
$string1, $string0 = ~script632($string0);
$string2, $string0 = ~script632($string0);
~poll_addlink($string1, $string2, interface_400:10, $int5, 4, p11_full, p11_full, 10, 2);
def_int $int9 = calc(4 + 17 + 4);
def_int $width10 = calc($int5 - (4 + $int9));
def_int $int11 = 0;
while ($int11 < $int2) {
$string1, $string0 = ~script632($string0);
$int8 = calc(paraheight($string1, $width10, p11_full) * 10 + 2);
$int8 = ~max($int8, 17);
if (~on_mobile = true) {
$int8 = ~max($int8, 27);
}
cc_create(interface_400:10, ^iftype_rectangle, %varcint43);
cc_settrans(255);
cc_setcolour(^white);
cc_setfill(true);
%varcint43 = calc(%varcint43 + 1);
.cc_create(interface_400:10, ^iftype_text, %varcint43);
%varcint43 = calc(%varcint43 + 1);
cc_setposition(4, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition($int9, %varcint49, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int5, $int8, ^setsize_abs, ^setsize_abs);
.cc_setsize($width10, $int8, ^setsize_abs, ^setsize_abs);
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_setcolour(0xff981f);
cc_setonmouserepeat("cc_colour_swapper(event_com, .cc_getid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, .cc_getid, 0xff981f)");
.cc_settext($string1);
.cc_create(interface_400:10, ^iftype_graphic, %varcint43);
%varcint43 = calc(%varcint43 + 1);
.cc_setposition(4, calc(%varcint49 + ($int8 - 17) / 2), ^setpos_abs_left, ^setpos_abs_top);
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
if (testbit($flags3, $int11) = ^true) {
.cc_setgraphic("options_radio_buttons,2");
} else if ($boolean1 = true) {
.cc_setgraphic("options_radio_buttons,1");
} else {
.cc_setgraphic("options_radio_buttons,0");
}
.cc_settiling(false);
if ($boolean1 = true & testbit($flags3, $int11) = ^true) {
cc_setop(1, "De-select");
} else {
cc_setop(1, "Select");
}
cc_setonop("script623(event_com, event_comsubid, $int0, $int11)");
$int11, %varcint49 = calc($int11 + 1), calc(%varcint49 + $int8);
}
%varcint49 = calc(%varcint49 + 4);
$int8 = calc(%varcint49 - $height7);
if (cc_find(interface_400:10, $int6) = ^true) {
cc_setsize($width4, $int8, ^setsize_abs, ^setsize_abs);
}
if (cc_find(interface_400:10, calc($int6 + 1)) = ^true) {
cc_setsize($width4, $int8, ^setsize_abs, ^setsize_abs);
}
if (cc_find(interface_400:10, calc($int6 + 2)) = ^true) {
cc_setsize(calc($width4 - 2), calc($int8 - 2), ^setsize_abs, ^setsize_abs);
}
%varcint49 = calc(%varcint49 + 4);