<clickable>:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: <click region>
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: $MusicBox
actions:
- type: responder
tag: MusicBox
responder:
states:
- cmds:
- type: soundmsg
params:
receivers:
- 0011:<button emitter>
cmds:
- play
- setvolume
volume: 1
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:<music emitter>
cmds:
- play
- setvolume
volume: 1
waiton: -1
nextstate: 1
waittocmd: 0
- cmds:
- type: soundmsg
params:
receivers:
- 0011:<button emitter>
cmds:
- play
- setvolume
volume: 1
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:<music emitter>
cmds:
- stop
waiton: -1
nextstate: 0
waittocmd: 0
curstate: 0
flags:
- detecttrigger
<clickable>:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: <click region>
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: $MusicBox
actions:
- type: responder
tag: MusicBox
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:<oneshot empty name>
callbacks:
- marker: TouchButton
receiver: respondermod:$MusicBox
user: 0
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:<button emitter>
cmds:
- play
- setvolume
volume: 1
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:<music emitter>
cmds:
- play
- setvolume
volume: 1
waiton: -1
nextstate: 1
waittocmd:
- key: 0
msg: 0
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:<oneshot empty name>
callbacks:
- marker: TouchButton
receiver: respondermod:$MusicBox
user: 0
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:<button emitter>
cmds:
- play
- setvolume
volume: 1
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:<music emitter>
cmds:
- stop
waiton: -1
nextstate: 0
waittocmd:
- key: 0
msg: 0
curstate: 0
flags:
- detecttrigger
<oneshot empty name>:
logic:
actions:
- type: oneshot
name: <oneshot empty name>
oneshot:
animation: ButtonTouch
Users browsing this forum: No registered users and 22 guests