-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,camdozaal_ramarno_shop_setup_button].cs2
88 lines (88 loc) · 3 KB
/
[proc,camdozaal_ramarno_shop_setup_button].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
// 4110
[proc,camdozaal_ramarno_shop_setup_button](struct $struct0, int $int1, component $component2, component $component3)
def_string $text0 = struct_param($struct0, param_1182);
def_model $model4 = struct_param($struct0, param_1184);
def_string $text1 = struct_param($struct0, param_1183);
def_int $int5 = struct_param($struct0, param_1185);
def_int $int6 = 0;
def_int $int7 = 0;
def_int $total8 = inv_total(inv, barronite_shards_25676);
if (calc(^max_32bit_int - %var2953) < $total8) {
$int7 = ^max_32bit_int;
} else {
$int7 = calc(%var2953 + $total8);
}
if ($int5 <= $int7) {
$int6 = 1;
}
if ($int1 = 1) {
~v2_stone_button_out_filled($component3);
if_setonmouserepeat(null, $component3);
if_setonmouseleave(null, $component3);
} else {
~v2_stone_button($component3);
if (~on_mobile = true) {
if_setonmouserepeat(null, $component3);
if_setonmouseleave(null, $component3);
} else {
if_setonmouserepeat("v2_stone_button_in(event_com)", $component3);
if_setonmouseleave("v2_stone_button(event_com)", $component3);
}
}
cc_deleteall($component2);
def_int $int9 = 0;
cc_create($component2, ^iftype_text, 0);
cc_setsize(12, 28, ^setsize_minus, ^setsize_abs);
cc_setposition(12, 0, ^setpos_abs_left, ^setpos_abs_bottom);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextfont(b12_full);
cc_settextshadow(true);
if ($int1 = 1) {
cc_settext("<col=0dc10d>Active</col>");
} else {
cc_settext("<col=9f9f9f>Inactive</col>");
}
$int9 = 1;
cc_create($component2, ^iftype_text, $int9);
cc_setsize(10, 16, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 6, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(b12_full);
cc_settextshadow(true);
cc_setcolour(0xff981f);
cc_settext($text0);
$int9 = calc($int9 + 1);
cc_create($component2, ^iftype_model, $int9);
cc_setsize(10, 34, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 24, ^setpos_abs_centre, ^setpos_abs_top);
cc_setmodel($model4);
cc_setmodelangle(195, 1, 1545, 0, 513, 1190);
$int9 = calc($int9 + 1);
cc_create($component2, ^iftype_text, $int9);
cc_setsize(10, 42, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 31, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_settextalign(^settextalign_centre, ^settextalign_bottom, 12);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_setcolour(^white);
cc_settext($text1);
$int9 = calc($int9 + 1);
cc_create($component2, ^iftype_text, $int9);
cc_setsize(28, 28, ^setsize_minus, ^setsize_abs);
cc_setposition(28, 0, ^setpos_abs_right, ^setpos_abs_bottom);
cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settext(tostring($int5));
if ($int1 = 1 | $int6 ! 1) {
cc_setcolour(0x9f9f9f);
} else {
cc_setcolour(0x0dc10d);
}
$int9 = calc($int9 + 1);
cc_create($component2, ^iftype_model, $int9);
cc_setsize(24, 24, ^setsize_abs, ^setsize_abs);
cc_setposition(2, 3, ^setpos_abs_right, ^setpos_abs_bottom);
cc_setmodel(barronite_shards_42162);
cc_setmodelangle(0, 0, 735, 707, 0, 800);
$int9 = calc($int9 + 1);