Loading...
Logo
Processing Forum
mbacon's Profile
1 Posts
0 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    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:

    1. timeline = cp5.addToggle("timelineMode")
    2. .setPosition(10, 745)
    3. .setImages(search, search, search, search)
    4. .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?