-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,poh_viewer_enablerotate].cs2
17 lines (17 loc) · 1.32 KB
/
[proc,poh_viewer_enablerotate].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 1401
[proc,poh_viewer_enablerotate](component $component0, string $op0, graphic $graphic1, 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)
cc_deleteall($component0);
cc_create($component0, ^iftype_graphic, 0);
.cc_create($component0, ^iftype_graphic, 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
.cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("miscgraphics3,0");
.cc_setgraphic($graphic1);
cc_settrans(0);
.cc_settrans(75);
if_setonmouserepeat("cc_settrans(event_com, .cc_getid, 0, null)", $component0);
if_setonmouseleave("cc_settrans(event_com, .cc_getid, 75, null)", $component0);
if_setonop("poh_viewer_opbutton(event_opindex, event_com, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16)", $component0);
if_setop(1, $op0, $component0);