-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,giants_foundry_mould_setup_list_item].cs2
131 lines (131 loc) · 4.17 KB
/
[proc,giants_foundry_mould_setup_list_item].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
// 6097
[proc,giants_foundry_mould_setup_list_item](component $component0, struct $struct1, int $int2, int $int3, int $int4)(int, int)
def_int $int5 = 0;
if (~giants_foundry_mould_is_unlocked($struct1) = 0) {
while ($int5 < 17) {
cc_create($component0, ^iftype_rectangle, $int4);
cc_sethide(true);
$int4 = calc($int4 + 1);
$int5 = calc($int5 + 1);
}
return($int4, $int3);
}
def_int $width6 = 0;
def_int $int7 = 40;
def_int $lvl8 = struct_param($struct1, param_1622);
def_int $int9 = 1;
def_graphic $graphic10 = b12_full;
def_int $int11 = 2;
def_graphic $graphic12 = p12_full;
def_int $int13 = 5;
def_int $int14 = 5;
def_int $int15 = 10;
def_int $int16 = 20;
switch_int (%varcint988) {
case 1 :
$graphic10 = verdana_13pt_bold;
$graphic12 = verdana_13pt_regular;
$int7 = 42;
$int13 = 6;
$int14 = 6;
$int15 = 12;
$int16 = 22;
case 2 :
$graphic10 = verdana_13pt_bold;
$graphic12 = verdana_13pt_regular;
$int7 = 44;
$int13 = 27;
$int14 = 7;
$int15 = 14;
$int16 = 23;
case 3 :
$graphic10 = verdana_13pt_bold;
$graphic12 = verdana_13pt_regular;
$int7 = 48;
$int13 = 39;
$int14 = 9;
$int15 = 18;
$int11 = 3;
$int16 = 25;
}
if (stat(smithing) >= $lvl8) {
$int9 = 0;
}
def_int $colour17 = 0x9f9f9f;
if ($int9 = 0) {
$colour17 = 0xff981f;
}
if ($int9 = 1) {
~create_graphic($component0, $int4, struct_param($struct1, param_1623), $int13, calc($int3 + $int14), ^setpos_abs_left, ^setpos_abs_top, 40, 30, ^setsize_abs, ^setsize_abs);
$int4 = calc($int4 + 1);
}
cc_create($component0, ^iftype_rectangle, $int4);
cc_setposition(0, $int3, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($width6, $int7, ^setsize_minus, ^setsize_abs);
cc_setfill(true);
cc_setcolour(^black);
if (calc($int3 / $int7 % 2) = 0) {
cc_settrans(200);
} else {
cc_settrans(220);
}
if ($int9 = 1) {
if (calc($int3 / $int7 % 2) = 0) {
cc_settrans(160);
} else {
cc_settrans(140);
}
} else if ($int2 = 1) {
cc_settrans(230);
cc_setcolour(^white);
} else if ($int2 = 0) {
cc_setop(1, "Select");
cc_setopbase("<col=ff9040><struct_param($struct1, param_1621)></col>");
cc_setonclick("giants_foundry_mould_setup_mould_select($int4)");
if (~on_mobile = false) {
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, ^black)");
}
}
$int4 = calc($int4 + 1);
if ($int9 = 0) {
~create_graphic($component0, $int4, struct_param($struct1, param_1623), $int13, calc($int3 + $int14), ^setpos_abs_left, ^setpos_abs_top, 40, 30, ^setsize_abs, ^setsize_abs);
$int4 = calc($int4 + 1);
}
cc_create($component0, ^iftype_text, $int4);
cc_setposition(calc(40 + $int13 + $int15), calc($int3 + $int11), ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(55, 16, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settextfont($graphic10);
cc_setcolour($colour17);
cc_settext(struct_param($struct1, param_1621));
$int4 = calc($int4 + 1);
cc_create($component0, ^iftype_text, $int4);
cc_setposition(calc(~max($int15, $int13) + $int16), calc($int3 + $int11), ^setpos_abs_right, ^setpos_abs_top);
cc_setsize(55, 16, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settextfont($graphic12);
cc_setcolour($colour17);
cc_settext("Smithing Level:");
if ($int9 = 0) {
cc_sethide(true);
}
$int4 = calc($int4 + 1);
cc_create($component0, ^iftype_text, $int4);
cc_setposition(~max($int15, $int13), calc($int3 + $int11), ^setpos_abs_right, ^setpos_abs_top);
cc_setsize(55, 16, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settextfont($graphic12);
cc_setcolour($colour17);
cc_settext(tostring($lvl8));
if ($int9 = 0) {
cc_sethide(true);
}
$int4 = calc($int4 + 1);
$int4 = ~giants_foundry_mould_setup_list_item_bar($component0, $int3, 0, struct_param($struct1, param_1625), $int9, $int4);
$int4 = ~giants_foundry_mould_setup_list_item_bar($component0, $int3, 1, struct_param($struct1, param_1626), $int9, $int4);
$int4 = ~giants_foundry_mould_setup_list_item_bar($component0, $int3, 2, struct_param($struct1, param_1627), $int9, $int4);
return($int4, calc($int3 + $int7));