Page 1 of 1

[2.x] Add event hook for on_player_super_forced_selected_area

Posted: Sat Oct 26, 2024 6:09 pm
by majoca
Currently (2.0.11), SelectionToolPrototype allows a mod to specify SelectionModeData for each of the following modes:
  • select
  • alt_select
  • super_forced_select
  • reverse_select
  • alt_reverse_select
Each of the above has a corresponding on_player_*_selected_area event, except for super_forced_select. Would it be possible to add the missing on_player_super_forced_selected_area event hook? I have a mod with a selection tool that only opens a GUI if the selection is valid, but it makes sense to allow the user to force-open the GUI if they want, and linking this to super_forced_select would be most intuitive.