WoW:API TurnOrActionStop: Difference between revisions

m
Move page script moved page API TurnOrActionStop to WoW:API TurnOrActionStop without leaving a redirect
mNo edit summary
m (Move page script moved page API TurnOrActionStop to WoW:API TurnOrActionStop without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
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.
{{wowapi}}{{protectedapi|1.10|}}


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.]
:''nil''
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]].
[[Category:API Action Functions|TurnOrActionStop]]
 
[[Category:API Movement Functions|TurnOrActionStop]]
: IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.
__NOTOC__
Anonymous user