Proxy Tools
-
I'm sure this one has been discussed before, but I can't find the thread..
I know we mere mortals cannot create instances of the standard SU tools, but can we delegate messages to them?
I'm think it would be neat to have a custom tool be able to have mode where it was just acting as a Proxy and forwarding all onLButtonDown/onMouseMove etc to another tool.
Adam
-
what is the difference in creating a tool and handling the buttons/movement/keyboard ?
-
When you say create instances of the the standard SU tools, it makes me think of the custom toolbar script. You can make a toolbar with any of the original SU commands, in any order, combo, even put the little verticle breaks where you want. I forget the link, its somewhere here. I'm not sure if this is what you're asking though.
-
I mean I want to create a tool that code-wise looks like this:
class MyProxyTool def onMouseMove(flags, x, y, view) <pseudo-code> call the SU movetool with (flags,x,y,view) arguments </pseudo-code> end .. and so on .. end
So its a tool that just passes everything onto the Movetool (for example) to allow it to "do its stuff".
Does that make sense?
Adam
Advertisement