WoW:API TurnOrActionStop: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Formatting, removed somewhat misleading examples)
Line 1: Line 1:
This is triggered by releasing the right mousebutton.  If keystate up is true of that button then this fires.  Anything contained within this function will then also fire.
<center>'''TurnOrActionStop'''</center>


Additions can be made to this functions via temporary override, as follows ...
End "Right click" in the 3D game world.


function AddOn_OnLoad()
TurnOrActionStop()
Override_TurnOrActionStop=TurnOrActionStop
== Parameters ==
TurnOrActionStop=Override
=== Arguments ===
end
:()


function Override()
=== Returns ===
[Do stuff.]
:<i>nil</i>
Override_TurnOrActionStop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)
end


So we could add the notice; "Right mouse button released!" into the function.


function Override()
== Details ==
DEFAULT_CHAT_FRAME:AddMessage("Right mouse button is down!")
: This function is called when right clicking in the 3D world. Most usefull it can initiate attack on the selected unit if no move occurs.
Override_TurnOrActionStop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)
end


[[Category:API Functions|TurnOrActionStop]]
: When used alone, can cancel a "mouseturn" started by a call to [[API TurnOrActionStart|TurnOrActionStart]].
 
: IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.
 
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Action Functions|TurnOrActionStop]]
[[Category:API Action Functions|TurnOrActionStop]]
[[Category:API Movement Functions|TurnOrActionStop]]
[[Category:API Camera Functions|TurnOrActionStop]]

Revision as of 02:22, 20 September 2005

TurnOrActionStop

End "Right click" in the 3D game world.

TurnOrActionStop()

Parameters

Arguments

()

Returns

nil


Details

This function is called when right clicking in the 3D world. Most usefull it can initiate attack on the selected unit if no move occurs.
When used alone, can cancel a "mouseturn" started by a call to TurnOrActionStart.
IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.

Template:WoW API