Download: https://github.com/zxbc/BAR_widgets/blob/main/gui_smart_commands.lua
For those of you who already used my instant d-gun widget, this makes all commands work like that.
This is a widget that makes issuing any command a "smart cast", where you press the key to set command active, and release the key to issue the command at your mouse cursor. If a unit or feature is below the cursor, the command should automatically be used on it; otherwise the command will be issued as a ground targeting command.
Build commands are excluded.
Formation commands can still be issued - simply do right mouse button drag when command key is held down. Area commands also work, just do left mouse button drag while the command key is held down.
It might take some getting used to, but it might open up new ways to play the game with higher efficiency with reduced mouse clicks.
**Latest Updates: **
- Fixed Ctrl and Alt modifiers in actual keybind shortcuts.
- Super enhanced meta key integration: now command keys can be pressed AFTER meta key is held down, much like with shift key.
- Fixed the issue with shift+settarget not working properly together.
Previous Updates:
- Fixed issue with mex/area mex canceling build queue.
- Fixed issue with blueprints getting deselected after units pop out of factories.
- Fixed an issue where attack, manualfire, patrol and fight commands can fail when used on a feature (they now target the ground below the feature).
- Fixed logic errors and now button pressing should feel more responsive and can be mashed faster.
- Added toggle for on/off, default alt+backspace.
Feedback on bugs and ideas for improvement is extremely welcome!