Mouse Wheel Zoom

by Kidpaddle45
Use your mouse wheel/pinch to zoom in using animate() instead of editing the interface icon size! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Kidpaddle45.MouseWheelZoom##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Kidpaddle45.MouseWheelZoom##version=0

221 downloads
Latest Version
Date added: May 7 2017
Last updated: Jun 19 2017
11 fans
Use your mouse wheel/pinch to zoom-in using animate() instead of editing the interface icon size!

This allows for a much better looking zoom effect AND that won't mess up the location of your on-screen objects!

BONUS:
Want to keep the graphics in good quality after zooming-in? Use this little code here:
obj/map_zoom
appearance_flags = PLANE_MASTER | PIXEL_SCALE
screen_loc = "1,1"
plane = 0

Comments

Zecronious: (May 18 2017, 5:16 pm)
The demo isn't helpful unless it maintains quality. Why not just include that code in the actual demo?
YURIRAMOS: (May 12 2017, 10:16 pm)
Take a look at my comment above
Zecronious: (May 12 2017, 9:34 pm)
For some reason this blurs the icons. Is there a way to stop the blurring effect?
Petja12: (May 11 2017, 1:47 pm)
Excellent.. Will make good use of this...
Great library, already playing around with it.

I would smash the like button if there was one.
Kidpaddle45: (May 8 2017, 1:01 pm)
YURIRAMOS wrote:
Amazing, thanks very much.

I have to use this to keep the pixelated and proportional appearance

> obj/map_zoom
> appearance_flags = PLANE_MASTER | PIXEL_SCALE
> screen_loc = "1,1"
> plane = 0
>

and

> iconsize += 1
> iconsize -= 1
>


Thank you for reminding me! I've been asked about how PIXEL_SCALE works! I'll add it in the hub's description aswell :)