|
@@ -49,6 +49,16 @@ export class widget_item extends Component {
|
|
|
this.m_delete_cb && this.m_delete_cb(this)
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ public initWidgetAddCurEditSecne() {
|
|
|
+ this.lab_name.setPosition(this.lab_name.getPosition().x,-117,0)
|
|
|
+ this.lab_name.getComponent(Label).string = this.m_data.name + (this.m_data.att?`id:${this.m_data.att.id}`:"");
|
|
|
+ }
|
|
|
+
|
|
|
+ public initWidgetType() {
|
|
|
+ this.lab_name.setPosition(0,0,0)
|
|
|
+ }
|
|
|
+
|
|
|
public hideContainerChilden(){
|
|
|
this.m_isShowContainerChilden = false
|
|
|
}
|
|
@@ -433,7 +443,7 @@ export class widget_item extends Component {
|
|
|
}else{
|
|
|
assetManager.loadRemote<ImageAsset>(this.m_att.src, (err, imageAsset2)=>{
|
|
|
if (!err && imageAsset2) {
|
|
|
- this.lab_name.active = false;
|
|
|
+ // this.lab_name.active = false;
|
|
|
const texture = new Texture2D();
|
|
|
texture.image = imageAsset2;
|
|
|
let spFrame2 = new SpriteFrame();
|