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
bcfa6a2b
Commit
bcfa6a2b
authored
Nov 07, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
882cfb9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
HbCutTimeSkin.exml
egret/resource/skins/HbCutTimeSkin.exml
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-4
HbCutTime.ts
egret/src/panels/HongbaoRain/HbCutTime.ts
+15
-0
No files found.
egret/resource/skins/HbCutTimeSkin.exml
View file @
bcfa6a2b
...
@@ -21,5 +21,5 @@
...
@@ -21,5 +21,5 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Image
id=
"ok_btn"
y=
"7
17"
source=
"hbCutTime_btn_enable_png"
horizontalCenter=
"1
"
/>
<e:Image
id=
"ok_btn"
y=
"7
69"
source=
"hbCutTime_btn_enable_png"
horizontalCenter=
"1"
anchorOffsetX=
"179"
anchorOffsetY=
"52
"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
bcfa6a2b
...
@@ -91,10 +91,10 @@ export default class MapScene extends Scene {
...
@@ -91,10 +91,10 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
NetManager
.
ins
.
hc_submit
(()
=>
{
//
NetManager.ins.hc_submit(()=>{
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
//
const submitData = DataManager.ins.getData('hc_submit').data;
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
,{
level
:
1
,
option
:
submitData
.
option
})
//
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
},
1
,
1
,
''
,
''
)
//
},1,1,'','')
this
[
'actIconsGroup'
].
x
=
-
999
;
this
[
'actIconsGroup'
].
x
=
-
999
;
this
.
addIcon
();
// 添加Icon
this
.
addIcon
();
// 添加Icon
...
...
egret/src/panels/HongbaoRain/HbCutTime.ts
View file @
bcfa6a2b
...
@@ -28,6 +28,8 @@ export default class HbCutTime extends Panel {
...
@@ -28,6 +28,8 @@ export default class HbCutTime extends Panel {
initUI
()
{
initUI
()
{
this
.
hbRainBaseInfo
();
this
.
hbRainBaseInfo
();
this
.
ok_btn
.
anchorOffsetX
=
179
;
this
.
ok_btn
.
anchorOffsetY
=
52
;
}
}
private
hbRainBaseInfo
()
{
private
hbRainBaseInfo
()
{
...
@@ -48,6 +50,7 @@ export default class HbCutTime extends Panel {
...
@@ -48,6 +50,7 @@ export default class HbCutTime extends Panel {
time
=
data
.
currentSession
.
endTime
-
sysTime
+
3000
;
time
=
data
.
currentSession
.
endTime
-
sysTime
+
3000
;
if
(
data
.
canJoin
)
{
if
(
data
.
canJoin
)
{
this
.
ok_btn
.
source
=
'hbCutTime_btn_enable_png'
;
this
.
ok_btn
.
source
=
'hbCutTime_btn_enable_png'
;
this
.
btnEffect
();
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
}
else
{
}
else
{
this
.
ok_btn
.
source
=
'hbCutTime_btn_disable_png'
;
this
.
ok_btn
.
source
=
'hbCutTime_btn_disable_png'
;
...
@@ -74,6 +77,18 @@ export default class HbCutTime extends Panel {
...
@@ -74,6 +77,18 @@ export default class HbCutTime extends Panel {
}
}
}
}
private
btnEffect
()
{
egret
.
Tween
.
get
(
this
.
ok_btn
).
to
({
scaleX
:
0.9
,
scaleY
:
1.1
},
200
,
egret
.
Ease
.
quadInOut
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
.
ok_btn
).
to
({
scaleX
:
1
,
scaleY
:
1
},
200
,
egret
.
Ease
.
quadInOut
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
.
ok_btn
).
to
({
scaleX
:
0.9618
,
scaleY
:
1.0618
},
200
,
egret
.
Ease
.
quadInOut
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
.
ok_btn
).
to
({
scaleX
:
1
,
scaleY
:
1
},
200
,
egret
.
Ease
.
quadInOut
).
wait
(
1000
).
call
(()
=>
{
this
.
btnEffect
();
})
});
})
});
}
destroy
()
{
destroy
()
{
if
(
this
.
cutTimer
)
{
if
(
this
.
cutTimer
)
{
this
.
cutTimer
.
stop
();
this
.
cutTimer
.
stop
();
...
...
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