Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
34df3590
Commit
34df3590
authored
Nov 05, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
86c6500f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
HbGame.ts
egret/src/panels/HongbaoRain/HbGame.ts
+2
-3
HbPrize.ts
egret/src/panels/HongbaoRain/HbPrize.ts
+5
-0
No files found.
egret/src/panels/HongbaoRain/HbGame.ts
View file @
34df3590
...
...
@@ -22,7 +22,8 @@ export default class HbGame extends Panel {
private
rainMgr
:
RainMgr
=
null
;
private
cutTime
:
egret
.
Timer
=
null
;
private
time
:
number
=
0
;
private
time
:
number
=
8
;
private
score
=
0
;
private
scoreLabelStr
=
0
;
...
...
@@ -42,8 +43,6 @@ export default class HbGame extends Panel {
this
.
rainGroup
.
height
=
this
.
width
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
tipLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
`抢到<b>
${
15
}
</b>个红包才有奖励哦~`
);
this
.
time
=
30
;
this
.
cutTimeLabel
.
text
=
`
${
this
.
time
}
`
}
...
...
egret/src/panels/HongbaoRain/HbPrize.ts
View file @
34df3590
...
...
@@ -3,6 +3,8 @@ import getHomeData from "../../getHomeData";
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
SceneCtrl
from
"../../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
/**
* 红包雨奖励
...
...
@@ -44,6 +46,9 @@ export default class HbPrize extends Panel {
this
[
'numsgroup'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums'
].
text
=
'x'
+
realValue
;
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
},
window
[
'collectRuleId'
]);
break
;
default
:
this
[
'img'
].
visible
=
true
;
...
...
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