头像入版 页面跳转优化
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
import { _decorator, Component, Node, Label, UITransform, Sprite } from "cc";
|
||||
import {
|
||||
_decorator,
|
||||
Component,
|
||||
Node,
|
||||
Label,
|
||||
UITransform,
|
||||
Sprite,
|
||||
tween,
|
||||
Vec3,
|
||||
} from "cc";
|
||||
import li_BaseView from "../../../Main/Common/li_BaseView";
|
||||
import { GButton } from "../../../Main/Common/GButton";
|
||||
import Utils from "../../../Main/Common/Utils";
|
||||
@@ -36,6 +45,8 @@ export class PopupGirlDetailPanel extends li_BaseView {
|
||||
this.type = data.type;
|
||||
}
|
||||
onLoadCT() {
|
||||
this.node.scale = Vec3.ZERO;
|
||||
tween(this.node).to(0.3, { scale: Vec3.ONE }).start();
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
this.desc = this._nodeTab.content.getComponent(Label);
|
||||
this.uitransform = this._nodeTab.Img_Frame.getComponent(UITransform);
|
||||
|
||||
Reference in New Issue
Block a user