This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,gim_settings_draw].cs2
44 lines (44 loc) · 2 KB
/
[proc,gim_settings_draw].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
// 5504
[proc,gim_settings_draw](component $component0, int $comsubid1, component $component2, int $comsubid3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10)
if (%varbit12165 = 1 & %varbit12164 = 3 & activeclansettings_find_listened = true | %varbit12165 = 0 & %varbit13060 = 3 & activeclansettings_find_affined(^clantype_gim) = true) {
if (cc_find($component2, $comsubid3) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, $comsubid1) = ^true) {
cc_settext(activeclansettings_getclanname);
}
if_sethide(false, $component4);
if_sethide(false, $component5);
~gim_icon_draw;
if (%varbit12165 = 1) {
~stonebutton_init("<col=0dc10d>Hiscores</col>", $component6, p12_full, 0);
~stonebutton_init("<col=9f9f9f>Group Storage</col>", $component7, p12_full, 0);
~stonebutton_init("<col=9f9f9f>Options</col>", $component8, p12_full, 0);
~stonebutton_init("<col=9f9f9f>Raffle</col>", $component9, p12_full, 0);
~stonebutton_init("<col=9f9f9f>Leave Group</col>", $component10, p12_full, 0);
} else {
~stonebutton_init("<col=0dc10d>Hiscores</col>", $component6, p12_full, 0);
~stonebutton_init("<col=0dc10d>Group Storage</col>", $component7, p12_full, 0);
~stonebutton_init("<col=0dc10d>Options</col>", $component8, p12_full, 0);
~stonebutton_init("<col=0dc10d>Raffle</col>", $component9, p12_full, 0);
if (%varbit13126 = 1) {
~stonebutton_init("<col=ff0000>Cancel Leave</col>", $component10, p12_full, 0);
} else {
~stonebutton_init("<col=ff0000>Leave Group</col>", $component10, p12_full, 0);
}
if_setonvartransmit("script5505($component10){var3171}", $component10);
}
return;
}
if (cc_find($component2, $comsubid3) = ^true) {
cc_sethide(false);
}
if (cc_find($component0, $comsubid1) = ^true) {
cc_settext(~script5507);
}
if_sethide(true, $component4);
if_sethide(true, $component5);
cc_deleteall($component6);
cc_deleteall($component8);
cc_deleteall($component9);
cc_deleteall($component10);