12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { _decorator, Component, Node, Label, Sprite } from 'cc';
- import { GameMng } from '../GameMng';
- import GBaseUI from '../gcommon/GBaseUI';
- import { UIButton } from '../gcommon/UIButton';
- import { Tools } from '../Tools';
- const { ccclass, property } = _decorator;
- @ccclass('self_info_view')
- export class self_info_view extends GBaseUI {
- @property(Node) btn_close:Node = null
- @property(Node) btn_header:Node = null
- @property(Node) btn_nick:Node = null
- @property(Node) btn_area:Node = null
- @property(Node) btn_real:Node = null
- @property(Node) btn_phone:Node = null
- @property(Node) btn_address:Node = null
- @property(Node) lab_name:Node = null;
- @property(Node) head_spr:Node = null;
- start() {
- UIButton.BindClick(this.btn_close,()=>{
- this.closeUI()
- },this)
- UIButton.BindClick(this.btn_header,()=>{
-
- },this)
- UIButton.BindClick(this.btn_nick,()=>{
-
- },this)
- UIButton.BindClick(this.btn_area,()=>{
-
- },this)
- UIButton.BindClick(this.btn_real,()=>{
-
- },this)
- UIButton.BindClick(this.btn_phone,()=>{
-
- },this)
- UIButton.BindClick(this.btn_address,()=>{
-
- },this)
- }
- onEnable(){
- this.lab_name.getComponent(Label).string = GameMng._userData.user_name
- Tools.loadWeiXinHead(GameMng._userData.user_avatar,this.head_spr.getComponent(Sprite))
- }
- update(deltaTime: number) {
-
- }
- }
|