Commit c6c7de31 authored by Lwd's avatar Lwd

aaaa

parent 934dd06d
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
"array": [ "array": [
0, 0,
0, 0,
349.2653390168773, 278.86018001858923,
0, 0,
0, 0,
0, 0,
......
...@@ -48,9 +48,9 @@ var game = cc.Class({ ...@@ -48,9 +48,9 @@ var game = cc.Class({
// 生命周期 onLoad // 生命周期 onLoad
onLoad() { onLoad() {
//初始化游戏 // //初始化游戏
this.initGame(); // this.initGame();
this.UpdataUi();
if (window.addEventListener) { if (window.addEventListener) {
window.addEventListener('resize', this.scaleEventCallBack, false) window.addEventListener('resize', this.scaleEventCallBack, false)
} else if (window.attachEvent) { } else if (window.attachEvent) {
...@@ -141,14 +141,14 @@ var game = cc.Class({ ...@@ -141,14 +141,14 @@ var game = cc.Class({
//更新界面信息 //更新界面信息
UpdataUi: function () { UpdataUi: function () {
//获得当前页的关卡 // //获得当前页的关卡
var itemInfo = g.data_mgr.getPageInfo(); // var itemInfo = g.data_mgr.getPageInfo();
//第几排的第几个来算这个位置 //第几排的第几个来算这个位置
this.resetUI(); this.resetUI();
//添加项 //添加项
this.addItem2(itemInfo); this.addItem2();
// //设置上下页按钮状态 // //设置上下页按钮状态
// this.setButtonState(); // this.setButtonState();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment