I'd like to disable right click to assist another factory with a factory selected.
is there a mod that does this?
I'd like to disable right click to assist another factory with a factory selected.
is there a mod that does this?
No
“Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
— Steve Jobs.
My UI Mods
Support me
It's not clean, but assist targets for factories are validated in commandmode.lua (around line 549, with the ValidateAssist
sim callback). You could hook that function, check for your conditions, then clear the commands. That would prevent the assist order from materializing but wouldn't prevent the order queue from being cancelled etc. etc.
Alternatively, you could hook HandleEvent
in controls/worldview.lua, check the click target, and eat the input command (return "true" from HandleEvent
).
@clyf said in disable factory assist.:
but wouldn't prevent the order queue from being cancelled etc.
damn that's the key part for me.
thanks for the help regardless.
Thought it might be. Check out HandleEvent in worldview. Returning true from that function (called by and returning to the engine) will prevent the order from ever being given.
If you use the move command mode (the order button or hotkey) then you can't click on another factory, it will always be a move order.
A work of art is never finished, merely abandoned
yeah that's fair, and probably the best solution but that means I need to unbake two decades worth of muscle memory
you're zoomed all the way out and a factory happens to be in the way of where you were clicking. when you're zoomed all the way out the clickable footprint of the factory is huge.