Commit 4eec376a authored by 李维's avatar 李维

bug fix

parent 270ada7a
......@@ -270,9 +270,13 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
text.ref.fontWeight = 900
text.ref.fontColor = "#3e9b31"
text.ref.setScaleXY(this.g_mapScale);
text.ref.fontColor = "#3e9b31";
if(text.ref.width > 1440) {
text.ref.setScaleXY(this.g_mapScale * 1440/text.ref.width);
text.ref.x = 160 * this.g_mapScale + 1440 * this.g_mapScale / 2;
} else {
text.ref.setScaleXY(this.g_mapScale);
}
this.render(text.ref)
}
......@@ -460,7 +464,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_enableMapDown = true;
return
}
this.g_cartoon.playAudio("sm_switch")
this.g_cartoon.playAudio("sm_letterClick")
let target = this.g_cartoon.getCartoonElement(this.m_currentInput)
if(this.m_openShift) {
target.setContentText(letttes[i-1].toUpperCase())
......@@ -511,6 +515,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_enableMapDown = true;
return;
}
this.g_cartoon.playAudio("sm_switch")
this.m_openShift = !this.m_openShift;
if(this.m_openShift) {
allLetterRefs.forEach(le=>{
......
......@@ -95,7 +95,8 @@ const localAudios = {
'sm_switch': 'assets/play/sound/sm_switch.mp3',
'sm_checkin': 'assets/play/sound/sm_checkin.mp3',
'sm_moreinfo': 'assets/play/sound/sm_moreinfo.mp3',
'sm_submit': 'assets/play/sound/sm_submit.mp3'
'sm_submit': 'assets/play/sound/sm_submit.mp3',
'sm_letterClick': 'assets/play/sound/sm_letterClick.mp3'
};
......
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