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
41db816f
Commit
41db816f
authored
Nov 08, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b19ea4af
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
3 deletions
+18
-3
index.html
egret/index.html
+1
-1
main2.tmproject
egret/resource/TextureMerger/main2.tmproject
+1
-1
HbRainIcon.ts
egret/src/mapScene/icon/HbRainIcon.ts
+5
-1
HbCutTime.ts
egret/src/panels/HongbaoRain/HbCutTime.ts
+3
-0
HbNoPrize.ts
egret/src/panels/HongbaoRain/HbNoPrize.ts
+4
-0
HbPrize.ts
egret/src/panels/HongbaoRain/HbPrize.ts
+4
-0
No files found.
egret/index.html
View file @
41db816f
...
...
@@ -60,7 +60,7 @@
<script
src=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
window
[
'hbRainTime'
]
=
30
;
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
window
[
'plugs'
]
=
[
1
,
2
,
3
]
// localStorage.clear();
window
[
'isInvitePage'
]
=
0
;
...
...
egret/resource/TextureMerger/main2.tmproject
View file @
41db816f
This diff is collapsed.
Click to expand it.
egret/src/mapScene/icon/HbRainIcon.ts
View file @
41db816f
...
...
@@ -2,6 +2,7 @@ import IconBase from "./IconBase";
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
export
default
class
HbRainIcon
extends
IconBase
{
...
...
@@ -30,6 +31,9 @@ export default class HbRainIcon extends IconBase {
}
this
.
visible
=
true
;
})
if
(
this
.
visible
){
NetManager
.
ins
.
showLog
(
getlogItem
(
57
));
}
}
/**
...
...
@@ -38,7 +42,7 @@ export default class HbRainIcon extends IconBase {
*/
protected
onTouchBtn
(
e
:
egret
.
TouchEvent
)
{
super
.
onTouchBtn
(
e
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
57
));
NetManager
.
ins
.
hbRainBaseInfo
((
success
,
res
)
=>
{
PanelCtrl
.
instance
.
show
(
"HbCutTime"
,
{
res
:
res
});
});
...
...
egret/src/panels/HongbaoRain/HbCutTime.ts
View file @
41db816f
...
...
@@ -3,6 +3,7 @@ import CutTimer from "../../CutTimer";
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
HbRule
from
"./HbRule"
;
import
{
getlogItem
}
from
"../../Main"
;
/**
* 红包雨倒计时
...
...
@@ -50,6 +51,7 @@ export default class HbCutTime extends Panel {
time
=
data
.
currentSession
.
endTime
-
sysTime
+
3000
;
if
(
data
.
canJoin
)
{
this
.
ok_btn
.
source
=
'hbCutTime_btn_enable_png'
;
NetManager
.
ins
.
showLog
(
getlogItem
(
59
));
this
.
btnEffect
();
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
}
else
{
...
...
@@ -128,6 +130,7 @@ export default class HbCutTime extends Panel {
}
onTouchOK
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
59
));
PanelCtrl
.
instance
.
show
(
'HbGame'
,
{
needScore
:
this
.
data
.
res
.
data
.
currentSession
.
limitScore
});
}
...
...
egret/src/panels/HongbaoRain/HbNoPrize.ts
View file @
41db816f
...
...
@@ -6,6 +6,8 @@ import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import
{
addAdComp
}
from
"../BoxPanel"
;
import
Utils
from
"../../Utils"
;
import
CutTimer
from
"../../CutTimer"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
/**
* 红包雨无奖励
...
...
@@ -26,6 +28,7 @@ export default class HbNoPrize extends Panel {
}
initUI
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
61
));
let
type
=
this
.
data
.
type
;
switch
(
true
)
{
case
(
type
==
1
):
...
...
@@ -62,6 +65,7 @@ export default class HbNoPrize extends Panel {
}
onTouchOK
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
61
));
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
super
.
hidePanel
();
...
...
egret/src/panels/HongbaoRain/HbPrize.ts
View file @
41db816f
...
...
@@ -4,6 +4,8 @@ import { changeMapScene } from "../../startScene/StartScene";
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
HtmlTextParser
}
from
"../../../libs/new_wx/HtmlTextParser"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
/**
* 红包雨奖励
...
...
@@ -57,6 +59,7 @@ export default class HbPrize extends Panel {
}
initUI
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
60
));
}
...
...
@@ -76,6 +79,7 @@ export default class HbPrize extends Panel {
}
onTouchOK
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
60
));
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
super
.
hidePanel
();
...
...
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