Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
73654f93
Commit
73654f93
authored
Dec 04, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
93d028b5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
11 deletions
+28
-11
common_btn20.png
egret/resource/assets/common/common_btn20.png
+0
-0
default.res.json
egret/resource/default.res.json
+9
-0
DreamSkin.exml
egret/resource/skins/DreamSkin.exml
+3
-0
DreamScene.ts
egret/src/DreamScene.ts
+2
-0
MainScene.ts
egret/src/MainScene.ts
+13
-10
index.json
mock/esports/index.json
+1
-1
No files found.
egret/resource/assets/common/common_btn20.png
0 → 100644
View file @
73654f93
21.4 KB
egret/resource/default.res.json
View file @
73654f93
...
@@ -39,6 +39,10 @@
...
@@ -39,6 +39,10 @@
{
{
"keys"
:
"success_png"
,
"keys"
:
"success_png"
,
"name"
:
"success"
"name"
:
"success"
},
{
"name"
:
"preload"
,
"keys"
:
"common_btn20_png"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -441,6 +445,11 @@
...
@@ -441,6 +445,11 @@
"url"
:
"assets/main/main_iconxx.png"
,
"url"
:
"assets/main/main_iconxx.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"main_iconxx_png"
"name"
:
"main_iconxx_png"
},
{
"name"
:
"common_btn20_png"
,
"type"
:
"image"
,
"url"
:
"assets/common/common_btn20.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/DreamSkin.exml
View file @
73654f93
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
<e:Group
x=
"46"
y=
"810.7"
width=
"100%"
id=
"status1"
>
<e:Group
x=
"46"
y=
"810.7"
width=
"100%"
id=
"status1"
>
<e:Image
id=
"resubmitBtn"
y=
"0"
horizontalCenter=
"0"
source=
"common_btn9_png"
/>
<e:Image
id=
"resubmitBtn"
y=
"0"
horizontalCenter=
"0"
source=
"common_btn9_png"
/>
</e:Group>
</e:Group>
<e:Group
id=
"status2"
x=
"46"
y=
"810.7"
width=
"100%"
>
<e:Image
y=
"0"
horizontalCenter=
"0"
source=
"common_btn20_png"
/>
</e:Group>
<e:layout>
<e:layout>
<e:VerticalLayout/>
<e:VerticalLayout/>
</e:layout>
</e:layout>
...
...
egret/src/DreamScene.ts
View file @
73654f93
...
@@ -8,6 +8,7 @@ import { NetManager } from "../libs/tw/manager/NetManager";
...
@@ -8,6 +8,7 @@ import { NetManager } from "../libs/tw/manager/NetManager";
export
enum
DreamSceneType
{
export
enum
DreamSceneType
{
IN_PROGRESS
=
0
,
IN_PROGRESS
=
0
,
RESUBMIT
=
1
,
RESUBMIT
=
1
,
TIME_OUT
=
2
,
//重新提交但是审核时间已过
}
}
export
default
class
DreamScene
extends
Scene
{
export
default
class
DreamScene
extends
Scene
{
...
@@ -17,6 +18,7 @@ export default class DreamScene extends Scene {
...
@@ -17,6 +18,7 @@ export default class DreamScene extends Scene {
const
yyh_join1_dreamDetail
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
const
yyh_join1_dreamDetail
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
this
[
'group'
].
removeChild
(
this
[
'status0'
]);
this
[
'group'
].
removeChild
(
this
[
'status0'
]);
this
[
'group'
].
removeChild
(
this
[
'status1'
]);
this
[
'group'
].
removeChild
(
this
[
'status1'
]);
this
[
'group'
].
removeChild
(
this
[
'status2'
]);
this
.
status
=
data
;
this
.
status
=
data
;
...
...
egret/src/MainScene.ts
View file @
73654f93
...
@@ -51,14 +51,14 @@ export default class MainScene extends Scene {
...
@@ -51,14 +51,14 @@ export default class MainScene extends Scene {
this
[
'starbtn'
].
alpha
=
1
;
this
[
'starbtn'
].
alpha
=
1
;
}
else
{
}
else
{
this
[
'starbtn'
].
alpha
=
0
;
this
[
'starbtn'
].
alpha
=
0
;
egret
.
Tween
.
get
(
this
[
'starbtn'
]).
set
({
scaleX
:
0
,
scaleY
:
0
}).
to
({
alpha
:
1
,
scaleX
:
1
,
scaleY
:
1
},
200
,
egret
.
Ease
.
getBackOut
(
5
)).
wait
(
400
).
to
({
alpa
:
1
,
x
:
680.51
,
y
:
176
},
500
);
egret
.
Tween
.
get
(
this
[
'starbtn'
]).
set
({
scaleX
:
0
,
scaleY
:
0
}).
to
({
alpha
:
1
,
scaleX
:
1
,
scaleY
:
1
},
200
,
egret
.
Ease
.
getBackOut
(
5
)).
wait
(
400
).
to
({
alpa
:
1
,
x
:
680.51
,
y
:
176
},
500
);
egret
.
Tween
.
get
(
this
[
'starWrapper'
]).
wait
(
600
).
to
({
x
:
374
,
y
:
562
,
scaleY
:
1
,
scaleX
:
1
},
500
,
egret
.
Ease
.
backIn
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
'starWrapper'
]).
wait
(
600
).
to
({
x
:
374
,
y
:
562
,
scaleY
:
1
,
scaleX
:
1
},
500
,
egret
.
Ease
.
backIn
).
call
(()
=>
{
this
.
playShakeAni
();
this
.
playShakeAni
();
this
[
'starbtn'
].
alpha
=
1
;
this
[
'starbtn'
].
alpha
=
1
;
});
});
}
}
}
else
{
}
else
{
egret
.
Tween
.
get
(
this
[
'starbtn'
]).
set
({
x
:
680.51
,
y
:
176
,
alpha
:
1
}).
to
({
alpha
:
0
,
x
:
375
,
y
:
575
},
700
);
egret
.
Tween
.
get
(
this
[
'starbtn'
]).
set
({
x
:
680.51
,
y
:
176
,
alpha
:
1
}).
to
({
alpha
:
0
,
x
:
375
,
y
:
575
},
700
);
this
.
stopShakeAni
();
this
.
stopShakeAni
();
this
.
updateStars
(
join_1_index
.
data
.
dreamList
);
this
.
updateStars
(
join_1_index
.
data
.
dreamList
);
egret
.
Tween
.
get
(
this
[
'starWrapper'
]).
to
({
x
:
666
+
10
,
y
:
135
+
30
,
scaleX
:
0.15
,
scaleY
:
0.15
},
rightnow
?
1
:
500
,
egret
.
Ease
.
backIn
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
'starWrapper'
]).
to
({
x
:
666
+
10
,
y
:
135
+
30
,
scaleX
:
0.15
,
scaleY
:
0.15
},
rightnow
?
1
:
500
,
egret
.
Ease
.
backIn
).
call
(()
=>
{
...
@@ -79,11 +79,11 @@ export default class MainScene extends Scene {
...
@@ -79,11 +79,11 @@ export default class MainScene extends Scene {
}
}
ontap_starWrapper
()
{
ontap_starWrapper
()
{
this
[
'starWrapper'
].
touchEnabled
=
false
;
this
[
'starWrapper'
].
touchEnabled
=
false
;
this
[
'starWrapper'
].
touchChildren
=
false
;
this
[
'starWrapper'
].
touchChildren
=
false
;
wait
(
1500
).
then
(()
=>
{
wait
(
1500
).
then
(()
=>
{
this
[
'starWrapper'
].
touchEnabled
=
true
;
this
[
'starWrapper'
].
touchEnabled
=
true
;
this
[
'starWrapper'
].
touchChildren
=
true
;
this
[
'starWrapper'
].
touchChildren
=
true
;
});
});
this
.
setNormal
(
!
this
[
'starWrapper'
][
'isNormal'
]);
this
.
setNormal
(
!
this
[
'starWrapper'
][
'isNormal'
]);
}
}
...
@@ -108,10 +108,10 @@ export default class MainScene extends Scene {
...
@@ -108,10 +108,10 @@ export default class MainScene extends Scene {
isFirstShow
=
false
;
isFirstShow
=
false
;
this
.
setNormal
(
1
,
false
,
true
);
this
.
setNormal
(
1
,
false
,
true
);
this
[
'starbtn'
].
touchEnabled
=
false
;
this
[
'starbtn'
].
touchEnabled
=
false
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
[
'starbtn'
].
touchEnabled
=
true
;
this
[
'starbtn'
].
touchEnabled
=
true
;
this
.
setNormal
(
0
);
this
.
setNormal
(
0
);
this
[
'starWrapper'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_starWrapper
,
this
);
this
[
'starWrapper'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_starWrapper
,
this
);
},
3000
);
},
3000
);
...
@@ -209,7 +209,10 @@ export default class MainScene extends Scene {
...
@@ -209,7 +209,10 @@ export default class MainScene extends Scene {
}
else
if
(
detail
.
dreamStatus
==
'1'
)
{
}
else
if
(
detail
.
dreamStatus
==
'1'
)
{
SceneCtrl
.
instance
.
change
(
'MyDreamScene'
);
//我的dream,已经通过
SceneCtrl
.
instance
.
change
(
'MyDreamScene'
);
//我的dream,已经通过
}
else
if
(
detail
.
dreamStatus
==
'2'
)
{
}
else
if
(
detail
.
dreamStatus
==
'2'
)
{
SceneCtrl
.
instance
.
change
(
'DreamScene'
,
DreamSceneType
.
RESUBMIT
);
if
(
new
Date
().
getTime
()
>
join_1_index
.
data
.
reviewDeadline
)
SceneCtrl
.
instance
.
change
(
'DreamScene'
,
DreamSceneType
.
TIME_OUT
);
else
SceneCtrl
.
instance
.
change
(
'DreamScene'
,
DreamSceneType
.
RESUBMIT
);
}
}
}
}
...
...
mock/esports/index.json
View file @
73654f93
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"lightUpWindow"
:
0
,
"lightUpWindow"
:
0
,
"reviewPassedWindow"
:
0
,
"reviewPassedWindow"
:
0
,
"reviewFailedWindow"
:
0
,
"reviewFailedWindow"
:
0
,
"reviewDeadline"
:
15748944100
0
,
"reviewDeadline"
:
0
,
"assistDeadline"
:
99957489441000
,
"assistDeadline"
:
99957489441000
,
"doAssistCount"
:
10
,
"doAssistCount"
:
10
,
...
...
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