-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,membership_benefits_init].cs2
65 lines (65 loc) · 2.36 KB
/
[clientscript,membership_benefits_init].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
// 2556
[clientscript,membership_benefits_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
cc_deleteall($component0);
cc_deleteall($component1);
def_int $int6 = 0;
def_int $int7 = 0;
def_string $text0 = "";
def_graphic $graphic8 = null;
while ($int7 < 5) {
switch_int ($int7) {
case 0 :
$graphic8 = "oge_title,0";
$text0 = "Explore a world three times larger!";
case 1 :
$graphic8 = "oge_title,1";
$text0 = "Master eight extra skills!";
case 2 :
$graphic8 = "oge_title,2";
$text0 = "Take on a hundred more quests!";
case 3 :
$graphic8 = "oge_title,3";
$text0 = "Defeat twenty additional bosses!";
case 4 :
$graphic8 = "oge_title,4";
$text0 = "And much more...";
}
cc_create($component0, ^iftype_graphic, $int7);
cc_setsize(0, 33, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int6, ^setpos_abs_centre, ^setpos_abs_top);
cc_setgraphic(tradebacking_light);
cc_settiling(true);
cc_setop(1, "View");
cc_setopbase("<col=ff9040>Benefits</col>");
cc_setonop("membership_benefits_view($int7)");
cc_setonmouserepeat("membership_benefits_hover(event_comsubid, $int6, true)");
cc_setonmouseleave("membership_benefits_hover(event_comsubid, $int6, false)");
cc_create($component1, ^iftype_text, $int7);
cc_setsize(0, 33, ^setsize_minus, ^setsize_abs);
cc_setposition(62, $int6, ^setpos_abs_centre, ^setpos_abs_top);
cc_settext($text0);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextfont(b12_full);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_create($component2, ^iftype_graphic, $int7);
cc_setsize(42, 33, ^setsize_abs, ^setsize_abs);
cc_setposition(10, $int6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_create($component3, ^iftype_graphic, $int7);
cc_setsize(24, 23, ^setsize_abs, ^setsize_abs);
cc_setposition(5, calc($int6 + 5), ^setpos_abs_right, ^setpos_abs_top);
cc_setgraphic("open_buttons,0");
$int6 = calc($int6 + 33 + 10);
$int7 = calc($int7 + 1);
}
def_string $op1 = "Upgrade Now";
if (map_members = true | %varcint103 = 1) {
$op1 = "Open Store";
}
~membership_benefits_button_init($component4, $op1);
if (~on_mobile = true & ~bonds_hide = 1 & %varbit6713 = 0) {
~membership_benefits_hide_bonds($component4, $component5);
} else {
~membership_benefits_button_init($component5, "Bond Pouch");
}