Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ai_mz_02
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ai_mz_02
Commits
895d9f9a
Commit
895d9f9a
authored
Feb 25, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: audio bug
parent
46d5e231
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
132 deletions
+8
-132
ai_mz_02.meta
assets/ai_mz_02.meta
+1
-15
ai_mz_02.js
assets/ai_mz_02/scene/ai_mz_02.js
+7
-7
ai-class.component.html
form/src/app/common/ai-class/ai-class.component.html
+0
-110
No files found.
assets/ai_mz_02.meta
View file @
895d9f9a
{
"ver": "1.1.2",
"uuid": "e1187687-3638-4ed1-b4a9-07f03114e329",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"e1187687-3638-4ed1-b4a9-07f03114e329","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
assets/ai_mz_02/scene/ai_mz_02.js
View file @
895d9f9a
...
...
@@ -269,13 +269,13 @@ cc.Class({
selectClip
:
null
,
starCountClip
:
null
,
initAudioEffect
()
{
this
.
rightClip
=
cc
.
find
(
'
Canvas/res/audio/right
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
wrongClip
=
cc
.
find
(
'
Canvas/res/audio/wrong
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
bigStarClip
=
cc
.
find
(
'
Canvas/res/audio/big_star
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
btnClip
=
cc
.
find
(
'
Canvas/res/audio/btn
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
finishClip
=
cc
.
find
(
'
Canvas/res/audio/finish
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
selectClip
=
cc
.
find
(
'
Canvas/res/audio/select
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
starCountClip
=
cc
.
find
(
'
Canvas/res/audio/star_count
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
//
this.rightClip = cc.find('Canvas/res/audio/right').getComponent(cc.AudioSource).clip;
//
this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip;
//
this.bigStarClip = cc.find('Canvas/res/audio/big_star').getComponent(cc.AudioSource).clip;
//
this.btnClip = cc.find('Canvas/res/audio/btn').getComponent(cc.AudioSource).clip;
//
this.finishClip = cc.find('Canvas/res/audio/finish').getComponent(cc.AudioSource).clip;
//
this.selectClip = cc.find('Canvas/res/audio/select').getComponent(cc.AudioSource).clip;
//
this.starCountClip = cc.find('Canvas/res/audio/star_count').getComponent(cc.AudioSource).clip;
},
...
...
form/src/app/common/ai-class/ai-class.component.html
View file @
895d9f9a
...
...
@@ -56,91 +56,6 @@
<!-- <div style="margin-top: -20px; margin-bottom: 5px; width: 100%;">
<div *ngIf="customTypeGroupArr">
<nz-radio-group [ngModel]="it.gIdx" (ngModelChange)="customRadioChange($event, it)" style="display: flex; align-items: center; justify-content: center; flex-wrap: wrap;">
<div *ngFor="let group of customTypeGroupArr; let gIdx = index" style="display: flex; ">
<label nz-radio nzValue="{{gIdx}}">{{group.name}}</label>
</div>
</nz-radio-group>
</div>
</div> -->
<!-- <div *ngIf="customTypeGroupArr && customTypeGroupArr[it.gIdx]">
<div *ngIf="customTypeGroupArr[it.gIdx].pic">
<app-upload-image-with-preview
[picUrl]="it?.pic_url"
(imageUploaded)="onItemImgUploadSuccess($event, it)">
</app-upload-image-with-preview>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx].text" style="margin-top: 5px">
<input type="text" nz-input [(ngModel)]="it.text" (blur)="saveText(it)">
</div>
<div *ngIf="customTypeGroupArr[it.gIdx].anima" align="center" style="margin-top: 5px">
<button nz-button (click)="setAnimaBtnClick(i)" >
<i nz-icon nzType="tool" nzTheme="outline"></i>
配置龙骨动画
</button>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx].animaSmall" align="center" style="margin-top: 5px">
<button nz-button (click)="setAnimaSmallBtnClick(i)" >
<i nz-icon nzType="tool" nzTheme="outline"></i>
配置龙骨动画(小)
</button>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx].audio" style="display: flex;align-items: center; margin-top: 5px">
<app-audio-recorder
style="margin: auto"
[audioUrl]="it.audio_url"
(audioUploaded)="onItemAudioUploadSuccess($event, it)"
></app-audio-recorder>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx]?.action" style="display: flex;align-items: center; margin-top: 5px">
<app-custom-action
style="margin: auto"
[item]="it ? it['actionData_' + it.gIdx] : {}"
[type]="customTypeGroupArr[it.gIdx].action.type"
[option]="customTypeGroupArr[it.gIdx].action.option"
(save)="onSaveCustomAction($event, it)">
></app-custom-action>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx]?.isShowPos" style="display: flex; align-items: center; justify-content: center; margin-top: 5px;">
x: <input type="text" nz-input [(ngModel)]="it.posX" style="width: 50px; margin-right: 15px;" (blur)="saveItemPos(it)">
y: <input type="text" nz-input [(ngModel)]="it.posY" style="width: 50px" (blur)="saveItemPos(it)">
</div>
<div *ngIf="customTypeGroupArr[it.gIdx]?.select" align="center" >
<nz-select [(ngModel)]="it.selectType" nzAllowClear nzPlaceHolder="Choose" style="width: 70%; margin-top: 5px;">
<nz-option *ngFor="let s of customTypeGroupArr[it.gIdx]?.select" [nzValue]="s.value" [nzLabel]="s.label">
</nz-option>
</nz-select>
</div>
<div *ngIf="customTypeGroupArr[it.gIdx]?.label" align="center" style="margin-top: 5px; display: flex; align-items: center; justify-content: center;">
<span style="width: 30%;">{{customTypeGroupArr[it.gIdx].label + ':'}}</span>
<input type="text" nz-input [(ngModel)]="it.labelText" (blur)="saveText(it)">
</div>
<div *ngIf="customTypeGroupArr[it.gIdx]?.isCopy" align="center" style="margin-top: 5px; display: flex; align-items: center; justify-content: center;">
<button nz-button (click)="copyItem(it)" >
<i nz-icon nzType="copy" nzTheme="outline"></i>
复制粘贴
</button>
</div>
</div> -->
...
...
@@ -169,31 +84,6 @@
<!-- <div [style.width]="timeBarWidth" >
<div style="background-color: #84f466; width: 100%; height: 40px; position: relative; z-index: 0;">
</div>
<div style="display: flex; margin-top: -40px; position: relative; z-index: 2">
<div *ngFor="let item of timeArr; let i = index" style="display: flex; align-items: flex-end;" >
<div style="height: 40px; border-left: 1px solid #333;" [style.width]="(oneTimeLen / 2) + 'px'">
</div>
<div style="height: 20px; border-left: 1px solid #333;" [style.width]="(oneTimeLen / 2) + 'px'">
</div>
</div>
</div>
<div style="display: flex;">
<div *ngFor="let item of timeArr; let i = index" [style.width]="(oneTimeLen) + 'px'">
{{i}}
</div>
</div>
</div> -->
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment