Add missing event for catching super_forced_select

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
meifray
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Sat May 29, 2021 6:12 pm
Contact:

Add missing event for catching super_forced_select

Post by meifray »

Hi, in SelectionToolPrototype,there are 5 selection types,but just super_forced_select dont have event to catch it :/
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3757
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Add missing event for catching super_forced_select

Post by boskid »

There is no such event because this selection mode sends Deconstruct input action so it triggers on_player_deconstructed_area event. The only piece that i see is missing is ability of telling this event apart from regular on_player_deconstructed_area event which game tells apart by looking at "selection_mode" that is not given to that event. If i would add defines.selection_mode.super_forced_select constant and make on_player_deconstructed_area event include "selection_mode" of type "defines.selection_mode", would that be enough for you?
meifray
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Add missing event for catching super_forced_select

Post by meifray »

Sounds good to me :>
Post Reply

Return to “Modding interface requests”