How to change custom command draw colour?
Posted: 17 Jun 2013, 13:40
I created a custom command along with a button, but I can't configure the draw colour. Anyone knows how to do this?
I tried using Sping.SetCustomCommandDrawData, but I can't get it to work. It returns nil.
Am I just being stupid, using wrong fucntion or is something else wrong?
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 :)
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 :)