-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,questlist_showprogress].cs2
69 lines (69 loc) · 2.26 KB
/
[proc,questlist_showprogress].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
// 1354
[proc,questlist_showprogress](component $component0, component $component1, component $component2)
def_int $int3 = 0;
def_int $colour4 = ^black;
def_int $count5 = 0;
def_int $count6 = ~quest_f2p_count;
~magic_spellbook_redraw(magic_spellbook:3, magic_spellbook:189, magic_spellbook:198, magic_spellbook:1, magic_spellbook:195, magic_spellbook:196, magic_spellbook:197, magic_spellbook:2, magic_spellbook:191, magic_spellbook:194, "Info", "Filters", ~on_mobile);
while ($count5 < $count6) {
if (cc_find($component0, $count5) = ^true) {
$int3 = ~quest_f2p_index_status_get($count5);
if (~questlist_f2p_progress_grey($count5) = 1) {
$colour4 = 0x9f9f9f;
} else if ($int3 = 2) {
$colour4 = 0x0dc10d;
} else if ($int3 = 0) {
$colour4 = ^yellow;
} else {
$colour4 = ^red;
}
cc_setcolour($colour4);
if (~on_mobile = false) {
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, $colour4)");
}
}
$count5 = calc($count5 + 1);
}
$count5, $count6 = 0, ~quest_members_count;
while ($count5 < $count6) {
if (cc_find($component1, $count5) = ^true) {
$int3 = ~quest_members_index_status_get($count5);
if (~questlist_members_progress_grey($count5) = 1) {
$colour4 = 0x9f9f9f;
} else if ($int3 = 2) {
$colour4 = 0x0dc10d;
} else if ($int3 = 0) {
$colour4 = ^yellow;
} else {
$colour4 = ^red;
}
cc_setcolour($colour4);
if (~on_mobile = false) {
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, $colour4)");
}
}
$count5 = calc($count5 + 1);
}
$count5, $count6 = 0, ~miniquest_count;
while ($count5 < $count6) {
if (cc_find($component2, $count5) = ^true) {
$int3 = ~miniquest_index_status_get($count5);
if (~questlist_miniquests_progress_grey($count5) = 1) {
$colour4 = 0x9f9f9f;
} else if ($int3 = 2) {
$colour4 = 0x0dc10d;
} else if ($int3 = 0) {
$colour4 = ^yellow;
} else {
$colour4 = ^red;
}
cc_setcolour($colour4);
if (~on_mobile = false) {
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, $colour4)");
}
}
$count5 = calc($count5 + 1);
}