renameCostume (costumeIndex, newName) {
        const oldName = this.editingTarget.getCostumes()[costumeIndex].name;
        if (newName !== oldName) {
            this.emit('renameCostume*', {oldName: oldName, newName: newName});
        }
        this.editingTarget.renameCostume(costumeIndex, newName);
        this.emitTargetsUpdate();
    }
/**
     * Rename a costume on the current editing target.
     * @param {int} costumeIndex - the index of the costume to be renamed.
     * @param {string} newName - the desired new name of the costume (will be modified if already in use).
     */
Rename a costume on the current editing target.
@param {int} costumeIndex - the index of the costume to be renamed.
@param {string} newName - the desired new name of the costume (will be modified if already in use).
Rename a costume on the current editing target . @param { int } costumeIndex - the index of the costume to be renamed . @param { string } newName - the desired new name of the costume ( will be modified if already in use ) .
renameCostume (costumeIndex, newName) {
        const oldName = this.editingTarget.getCostumes()[costumeIndex].name;
        if (newName !== oldName) {
            this.emit('renameCostume*', {oldName: oldName, newName: newName});
        }
        this.editingTarget.renameCostume(costumeIndex, newName);
        this.emitTargetsUpdate();
    }
renameCostume ( costumeIndex , newName ) { const oldName = this . editingTarget . getCostumes ( ) [ costumeIndex ] . name ; if ( newName !== oldName ) { this . emit ( 'renameCostume*' , { oldName : oldName , newName : newName } ) ; } this . editingTarget . renameCostume ( costumeIndex , newName ) ; this . emitTargetsUpdate ( ) ; }
Rename a costume on the current editing target.
Rename a costume on the current editing target .