Commit 082f5165 authored by 李维's avatar 李维

Bug fix

parent 92947c0f
......@@ -365,12 +365,6 @@ export class PlayComponent implements OnInit, OnDestroy {
})
questionText.ref.text = "a fish whose head look like those of a horse"
if(questionText.ref.width > 1440) {
questionText.ref.setScaleXY(this.g_mapScale * 1440/questionText.ref.width);
} else {
questionText.ref.setScaleXY(this.g_mapScale);
}
element.out = (callback)=> {
return tweenChange(element.ref, {y: -1000}, 1, ()=>{
callback && callback()
......@@ -1537,7 +1531,11 @@ export class PlayComponent implements OnInit, OnDestroy {
indexText.ref.text = this.m_questionIndexArray[toIndex];
let questionText = this.g_cartoon.getCartoonElement("question_text");
questionText.ref.text = this.g_formData.dataArray[toIndex].text
questionText.ref.refreshSize();
if(questionText.ref.width > 1920) {
questionText.ref.setScaleXY(1920/questionText.ref.width);
}
let nextButton = this.g_cartoon.getCartoonElement("question_next")
if(this.g_formData.dataArray.length>toIndex+1) {
nextButton.active(true)
......
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