Skip to main content

Scripts, Notes, Images, Steps

Global config defines prop dialog tabs' behaviors (see here).

We will only cover setting the prop's dialog related properties in this page.

Scripts​

You can check the prop's scripts in prop dialog -> scripts tab.

You can set a prop's scripts (e.g., an actor's scripts):

new GlobalConfigGenerator()
.addProp((generator) => {
generator.type('CHARACTER')
.name('Eula')
.scripts("Good Morning\n\nHow's your day???")
.addPosition((positionGenerator) => {
positionGenerator.x(0).y(0)
})
})

Note​

You can check the prop's note in prop dialog -> general tab.

You can set a prop's note:

new GlobalConfigGenerator()
.addProp((generator) => {
generator.type('TABLE')
.name('Great Table')
.note("Some note")
.addPosition((positionGenerator) => {
positionGenerator.x(0).y(0)
})
})

Images​

You can check the prop's note in prop dialog -> images tab.

Clicking the image gives you a full browser screen popup with that image.

You can set a prop's images:

new GlobalConfigGenerator()
.addProp((generator) => {
generator.type('LIGHT')
.name("Here's LIGHT")
.addImage("https://s2.loli.net/2022/04/16/YwqJ74RUlGaCv6H.jpg","Light Style 1")
.addImage("https://s2.loli.net/2022/04/16/2MOenGxdwJPl1Hz.jpg","Light Style 2")
.addImage("https://s2.loli.net/2022/03/16/KZw7yAWXudMGL21.png")
.addPosition((positionGenerator) => {
positionGenerator.x(0).y(0)
})
})

Steps​

You can check the prop's steps in prop dialog -> steps tab.

info

Steps are sorted by the step number.

A step's title and content are both optional.

You also don't have to follow a sequential order.

You can set a prop's steps (e.g., steps n -> do something):

new GlobalConfigGenerator()
.addProp((generator) => {
generator.type('SHELF')
.name("Bookcase")
.addStep(5)
.addStep(1, "Move this", "I mean move this")
.addStep(2, "Paint this")
.addStep(3, null, "I have empty title")
.addPosition((positionGenerator) => {
positionGenerator.x(0).y(0)
})
})