ID:2960220
 
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Can we get working examples of all the default parameters being passed via mouse macros in the reference, preserving all of the built-in behavior, or a new method of invoking the default function for mouse macros? Mostly, we don't want to completely overhaul the mouse handling in BYOND, we just want to add a little bit of stuff to it.

It's currently prohibitively difficult to use.
What if we add a concept of ..() as a command to macros?

In the context of a mouse macro, the ..() command would invoke the default behavior.

This would allow a mouse macro to override if it doesn't call ..()

replacemousedown [[some-param]]


It would allow the mouse macro to call the default mouse proc, and then append a second verb called after the mouse proc via:

..() \n aftermousedown [[some-param]]


It would allow the mouse macro to call a verb before the default action like so:

beforemousedown [[some-param]] \n ..()

Login to reply.