-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,skill_guide_addentry].cs2
61 lines (61 loc) · 2.14 KB
/
[proc,skill_guide_addentry].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
// 657
[proc,skill_guide_addentry](int $int0, namedobj $namedobj1, string $string0, component $component2, component $component3, int $int4, int $int5, int $int6, int $height7)(int)
cc_create($component2, ^iftype_text, calc($int6 * 2));
cc_setsize(26, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, $height7, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_right, ^settextalign_top, 0);
cc_setcolour(0x46320a);
cc_settextfont(q8_full);
cc_settextshadow(false);
if ($int0 > 0) {
cc_settext(tostring($int0));
} else {
cc_settext("");
}
cc_create($component3, ^iftype_graphic, $int6);
def_int $width8 = 36;
def_int $int9 = 32;
def_int $int10 = 0;
def_int $int11 = 0;
def_int $int12 = 1;
def_int $colour13 = 0x604e32;
def_graphic $graphic14 = null;
def_int $int15 = enum(obj, int, enum_496, $namedobj1);
if ($int15 ! -1) {
$graphic14, $width8, $int9, $int10, $int11, $int12, $colour13 = enum(int, graphic, enum_865, $int15), 30, 30, 3, 0, 0, ^black;
} else if (%varbit4371 = 4) {
$graphic14 = oc_param($namedobj1, spell_graphic1_on);
if ($graphic14 ! null) {
$width8, $int9, $int10, $int11, $int12, $colour13 = 24, 24, 6, 0, 0, ^black;
}
}
cc_setsize($width8, $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(28 + $int10), calc($height7 + $int11), ^setpos_abs_left, ^setpos_abs_top);
cc_setoutline($int12);
cc_setgraphicshadow($colour13);
if ($graphic14 ! null) {
cc_setgraphic($graphic14);
} else {
cc_setobject($namedobj1, -1);
}
switch_int (%varbit4371) {
case 4 :
if ($int5 >= 0 & $int5 <= 3) {
cc_setop(1, "Check runes");
cc_setonop("skill_guide_magic_op($namedobj1)");
}
case 22 :
if ($int5 >= 1 & $int5 <= 11) {
cc_setop(1, "Check materials");
}
}
cc_create($component2, ^iftype_text, calc($int6 * 2 + 1));
$int9 = ~max(~max(calc(paraheight($string0, $int4, p12_full) * 12 + 5), $int9), 32);
cc_setsize($int4, $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(if_getwidth($component2) - $int4), $height7, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_left, ^settextalign_top, 0);
cc_setcolour(0x46320a);
cc_settextfont(p12_full);
cc_settextshadow(false);
cc_settext($string0);
return(calc($height7 + $int9));