-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,orbs_spec_draw_button].cs2
35 lines (35 loc) · 1.49 KB
/
[proc,orbs_spec_draw_button].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
// 2792
[proc,orbs_spec_draw_button](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
def_graphic $graphic6 = "orb_frame,1";
def_graphic $graphic7 = "orb_frame,0";
if_clearops($component5);
if (map_members = ^false & %varbit5314 = 0 | ~script3648(inv_getobj(worn, 3)) <= 0) {
if_sethide(true, $component5);
if_setonmouserepeat(null, $component5);
if_setonmouseleave(null, $component5);
if_setonop(null, $component5);
if_setgraphic($graphic7, $component4);
if_setgraphic("orb_filler,5", $component3);
if_settrans(50, $component3);
} else if (%varbit8121 = 1 & ~script359 = 0) {
if_sethide(false, $component5);
if_setonmouserepeat(null, $component5);
if_setonmouseleave(null, $component5);
if_setop(2, "Use", $component5);
if_setonop("orbs_blocked_spec_op(event_opindex)", $component5);
if_setgraphic($graphic7, $component4);
if_setgraphic("orb_filler,5", $component3);
if_settrans(50, $component3);
} else {
if_sethide(false, $component5);
if_setonmouserepeat("graphic_swapper($component4, $graphic6)", $component5);
if_setonmouseleave("graphic_swapper($component4, $graphic7)", $component5);
if_setop(1, "Use", $component5);
if_setonop("orbs_toggle_spec_op(event_opindex, null, $component1, $component2, $component3, $component4, $component5)", $component5);
if (%var301 > 0) {
if_setgraphic("orb_filler,10", $component3);
} else {
if_setgraphic("orb_filler,9", $component3);
}
if_settrans(25, $component3);
}