-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,worldswitcher_sortbutton_draw].cs2
26 lines (26 loc) · 2.15 KB
/
[proc,worldswitcher_sortbutton_draw].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
// 760
[proc,worldswitcher_sortbutton_draw](component $component0, int $int1, int $int2, component $component3, component $component4, component $component5, component $component6, int $int7, int $int8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18)
if_sethide(false, $component0);
cc_deleteall($component0);
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(7, 5, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if (%varbit4596 = $int2) {
cc_setgraphic("sortarrows,1");
cc_settrans(0);
if_setonmouseover("cc_settrans(event_com, cc_getid, 120, null)", $component0);
if_setonmouseleave("cc_settrans(event_com, cc_getid, 0, null)", $component0);
if_setonop("worldswitcher_sortbutton_op(event_opindex, $int1, $component3, $component4, $component5, $component6, $int7, $int8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18)", $component0);
} else if (%varbit4596 = $int1) {
cc_setgraphic("sortarrows,0");
cc_settrans(0);
if_setonmouseover("cc_settrans(event_com, cc_getid, 120, null)", $component0);
if_setonmouseleave("cc_settrans(event_com, cc_getid, 0, null)", $component0);
if_setonop("worldswitcher_sortbutton_op(event_opindex, $int2, $component3, $component4, $component5, $component6, $int7, $int8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18)", $component0);
} else {
cc_setgraphic("sortarrows,0");
cc_settrans(100);
if_setonmouseover("cc_settrans(event_com, cc_getid, 200, null)", $component0);
if_setonmouseleave("cc_settrans(event_com, cc_getid, 100, null)", $component0);
if_setonop("worldswitcher_sortbutton_op(event_opindex, $int1, $component3, $component4, $component5, $component6, $int7, $int8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18)", $component0);
}