-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,bankmain_quantity_buttons].cs2
65 lines (65 loc) · 4.04 KB
/
[proc,bankmain_quantity_buttons].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
// 2578
[proc,bankmain_quantity_buttons](component $component0, component $component1, component $component2, component $component3, component $component4)
switch_int (%varbit6590) {
case 0 :
~options_button_on($component0, 0);
~options_button_off($component1, 0);
~options_button_off($component2, 0);
~options_button_off($component3, 0);
~options_button_off($component4, 0);
if_setonop(null, $component0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 1)", $component1);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 2)", $component2);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 3)", $component3);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 4)", $component4);
case 1 :
~options_button_off($component0, 0);
~options_button_on($component1, 0);
~options_button_off($component2, 0);
~options_button_off($component3, 0);
~options_button_off($component4, 0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 0)", $component0);
if_setonop(null, $component1);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 2)", $component2);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 3)", $component3);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 4)", $component4);
case 2 :
~options_button_off($component0, 0);
~options_button_off($component1, 0);
~options_button_on($component2, 0);
~options_button_off($component3, 0);
~options_button_off($component4, 0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 0)", $component0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 1)", $component1);
if_setonop(null, $component2);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 3)", $component3);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 4)", $component4);
case 3 :
~options_button_off($component0, 0);
~options_button_off($component1, 0);
~options_button_off($component2, 0);
~options_button_on($component3, 0);
~options_button_off($component4, 0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 0)", $component0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 1)", $component1);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 2)", $component2);
if_setonop(null, $component3);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 4)", $component4);
case 4 :
~options_button_off($component0, 0);
~options_button_off($component1, 0);
~options_button_off($component2, 0);
~options_button_off($component3, 0);
~options_button_on($component4, 0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 0)", $component0);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 1)", $component1);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 2)", $component2);
if_setonop("bankmain_quantity_op(event_op, $component0, $component1, $component2, $component3, $component4, 3)", $component3);
if_setonop(null, $component4);
}
def_string $string0 = ",";
if (%varbit3960 > 0) {
if_setop(1, "Default quantity: <~tostring_spacer(%varbit3960, $string0)>", $component3);
} else {
if_setop(1, "", $component3);
}