[2.x] Add event hook for on_player_super_forced_selected_area

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
majoca
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Dec 20, 2020 8:50 pm
Contact:

[2.x] Add event hook for on_player_super_forced_selected_area

Post 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.
Post Reply

Return to “Modding interface requests”