Commit 34383e6d authored by 李维's avatar 李维

Bug fix

parent aa694013
......@@ -134,7 +134,8 @@ export class PlayComponent implements OnInit, OnDestroy {
m_answerAll_left = []
m_answerAll_middle = []
m_answerAll_right = []
m_centerAdjust = 300
m_centerAdjust = 300;
m_index = 0;
// ------------------------------------
......@@ -264,7 +265,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this.m_currentQuestionIndex_right= 0;
this.m_answerAll_left = []
this.m_answerAll_middle = []
this.m_answerAll_right = []
this.m_answerAll_right = [];
this.m_index = 0;
}
startGame(){
......@@ -527,7 +529,7 @@ export class PlayComponent implements OnInit, OnDestroy {
elementDrag = this.g_cartoon.createCartoonElementLabel("text-puzzle-"+index+"_"+side, " " + item.media.text + " ", "MMTextBook-Bold", "#000", 36 * this.g_mapScale, -500, -500)
let textShow = null
textShow = this.g_cartoon.createCartoonElementLabel("text-puzzle-"+index+"_"+side, " " + item.media.text + " ", "FuturaBT-Medium", "#557790", 36 * this.g_mapScale, element.ref.x, element.ref.y)
textShow = this.g_cartoon.createCartoonElementLabel("text-puzzle-"+index+"_"+side, " " + item.media.text + " ", "MMTextBook", "#557790", 36 * this.g_mapScale, element.ref.x, element.ref.y)
this.render(element.ref)
this.render(textShow.ref)
......@@ -817,14 +819,15 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
let number_text = this.g_cartoon.createCartoonElementLabelFunc(`question-index-${side}-${index}`, (index+1) + "", "TCB___", "#FFF", 36, (w, h)=>{
let number_text = this.g_cartoon.createCartoonElementLabelFunc(`question-index-${side}-${index}`, (this.m_index+1) + "", "TCB___", "#FFF", 36, (w, h)=>{
return {
x: 0,
y: 2
}
})
number.ref.addChild(number_text.ref)
this.m_index++;
let line = this.g_cartoon.createCartoonElementImageFunc(`line-word-line-${side}-${index}`, "line", (w, h)=>{
return {
sx: 240 / w,
......@@ -854,7 +857,8 @@ export class PlayComponent implements OnInit, OnDestroy {
textShow.ref.alpha = 0;
textShow.ref.x = startX + textShow.ref.width / 2
startX += textShow.ref.width
totalWidth += textShow.ref.width
totalWidth += textShow.ref.width;
textShow.ref.y = -4;
element.ref.addChild(textShow.ref)
})
......
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