reorderCostume (targetId, costumeIndex, newIndex) {
        this.emit('reorderCostume*');
        const target = this.runtime.getTargetById(targetId);
        if (target) {
            const reorderSuccessful = target.reorderCostume(costumeIndex, newIndex);
            if (reorderSuccessful) {
                this.runtime.emitProjectChanged();
            }
            return reorderSuccessful;
        }
        return false;
    }
/**
     * Reorder the costumes of a target if it exists. Return whether it succeeded.
     * @param {!string} targetId ID of the target which owns the costumes.
     * @param {!number} costumeIndex index of the costume to move.
     * @param {!number} newIndex index that the costume should be moved to.
     * @returns {boolean} Whether a costume was reordered.
     */
Reorder the costumes of a target if it exists. Return whether it succeeded.
@param {!string} targetId ID of the target which owns the costumes.
@param {!number} costumeIndex index of the costume to move.
@param {!number} newIndex index that the costume should be moved to.
@returns {boolean} Whether a costume was reordered.
Reorder the costumes of a target if it exists . Return whether it succeeded . @param { !string } targetId ID of the target which owns the costumes . @param { !number } costumeIndex index of the costume to move . @param { !number } newIndex index that the costume should be moved to . @returns { boolean } Whether a costume was reordered .
reorderCostume (targetId, costumeIndex, newIndex) {
        this.emit('reorderCostume*');
        const target = this.runtime.getTargetById(targetId);
        if (target) {
            const reorderSuccessful = target.reorderCostume(costumeIndex, newIndex);
            if (reorderSuccessful) {
                this.runtime.emitProjectChanged();
            }
            return reorderSuccessful;
        }
        return false;
    }
reorderCostume ( targetId , costumeIndex , newIndex ) { this . emit ( 'reorderCostume*' ) ; const target = this . runtime . getTargetById ( targetId ) ; if ( target ) { const reorderSuccessful = target . reorderCostume ( costumeIndex , newIndex ) ; if ( reorderSuccessful ) { this . runtime . emitProjectChanged ( ) ; } return reorderSuccessful ; } return false ; }
Reorder the costumes of a target if it exists.
Reorder the costumes of a target if it exists .