Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
b2664323
Commit
b2664323
authored
Oct 10, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改精力增加时间
parent
56b2625b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
584 additions
and
13 deletions
+584
-13
Ins.ts
project/src/canvas/game/src/Ins.ts
+1
-1
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+4
-4
MainSceneBtnUi.ts
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
+0
-5
output.js
taobao_mini/client/pages/pagecanvas/output.js
+3
-3
debug.log
taobao_mini/debug.log
+576
-0
No files found.
project/src/canvas/game/src/Ins.ts
View file @
b2664323
...
...
@@ -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
;
// /**最长时间恢复精力 */
...
...
project/src/canvas/game/src/scenes/MainScene.ts
View file @
b2664323
...
...
@@ -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
();
...
...
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
View file @
b2664323
...
...
@@ -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
;
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
b2664323
...
...
@@ -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();
taobao_mini/debug.log
View file @
b2664323
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment