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,teletab_button_redraw].cs2
32 lines (32 loc) · 2.26 KB
/
[proc,teletab_button_redraw].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
// 3591
[proc,teletab_button_redraw](component $component0, int $int1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22, component $component23, component $component24, component $component25, component $component26, component $component27, component $component28, component $component29)
def_enum $enum30 = %var4074;
if ($enum30 = null) {
return;
}
def_namedobj $namedobj31 = enum(int, namedobj, $enum30, calc($int1 - 1));
def_string $text0 = enum(obj, string, enum_5272, $namedobj31);
if ($namedobj31 = null) {
if_sethide(true, $component2);
return;
}
if_sethide(false, $component2);
def_obj $obj32 = oc_param($namedobj31, param_608);
if ($obj32 = null) {
return;
}
def_boolean $boolean33 = false;
if (stat(magic) >= oc_param($obj32, spell_levelreq) & ~magic_spellbook_hasrunes($obj32, inv_getobj(worn, 3), inv_getobj(worn, 5)) = 1) {
$boolean33 = true;
}
if (%varbit10600 = $int1) {
~teletab_button_draw(true, $enum30, $text0, $int1, $component2, $boolean33);
if_setonmouserepeat(null, $component2);
if_setonmouseleave(null, $component2);
if_setonop("opsound(event_op, 2)", $component2);
} else {
~teletab_button_draw(false, $enum30, $text0, $int1, $component2, $boolean33);
if_setonmouserepeat("teletab_button_draw(true, $enum30, $text0, $int1, $component2, $boolean33)", $component2);
if_setonmouseleave("teletab_button_draw(false, $enum30, $text0, $int1, $component2, $boolean33)", $component2);
if_setonop("teletab_button_op($component0, event_op, $int1, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $component22, $component23, $component24, $component25, $component26, $component27, $component28, $component29)", $component2);
}