Commit b2664323 authored by Edwise's avatar Edwise 🍷

修改精力增加时间

parent 56b2625b
......@@ -18,7 +18,7 @@ export class Ins {
public static curScene:SCENETYPE;
/**多长时间恢复精力(ms) */
public static recoverEnergy:number = 5*60*1000;
public static recoverEnergy:number = 3*60*1000;
// /**最长时间恢复精力 */
......
......@@ -102,8 +102,8 @@ export class MainScene extends Scene {
that.initEnergy();
that.energyUp1();
// that.initGuide(Ins.curScene > 3 ? 3 : Ins.curScene);
var a = Ins.initLabel({text:"ergergergergerg",x:300,y:800});
this.addChildAt(a,999);
// var a = Ins.initLabel({text:"ergergergergerg",x:300,y:800});
// this.addChildAt(a,999);
}
/**初始化猫咪 */
......@@ -214,10 +214,10 @@ export class MainScene extends Scene {
that.energyGroup.addChild(that.energyDeco);
that.energyDialog = Ins.initSprite("69009eb9-4593-4a43-a9d7-a6356ebd6d04", 174, -60);
that.energyGroup.addChild(that.energyDialog);
that.energyDialogLabel = Ins.initLabel({ size: 26, text: "每5分钟恢复10点精力" });
that.energyDialogLabel = Ins.initLabel({ size: 26, text: "每3分钟恢复1点精力" });
that.energyDialog.addChild(that.energyDialogLabel);
that.energyDialogLabel.x = (that.energyDialog.width - that.energyDialogLabel.textWidth) * 0.5;
that.energyDialogLabel.y = (that.energyDialog.height - that.energyDialogLabel.textHeight) * 0.5 - 2;
that.energyDialogLabel.y = (that.energyDialog.height - that.energyDialogLabel.textHeight) * 0.5 - 6;
that.energyLabel = Ins.initLabel({ size: 26, y: 85 });
that.energyGroup.addChild(that.energyLabel);
var mask = new FYGE.Shape();
......
......@@ -178,11 +178,6 @@ export class MainSceneBtnUi extends Module {
updateUserInfo() {
var that = this;
const { catName, happyCoin, level, avatar, experience, experienceMax } = Ins.userInfo;
var type = avatar.substring(avatar.lastIndexOf(".") + 1, avatar.length);
let avatar1 = avatar;
if (type != 'png' && type != 'jpg') {
avatar1 = avatar + '.jpg'
}
that.catAvatar.texture = FYGE.Texture.fromUrl(avatar);
that.catAvatar.width = 52;
that.catAvatar.height = 52;
......
......@@ -2207,7 +2207,7 @@ var Ins = (function () {
label.text = data.text ? data.text : "";
return label;
};
Ins.recoverEnergy = 5 * 60 * 1000;
Ins.recoverEnergy = 3 * 60 * 1000;
return Ins;
}());
exports.Ins = Ins;
......@@ -47041,10 +47041,10 @@ var MainScene = (function (_super) {
that.energyGroup.addChild(that.energyDeco);
that.energyDialog = Ins_1.Ins.initSprite("69009eb9-4593-4a43-a9d7-a6356ebd6d04", 174, -60);
that.energyGroup.addChild(that.energyDialog);
that.energyDialogLabel = Ins_1.Ins.initLabel({ size: 26, text: "每5分钟恢复10点精力" });
that.energyDialogLabel = Ins_1.Ins.initLabel({ size: 26, text: "每3分钟恢复1点精力" });
that.energyDialog.addChild(that.energyDialogLabel);
that.energyDialogLabel.x = (that.energyDialog.width - that.energyDialogLabel.textWidth) * 0.5;
that.energyDialogLabel.y = (that.energyDialog.height - that.energyDialogLabel.textHeight) * 0.5 - 2;
that.energyDialogLabel.y = (that.energyDialog.height - that.energyDialogLabel.textHeight) * 0.5 - 6;
that.energyLabel = Ins_1.Ins.initLabel({ size: 26, y: 85 });
that.energyGroup.addChild(that.energyLabel);
var mask = new FYGE.Shape();
This source diff could not be displayed because it is too large. You can view the blob instead.
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