Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Target Cancellation #57

Open
nwish opened this issue Apr 23, 2016 · 0 comments
Open

Proposal: Target Cancellation #57

nwish opened this issue Apr 23, 2016 · 0 comments

Comments

@nwish
Copy link

nwish commented Apr 23, 2016

Currently, the triggers @Targon_Cancel and @ItemTargon_Cancel ONLY fire if the TARGET is called from the item. If called from the SRC (on a DCLICK trigger, for example), these triggers never fire if the SRC presses ESC.

Proposal is to modify @Targon_Cancel OR create a new trigger (@Target_Cancel or something) that is actually fired any time the client has a target cursor present and hits ESC. This will give the the ability to run certain lines of code that need only be processed on a target cancellation. In addition, this trigger needs to be fired even if the client is placing an item from the ADD command, or any other function that opens the target cursor.

An example of when this should work, but does not currently:

[function f_blah]
events +e_target_example
add m_some_big_pretty_house

[events e_target_example]
on=@target_cancel // new trigger
sysmessage You canceled your targeting cursor.
events -e_target_example // don't need this anymore
return 1 // suppress default message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant