1234567891011121314151617181920212223242526272829303132333435363738 |
- import { _decorator, Component, Node, Label, Sprite } from 'cc';
- import { itemData } from '../config/ItemDataConfig';
- import { GameMng } from '../GameMng';
- import { ResMng } from '../gcommon/ResMng';
- import { UIButton } from '../gcommon/UIButton';
- import { Tools } from '../Tools';
- const { ccclass, property } = _decorator;
- @ccclass('qi_pao_select_info')
- export class qi_pao_select_info extends Component {
- @property(Node) lab_des:Node = null
- @property(Node) lab_name:Node = null
- @property(Node) sp_icon:Node = null
- @property(Node) btn_buy:Node = null
- private m_curData:itemData = null;
- start() {
- UIButton.BindClick(this.btn_buy,()=>{
- },this)
-
- }
- show(data:itemData){
- this.m_curData = data;
- this.lab_des.getComponent(Label).string = this.m_curData.des
- this.lab_name.getComponent(Label).string = this.m_curData.name
- //this.sp_icon.getComponent(Sprite)
- //ResMng
- }
- update(deltaTime: number) {
-
- }
- }
|