DisplayIframe

DisplayIframe

How to add to:         dialogue nodes

                        the script editor

                        onClick

Dialogue Nodes

 

You can add the commands directly into a dialogue node or into the dialogue text (found in the properties section). Here’s an example:

[action:"displayIframe", url:"https://google.com"]

 Script Editor

You can add the commands into the script editor at the bottom of the screen. Here’s an example:

LB.Actions.displayIframe({url:'https://google.com'});

OnClick

1.) Select the asset that you want to click in order to display the iFrame (in this case, it’s an item)

2) Add the command into the onClick section in the Properties panel

 

{"action":"displayIframe", "url":"https://google.com"}

 

Possible problem:  there is no “onClick” section in the Properties panel

The onClick section is because a CAF (Custom Asset Field) has been created manually. If it is not present, you can add it to your cmp:

->Top toolbar, select “Project”

->Project settings

This box will pop up:

 

-> Click the “Custom Asset Fields” tab (1)

-> Click on the tab you want to add the CAF to (2)

(in this case it’s to an item, but you could add it to an actor, location, etc

depending on your needs for the scenario)

-> Click on the “Add New Field” button (3)

        -> Type in “onClick” (it’s case sensitive)

                -> Leave the Type as “text”

                        -> Click “OK”

Now the onClick CAF has been added, you can add in the command as explained earlier.

 

 

How useful was this article?

Click on a star to rate it!

We are sorry that this article was not useful for you!

Let us improve this article!