View Full Version : Change the Logger icons?

Todd Reed
April 19th, 2006, 02:44 PM
I know how to change the Logger icon in a gir.message (xxx) command.

Is there a way to change it when you use the Treescript
'if not xxx then return false, "text" end'

treescript.Action[141].OnAction=function ( Action, Event )
if not Ocelot then return false, 'Ocelot not connected' end
local ir = tostring(Action.iValue1)
local rc = tostring(Action.iValue2)
print ('ir#= ',ir)
Ocelot:SendIR (ir, rc)
return true, 'Ocelot IR# ' .. ir ..' Sent'

If the Ocelot is not connected, it shows the error, but with a normal command icon, and I would like to have the red X! or yellow '!' triangle...

April 19th, 2006, 11:59 PM
You can't change that particular icon. It signifies an action has run. But it there was an error you could log a second message with the error.