-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,gim_options_buttonresynch].cs2
126 lines (126 loc) · 3.44 KB
/
[proc,gim_options_buttonresynch].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
// 4681
[proc,gim_options_buttonresynch](component $component0, int $int1, int $comsubid2, int $comsubid3, int $int4, struct $struct5)
def_int $int6 = 0;
def_int $int7 = -1;
def_int $int8 = 0;
def_string $text0 = "...";
def_int $int9 = 0;
if (%varbit12165 = 1 & %varbit12164 = 3 & activeclansettings_find_listened = true | %varbit12165 = 0 & %varbit13060 = 3 & activeclansettings_find_affined(^clantype_gim) = true) {
$int7 = activeclansettings_getaffinedslot(removetags(chat_playername));
if (struct_param($struct5, param_1537) = true) {
switch_struct ($struct5) {
case struct_4223 :
if (~gim_option_get(struct_4222) = 1) {
if (%varclansetting52 > 1) {
$text0 = "<~tostring_spacer(%varclansetting52, ",")> coins";
} else if (%varclansetting52 = 1) {
$text0 = "1 coin";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
case struct_852 :
if (~gim_option_get(struct_849) = 1) {
if (%varclansetting99 = -1) {
$text0 = "All";
} else {
$text0 = enum(int, string, enum_3967, %varclansetting99);
}
} else {
$text0 = "N/A";
}
case struct_4227 :
if (~gim_option_get(struct_4226) = 1) {
if (%varclansetting53 > 1) {
$text0 = "<~tostring_spacer(%varclansetting53, ",")> coins";
} else if (%varclansetting53 = 1) {
$text0 = "1 coin";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
case struct_4216 :
if (~gim_option_get(struct_4215) = 1) {
if (%varclansetting54 > 0) {
$text0 = "Level <tostring(%varclansetting54)>";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
case struct_4217 :
if (~gim_option_get(struct_4215) = 1) {
if (%varclansetting55 > 0) {
$text0 = "Level <tostring(%varclansetting55)>";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
case struct_4218 :
if (~gim_option_get(struct_4215) = 1) {
if (%varclansetting56 > 0) {
$text0 = "Level <tostring(%varclansetting56)>";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
case struct_4220 :
if (~gim_option_get(struct_4219) = 1) {
if (%varclansetting57 > 0) {
$text0 = "<tostring(%varclansetting57)> million XP";
} else {
$text0 = "No minimum";
}
} else {
$text0 = "N/A";
}
}
} else if (~gim_option_get($struct5) = 1) {
$text0 = "Enabled";
} else {
$text0 = "Disabled";
}
if ($int7 ! -1) {
$int9 = 1;
}
if (cc_find($component0, $comsubid3) = ^true) {
cc_settext($text0);
}
if ($int9 = 1) {
if (cc_find($component0, $comsubid2) = ^true) {
cc_setgraphic(tradebacking);
}
if (cc_find($component0, $int1) = ^true) {
cc_settrans(245);
}
if (~on_mobile = false) {
.cc_setonmouserepeat("gim_options_buttonhover(true, event_com, event_comsubid, $int1, 245, 225)");
}
.cc_setonmouseleave("gim_options_buttonhover(false, event_com, event_comsubid, $int1, 245, 225)");
.cc_setontimer(null);
.cc_setonop("gim_options_buttonop(event_op, event_com, event_comsubid, $int1, 200, 245, 225)");
return;
}
}
if (cc_find($component0, $comsubid3) = ^true) {
cc_settext($text0);
}
if (cc_find($component0, $comsubid2) = ^true) {
cc_setgraphic(tradebacking_dark);
}
if (cc_find($component0, $int1) = ^true) {
cc_settrans(255);
}
.cc_setonmouserepeat(null);
.cc_setonmouseleave(null);
.cc_setontimer(null);
.cc_setonop(null);