You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
821 B
27 lines
821 B
import Common5 from "../../Platform/th/Common5";
|
|
import NewDataManage_xmj from "./NewDataManage_xmj";
|
|
import game_xmj from "./game_xmj";
|
|
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class SingleMaJiang extends cc.Component {
|
|
|
|
// onLoad () {}
|
|
|
|
start () {
|
|
|
|
}
|
|
setMaJiangSpFrame(num){
|
|
let config = NewDataManage_xmj.getMaJiangConfigById(num)
|
|
if(config){
|
|
Common5.getSpriteFrameFromBundle("allRes", 'GameRes/ui/game_xmj/16色/'+config.mjColor, this.node.getComponent(cc.Sprite));
|
|
Common5.getSpriteFrameFromBundle("allRes", 'GameRes/ui/game_xmj/麻将图案/'+config.tuAn, this.node.getChildByName('tuAn').getComponent(cc.Sprite));
|
|
}
|
|
|
|
}
|
|
onSingleCardClick(event){
|
|
game_xmj.getInstance().onSingleCardClick(event)
|
|
}
|
|
}
|
|
|