I tried using Sping.SetCustomCommandDrawData, but I can't get it to work. It returns nil.
Code: Select all
local result = SetCustomCommandDrawData(CMD_AREA_GUARD, CMDTYPE.ICON_UNIT_OR_AREA, {1,0,0,0.8},true)
That is set in gadget:Initialize(). And I also did use gadgetHandler:RegisterCMDID(CMD_AREA_GUARD), but I'm unsure what that does, maybe calls Microsoft to activate my command :)