Commit cb5cb094 authored by asdf's avatar asdf

文字变色逻辑调整

parent 18e0ef11
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<br> <br>
<div *ngFor="let question of item.questionList; let i = index"> <div *ngFor="let question of item.questionList; let i = index">
<div style="border-style: dotted; border-width: 1px;"> <div style="border-style: solid; border-width: 2px;width:100%">
<div style="margin-left: 5%; margin-bottom: 50px; padding-top: 20px; "> <div style="margin-left: 5%; margin-bottom: 50px; padding-top: 20px; ">
<div style="height: 330px;width:100%;height:100%"> <div style="height: 330px;width:100%;height:100%">
<span style="height: 30px; font-size: 18px;">第{{i + 1}}页题干:</span> <span style="height: 30px; font-size: 18px;">第{{i + 1}}页题干:</span>
...@@ -58,20 +58,22 @@ ...@@ -58,20 +58,22 @@
</div> </div>
</div> </div>
<br> <br>
<div style="margin-top: 20px;"> </div>
<button style="margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;" nz-button <br>
nzType="danger" (click)="removeQuestion(i)">
删除问题 <div style="margin-top: 20px;">
</button> <button style="margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;" nz-button
<button style="margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; " nz-button nzType="danger" (click)="removeQuestion(i)">
nzType="dashed" nzDanger class="add-btn" (click)="copyQuestion(i)"> 删除问题
复制问题 </button>
</button> <button style="margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; " nz-button
<button style="margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;" nz-button nzType="dashed" nzDanger class="add-btn" (click)="copyQuestion(i)">
nzType="dashed" nzDanger class="add-btn" (click)="pasteQuestion(i)"> 复制问题
粘贴到下一页 </button>
</button> <button style="margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;" nz-button
</div> nzType="dashed" nzDanger class="add-btn" (click)="pasteQuestion(i)">
粘贴到下一页
</button>
</div> </div>
</div> </div>
<button style="margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;" nz-button <button style="margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;" nz-button
......
...@@ -236,12 +236,18 @@ cc.Class({ ...@@ -236,12 +236,18 @@ cc.Class({
this.playAudioOption((duration) => { this.playAudioOption((duration) => {
this.scheduleStep = 2; this.scheduleStep = 2;
this.scheduleDuration = duration / 2 / this.label.node.width * this.scheduleStep; this.scheduleDuration = duration / 2 / this.label.node.width * this.scheduleStep;
if(this.scheduleDuration < 0.01){ if(this.scheduleDuration < 0.05){
this.scheduleDuration = 0.01; this.scheduleDuration = 0.05;
this.scheduleStep = this.scheduleDuration / duration * 2 * this.label.node.width; this.scheduleStep = this.scheduleDuration / duration * 2 * this.label.node.width;
} }
this.unschedule(this.playLabelGreenCb); this.unschedule(this.playLabelGreenCb);
this.unschedule(this.playLabelWhiteCb);
this.labelMask.anchorX = 0;
this.labelMask.x = this.label.node.x - this.label.node.width / 2 * this.label.node.scale;
this.labelMask.width = 0;
this.labelGreen.node.anchorX = 0;
this.labelGreen.node.x = 0;
this.schedule(this.playLabelGreenCb, this.scheduleDuration) this.schedule(this.playLabelGreenCb, this.scheduleDuration)
}, () => { }, () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment