|
@@ -257,9 +257,8 @@ export class widget_base extends Component {
|
|
|
self.icon.getComponent(Sprite).color = tar.color;
|
|
|
self.icon.getComponent(UIOpacity).opacity = tar.opacity;
|
|
|
self.icon.getComponent(UITransform).setContentSize(tar.size)
|
|
|
- self.icon.scale = new Vec3(tar.scale.x,tar.scale.y,1);
|
|
|
- // console.log('tar.anchorPointX_Y=',tar.anchorPointX,'-',tar.anchorPointY)
|
|
|
self.icon.getComponent(UITransform).setAnchorPoint(tar.anchorPointX, tar.anchorPointY)
|
|
|
+ self.icon.scale = new Vec3(tar.scale.x,tar.scale.y,1);
|
|
|
if(self.mCurAnimation.isMove){
|
|
|
self.node.position = tar.pos
|
|
|
}
|