This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Smartphone visualization - invert boolean rocket icon
#1
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?
Reply
#2
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
Reply
#3
(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
Reply


Forum Jump: