Logic Machine Forum
Smartphone visualization - invert boolean rocket icon - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Smartphone visualization - invert boolean rocket icon (/showthread.php?tid=1891)



Smartphone visualization - invert boolean rocket icon - legolas2069 - 06.02.2019

I have a question, and I don't know how to look for it in the forum, so I apologize if it's been answered before.

In a project, I have a boolean object that is ON with a 0 and OFF with a 1. When I use the custom values, I can fix the text names. In the normal visualization also, where I can choose what icon goes with ON and OFF.

But when I use the rocket in the smartphone visualization, I can't change it. Is there any way to do this?


RE: Smartphone visualization - invert boolean rocket icon - admin - 07.02.2019

This cannot be configured, but you can use a virtual object as a work-around.

Event script for main object (1/1/1):
Code:
if event.sender ~= 'se' then
  value = event.getvalue()
  grp.write('32/1/1', not value)
end

Event script for virtual object (32/1/1):
Code:
if event.sender ~= 'se' then
  value = event.getvalue()
  grp.write('1/1/1', not value)
end



RE: Smartphone visualization - invert boolean rocket icon - legolas2069 - 12.02.2019

(07.02.2019, 08:31)admin Wrote: This cannot be configured, but you can use a virtual object as a work-around.

Event script for main object (1/1/1):
Code:
if event.sender ~= 'se' then
 value = event.getvalue()
 grp.write('32/1/1', not value)
end

Event script for virtual object (32/1/1):
Code:
if event.sender ~= 'se' then
 value = event.getvalue()
 grp.write('1/1/1', not value)
end

Thanks admin, I'll try it and feedback you when it's done