-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,settings_create_drop_down].cs2
138 lines (138 loc) · 5.9 KB
/
[proc,settings_create_drop_down].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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// 3850
[proc,settings_create_drop_down](int $int0, int $int1, int $int2, int $int3, int $trans4, struct $struct5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14)(int, int, int, int)
def_enum $enum15 = struct_param($struct5, param_1091);
def_boolean $boolean16 = ~on_mobile;
if ($boolean16 = true & struct_param($struct5, param_1092) ! null) {
$enum15 = struct_param($struct5, param_1092);
}
if ($enum15 = null) {
cc_create($component6, ^iftype_rectangle, $int3);
cc_sethide(true);
$int3 = calc($int3 + 1);
return($int0, $int1, $int2, $int3);
}
def_int $int17 = calc(parawidth(enum(int, string, $enum15, ^max_32bit_int), 1000, p12_full) + 14);
def_int $int18 = calc($int17 + 20);
def_string $string0 = struct_param($struct5, param_1086);
if ($boolean16 = true & string_length(struct_param($struct5, param_1087)) > 0) {
$string0 = struct_param($struct5, param_1087);
}
def_string $string1 = struct_param($struct5, param_1096);
def_int $int19 = 0;
def_int $int20 = %varbit9665;
def_boolean $boolean21 = struct_param($struct5, param_1119);
if ($boolean16 = true & string_length(struct_param($struct5, param_1097)) > 0) {
$string1 = struct_param($struct5, param_1097);
}
if (string_length($string1) > 0) {
$int19 = calc(paraheight($string1, if_getwidth($component7) - ($int18 + 25), p12_full) * 14);
}
$int1 = calc($int1 + $int19);
if ($int20 = 1 | $boolean21 = true) {
$int19 = 0;
}
def_int $int22 = calc(paraheight($string0, if_getwidth($component7) - ($int18 + 25), b12_full) * 14);
if ($boolean16 = true & $int22 < 20) {
$int22 = 20;
}
def_int $int23 = calc($int22 + 12 + $int19);
def_boolean $boolean24 = struct_param($struct5, param_1085);
def_int $int25 = ~script3957($struct5);
cc_create($component7, ^iftype_rectangle, $int2);
cc_setsize(10, $int23, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int0, ^setpos_abs_centre, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^black);
cc_settrans($trans4);
$int2 = calc($int2 + 1);
cc_create($component7, ^iftype_text, $int2);
cc_setsize(calc($int18 + 25), $int22, ^setsize_minus, ^setsize_abs);
cc_setposition(10, calc($int0 + 6), ^setpos_abs_left, ^setpos_abs_top);
cc_settext($string0);
cc_settextfont(b12_full);
cc_settextshadow(true);
if ($int25 = 1) {
cc_setcolour(0xff981f);
} else {
cc_setcolour(0x9f9f9f);
}
if ($boolean16 = false & $int20 = 1 & string_length($string1) > 0) {
cc_setonmouserepeat("tooltip_mouserepeat($component7, $int2, $component14, $string1, 25, 190)");
cc_setonmouseleave("deltooltip($component14)");
}
cc_settextalign(^settextalign_left, ^settextalign_centre, 14);
$int2 = calc($int2 + 1);
cc_create($component7, ^iftype_graphic, $int2);
$int2 = calc($int2 + 1);
cc_setsize($int18, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(10, calc($int0 + ($int23 / 2 - 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setgraphic("tradebacking");
cc_settiling(true);
cc_create($component7, ^iftype_rectangle, $int2);
$int2 = calc($int2 + 1);
cc_setsize($int18, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(10, calc($int0 + ($int23 / 2 - 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(false);
cc_setcolour(0x0e0e0c);
cc_create($component7, ^iftype_rectangle, $int2);
$int2 = calc($int2 + 1);
cc_setsize(calc($int18 - 2), 18, ^setsize_abs, ^setsize_abs);
cc_setposition(11, calc($int0 + ($int23 / 2 - 9)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(false);
cc_setcolour(0x474745);
cc_create($component7, ^iftype_graphic, $int2);
def_int $comsubid26 = $int2;
$int2 = calc($int2 + 1);
cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
cc_setposition(12, calc($int0 + ($int23 / 2 - 8)), ^setpos_abs_right, ^setpos_abs_top);
cc_setgraphic("scrollbar_v2,1");
cc_create($component7, ^iftype_text, $int2);
$int2 = calc($int2 + 1);
cc_setsize($int17, 16, ^setsize_abs, ^setsize_abs);
cc_setposition(28, calc($int0 + ($int23 / 2 - 8)), ^setpos_abs_right, ^setpos_abs_top);
cc_settextfont(p12_full);
if ($int25 = 1) {
cc_setcolour(0xff981f);
} else {
cc_setcolour(0x9f9f9f);
}
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
def_int $int27 = struct_param($struct5, param_1077);
cc_settext(enum(int, string, $enum15, ~settings_get_dropdown($int27)));
cc_create($component6, ^iftype_rectangle, $int3);
$int3 = calc($int3 + 1);
cc_setsize($int18, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(10, calc($int0 + ($int23 / 2 - 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^black);
cc_settrans(255);
cc_setop(1, "Select");
cc_setonop("setting_show_dropdown(2, $struct5, $component7, calc($int2 - 1), $enum15, $int18, 20, cc_getx, cc_gety, $component8, $component9, $component10, $component11, $component12, $component13, $comsubid26, $boolean24)");
cc_create($component7, ^iftype_rectangle, $int2);
cc_setsize($int18, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(10, calc($int0 + ($int23 / 2 - 10)), ^setpos_abs_right, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^black);
cc_settrans(255);
if ($boolean24 = true) {
~settings_dropdown_choose_transmit(2, $struct5, calc($int2 - 1), calc($int2 - 6), $int2, $component7, $enum15, $int27, $component8, $component9, $component10, $component11, $component13);
}
if ($int25 = 1 & ~on_mobile = false) {
cc_setonmouseover("cc_settrans($component7, $int2, 220, null)");
cc_setonmouseleave("cc_settrans($component7, $int2, 255, null)");
}
$int2 = calc($int2 + 1);
if ($boolean21 = false & $int20 = 0 & $int19 > 0) {
cc_create($component7, ^iftype_text, $int2);
cc_setsize(calc($int18 + 25), $int19, ^setsize_minus, ^setsize_abs);
cc_setposition(10, calc($int0 + 6 + $int22), ^setpos_abs_left, ^setpos_abs_top);
cc_settext($string1);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_setcolour(0x9f9f9f);
cc_settextalign(^settextalign_left, ^settextalign_centre, 14);
$int2 = calc($int2 + 1);
}
$int0 = calc($int23 + $int0);
return($int0, $int1, $int2, $int3);