
Changelog 1.0 -> 1.1
- new Attack ON/OFF button
- buttons can be hidden
- AIs have all options set to ON by default
- Repeat is back
- cancels Guard order if unit is out of range
- much faster (nano updates are spread among 32 frames instead of 1)
Changes to UI:
This gadget hides maneuver, patrol, fight and repeat buttons and adds four new ones:
Attack ON/OFF - Attacks units with lowest maxHP first.
Repair ON/OFF - Repairs most damaged units first
Reclaim ON/OFF - Reclaims most expensive corpses/features first (eg: commander).
Assist ON/OFF - Auto-assists both factories and new buildings

Features:
- 4 new buttons - described above
- Inteligent priority management - described above
- does not override your commands - nano is controled only if idle
- Repair and reclaim are ON by default - nano turret is a turret and turrets operate automatically. Try it - it's really cool. Besides repairing and reclaiming cost you nothing (unlike assisting). This can be changed easily by modifying defaultRepair = ON to OFF.
- doesn't reclaim allied dragon teeths etc.
- cpu friendly
Recommended settings:
Repair - ON and visible. Unfortunately there's no way to prevent nanos from repairing units that are being reclaimed. Otherwise there'd be no reason to leave it visible.
Reclaim - ON and visible.
Assist - OFF and visible.
Attack - OFF and hidden. I think this should be left to players skill.
Pro tip:
Hold shift when clicking on a button to switch all buttons with one click.
Edit: The bad:
Auto-repair repairs units being reclaimed. I was unable to find any suitable call-out. It's possible to do but it would have an impact on performance. Unless trepan comes into this thread and says something like "lua has been able to do so for a very long time" I can't do anything about it.
Notes:
- It's simply cool

- If you're not a modder and just want to test it see this thread for help on using gadgets.
Download:
http://www.unknown-files.net/3700/NanoButtonsGadget_11/