Commit d5f8c342 authored by Tt's avatar Tt

显示位置修复

parent fbb7cb17
This diff is collapsed.
......@@ -96,8 +96,15 @@ export default class SpeakRecord extends cc.Component {
updateBoard() {
let text = pg.view.find(this.text_tip, "text");
let img = pg.view.find(this.text_tip, "img");
let img_big = pg.view.find(this.text_tip, "img_big");
let ext = this.data.ext;
pg.view.setNetImg(img, ext.img, { w: 550, h: 270 })
pg.view.visible(img, !!ext.tip)
pg.view.visible(img_big, !ext.tip)
if (!ext.tip) {
pg.view.setNetImg(img_big, ext.img, { w: 550, h: 350 })
} else {
pg.view.setNetImg(img, ext.img, { w: 550, h: 270 })
}
pg.view.setString(text, ext.tip);
this.onTouchVoice();
pg.view.touchOn(img, this.onTouchVoice, this);
......
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