I'm trying to write a program that uses a toggle to switch modes, and I need the toggle button to be an immage which lets the user know they can click it to get to the other mode. Obviously, this image will be different for each mode, but I don't know how to do that. Right now, this is what my code looks like:
timeline = cp5.addToggle("timelineMode")
.setPosition(10, 745)
.setImages(search, search, search, search)
.updateSize();
All this does is create an image for the toggle when timelineMode=true, but i need an image when timelineMode=false as well. What do I do?