|
@@ -43,6 +43,7 @@ export class btn_question_item extends Component {
|
|
|
public updateView(){
|
|
|
this.node.getComponent(UITransform).contentSize = new Size(this.m_data.width,this.m_data.height)
|
|
|
this.node.position = new Vec3(this.m_data.x,this.m_data.y)
|
|
|
+ this.lab_title.position = new Vec3(0,0,0)
|
|
|
if(this.m_data.res.length>0){
|
|
|
assetManager.loadRemote<ImageAsset>(this.m_data.res, (err, imageAsset2)=>{
|
|
|
if (!err && imageAsset2) {
|