-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,zoom_init].cs2
21 lines (21 loc) · 1.28 KB
/
[proc,zoom_init].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 2256
[proc,zoom_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
if_setgraphic(~graphic_device("options_icons,33", "options_icons,43"), $component1);
if (%varbit6357 = 0) {
if_sethide(true, $component2);
if_setop(1, "Disable", $component0);
} else if (%varbit6357 = 1) {
if_sethide(false, $component2);
if_setop(1, "Enable", $component0);
}
if_setondrag("zoom_slider_ondrag($component4, $component3, event_mousex)", $component4);
if_setondragcomplete("zoom_slider_dragcomplete($component4, $component3, event_mousex)", $component4);
def_string $string0 = "<~text_device("Click", "Tap")> here to enable zooming using <~text_device("the mouse scroll wheel", "the pinch gesture")>.";
if (%varbit6357 = 0) {
$string0 = "<~text_device("Click", "Tap")> here to disable zooming using <~text_device("the mouse scroll wheel", "the pinch gesture")>.";
}
if_setonmouseover("zoom_outline(1, $component1)", $component1);
if_setonmouseleave("zoom_outline(0, $component1)", $component1);
if_setonmouserepeat("tooltip_mouserepeat($component0, -1, $component5, $string0, 25, 190)", $component0);
if_setonmouseleave("deltooltip($component5)", $component0);
if_setontimer("zoom_timer(%varcint73, %varcint74)", interface_116:58);