Just to confirm that I understand the color change

Hi,

Just to check that I understand the color change here. What we do is that we run a foreach loop every time the mouse is clicked, doing this we actually darken both the buttons and then after the foreach loop is done we actually grab the component that was clicked and we put that one to white.

Am I correct in my assumption?

Added the code just to make it easier

Yes, that’s correct.

The loop runs through every button and resets it to the darkened colour, and then the correct one is set to the new one.

Thanks:)

Always good to fully understand it!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms