Mark20 发表于 2020-7-20 17:05:38

[Question]Change button icon

Hello,
Is anyone can help me to figure out how to change button icon by clicking on it.
For example I have 5 button icons and I need to change those each time when I'm pressing it.
Any example?

Thanks.

nighttwo201901 发表于 2020-7-20 19:38:33

Hello!
You can try to use variable mutation and increment adjustment to achieve the effect you need. You can associate the increment adjustment with the variable icon through the same variable address.

Wish you a smooth development!
Variable Icon

Mark20 发表于 2020-7-21 12:08:47

Thank you.
With your help i did it.
One more question, if you can?
I need to connect this too arduino, so you have arduino code i can use?
or maybe you can give me idea how to do it?
Thank you

wangyuxiang 发表于 2020-7-21 16:21:17

Mark20 发表于 2020-7-21 12:08
Thank you.
With your help i did it.
One more question, if you can?


Sorry, we don't have this code.
页: [1]
查看完整版本: [Question]Change button icon