(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/script/BMFont_FPS.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '402c28zL+RES5y+vLVVHFp1', 'BMFont_FPS', __filename);
// script/BMFont_FPS.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {
        btn: cc.Button,
        scrollView: cc.ScrollView
    },

    onLoad: function onLoad() {
        this.btn.node.actice = false;
        cc.game.setFrameRate(30);
        cc.director.setDisplayStats(true);
        this.btn.node.on('touchend', this.onBtnClicked, this);
        this.scrollView_ListViewCtrl = this.scrollView.getComponent("ListViewCtrl");
        cc.loader.loadRes("gameString", function (err, res) {
            if (err) {
                cc.log(err);
            } else {
                this.gameString = res;
                this.btn.node.actice = true;
            }
        }.bind(this));
    },

    onBtnClicked: function onBtnClicked() {
        var array = [];
        var dest_array = [];
        var index = 0;
        for (var key in this.gameString) {
            var value = this.gameString[key];
            index = index + 1;
            array.push(value.value);
            if (index >= 800) {
                break;
            }
        }
        for (var i = 0; i < array.length;) {
            var src_array = [];
            src_array.push(array[i]);
            i = i + 1;
            src_array.push(array[i]);
            i = i + 1;
            src_array.push(array[i]);
            i = i + 1;
            src_array.push(array[i]);
            i = i + 1;
            dest_array.push(src_array);
        }
        this.scrollView_ListViewCtrl.handleRefreshItemInfoList(dest_array);
    },

    onEnable: function onEnable() {}
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=BMFont_FPS.js.map
        