Locking buttons when text on show

Hi all,


This may be an easy fix but as im new to Lectora i thought you all might be better equipped to answer my question. I am trying to create a very simple page in my course whereby participants can click on images to give them more information about each object.


The action is to show a text box with information and a black stamp exit button to click to hide the text box once they are finished reading it.


However at the moment the other object buttons are clickable while the text box is still on show.


Is there a way to lock the other buttons while the text box is on show and then unlocks them once the exit button has been clicked and the text box is hidden again?


thanks

Discussion (2)

You can add actions that trigger when a button is clicked to hide the objects you don't want clicked, and then add actions to the exit button that show the clickable objects again. This option would work best if you are using transparent buttons that are over the objects the student is clicking.



If you're adding the action directly to the object (instead of using a transparent button), you can set conditions to keep the Show actions from firing:

-Create a variable (for this example, I'll call it v_boolean) with an initial value of 0

-When an object is clicked, have it show the textbox on the condition that v_boolean = 0

-After that action, create another action that sets v_boolean = 1

(these two actions would need to be added to each clickable object)

-On the exit button, create an action that sets v_boolean = 0


What this does, is tells course to show the textbox as long as v_boolean = 0. Since it starts off at 0, clicking an object will show the respective textbox. However, the action which fires after showing the textbox will set v_boolean = 1, which would then prevent any of the other objects from showing their textboxes. However, once the user clicks the exit button, it will reset v_boolean to 0, allowing the user to then click the objects again.


Hope this makes sense, let me know if these don't work for you!

Great thanks very much. Transparent buttons hiding will work just fine.


thanks for your help.


J.

Discussions have been disabled for this post