CustomLoadingScreen icon indicating copy to clipboard operation
CustomLoadingScreen copied to clipboard

Add actions that can be performed at any time

Open AlexIIL opened this issue 10 years ago • 0 comments

Add something similar to

"actions":[
    {
        "type":"sound",
        "conditionStart":"loaded = true",
        "conditionEnd":"false",
        "arguments":[
            "sound/to/play"
        ],
        "repeat":"false"
    },
    {
        "type":"sound",
        "conditionStart":"firstTick = true",
        "conditionEnd":"loaded = true",
        "arguments":[
            "sound/to/repeat"
        ]
    }
]

Where "sound" would play a sound, starting when "conditionStart" resolved to true, looping it until "conditionEnd" resolved to true. Note that non repeating sounds end themselves after a while, so conditionEnd is ignored.

AlexIIL avatar Apr 24 '15 20:04 AlexIIL