Page 1 of 1

[1.1.27] Event/property for playing a sound on selection-tool start selection

Posted: Fri Mar 19, 2021 4:57 am
by ceresward
Hi, the built-in selection tools (upgrade planner, blueprint, etc.) will play a sound both when the player begins making a selection, and when the player finishes their selection. I would like to be able to match that functionality when implementing a generic selection-tool. I can play a sound when area selection ends using `on_player_selected_area`, however there is no event or prototype property that will let me play a sound when area selection starts. Can we get a way to do this please?

I propose adding one or both of the following:
  • New event `on_player_begins_selecting_area`
  • New SelectionTool prototype properties `selection_start_sound` and `selection_end_sound` (both optional)

Re: [1.1.27] Event/property for playing a sound on selection-tool start selection

Posted: Fri Mar 19, 2021 12:21 pm
by eradicator
ceresward wrote:
Fri Mar 19, 2021 4:57 am
however there is no event or prototype property that will let me play a sound when area selection starts.
Technically a linked-control custom-input can raise that event. But that adds overhead to every click, has to be filtered for cursor_stack and possibly doesn't work with all modifier key combinations.