Forum Discussion

Kai-04e9073e-5e's avatar
Kai-04e9073e-5e
Community Member
8 years ago

Create a on/off or toggle butto

Hi, It's been a while since I've done dev work.

Can someone PLEASE tell me how I can - (Yes, I know it's super 1st grade SL STUFF.....I'm a noob all over again....sigh).

1. When user clickS on button to show either a layer or the text box. Using this as additional info after video plays e.g. "More info" button.

2. Some users don't mind the textbox remaining and moving on, but others want to click the button to hide the info text box .

I did the initial hide and when user clicks the text will show, but I'm not sure about to hide again on next click. 

 

15 Replies

  • That KB article is a little misleading. You don't need a variable to do a toggle button just create a button or shape with a selected state and no visited state, this will toggle. To create an event that toggles add to triggers to that button one to do something when the state is equal to selected and one to do something when it is not selected, much easier and doesn't need you to monitor the state of the variable when the slide is revisited.

    • KarenErasmus-27's avatar
      KarenErasmus-27
      Community Member

      Thanks Phil. I'll try it. Boy, it's been a while since i've been in sl WORLD. 

  • @philmayor I couldn't get it to work. Can you send me a quick tut or a file? Only if you are bored, other than that, I'll try again to see how I can make it work.

    • AdenaWilson-5dd's avatar
      AdenaWilson-5dd
      Community Member

      Three+ years later and this remains solid advice. Helped me get past a roadblock. Thank you. 

  • Hi there, i set-up a page with multiple small i-buttons. The buttons triggers slidelayers. the selected/visited state option does not work well when useing multiple layers and buttons.

    Storyline have a hoover restore option. Articulate, It will really help if there will be standard toggle function.

  • Shouldn't need a tutorial for this create a shape and add a selected state that is a toggle

    If you need triggers add:

    do this on condition is selected

    do this on condition is not selected