Commit cb5cb094 authored by asdf's avatar asdf

文字变色逻辑调整

parent 18e0ef11
......@@ -12,7 +12,7 @@
<br>
<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="height: 330px;width:100%;height:100%">
<span style="height: 30px; font-size: 18px;">第{{i + 1}}页题干:</span>
......@@ -58,6 +58,9 @@
</div>
</div>
<br>
</div>
<br>
<div style="margin-top: 20px;">
<button style="margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;" nz-button
nzType="danger" (click)="removeQuestion(i)">
......@@ -73,7 +76,6 @@
</button>
</div>
</div>
</div>
<button style="margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;" nz-button
nzType="dashed" class="add-btn" (click)="addQuestion()">
添加问题
......
......@@ -236,12 +236,18 @@ cc.Class({
this.playAudioOption((duration) => {
this.scheduleStep = 2;
this.scheduleDuration = duration / 2 / this.label.node.width * this.scheduleStep;
if(this.scheduleDuration < 0.01){
this.scheduleDuration = 0.01;
if(this.scheduleDuration < 0.05){
this.scheduleDuration = 0.05;
this.scheduleStep = this.scheduleDuration / duration * 2 * this.label.node.width;
}
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)
}, () => {
......
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