PDA

View Full Version : Mouse Jump ?



jwilson56
November 11th, 2004, 03:28 PM
I know you can jump to certain panels from Girder but can you do a Mouse Jump from Girder to have it return to the previous panel like you can on a button?

John

Jlee
November 11th, 2004, 11:18 PM
I don't know much about mouse jumps but if you can do it from a button you can do it from Girder. I'm not sure if you can execute an action in NR directly from Girder (someone else will know) but you can certainly do it using OnVariableChange in the Lua file. In Girder you would do something like NetRemote.SendLabel('DoMouseJump',1) and in your lua file you would do something like this:
function OnVariableChange(varname,varvalue)
if (varname=="DoMouseJump") then
if (varvalue) =="1" then
NetRemote.ExecuteAction -- This bit needs more info - see below
NetRemote.SetVariable("DoMouseJump",0)
end;
end;
end;

To complete the NetRemote.ExecuteAction bit we need to know what the IR Name and IR Code is for the action.

Ben S
November 12th, 2004, 04:20 AM
Hi John - This is actually not possible. The mouse mode jump is something inside a jump action, which you can't easily trigger from lua.

I didn't get a chance to bundle up a build last night, but this ability should be rather simple to include, so I'll see about adding it.