Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
fd5fdb23
Commit
fd5fdb23
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eb2d8a6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
Normal_1.tmproject
egret/resource/TextureMerger/Normal_1.tmproject
+1
-1
default.thm.json
egret/resource/default.thm.json
+1
-0
Main.ts
egret/src/Main.ts
+2
-2
TransScene.ts
egret/src/yazuwei/TransScene.ts
+7
-13
No files found.
egret/resource/TextureMerger/Normal_1.tmproject
View file @
fd5fdb23
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png","../assets/map/mapcx.png","../assets/map/maphg.png","../assets/map/mapmg.png","../assets/map/mapxg.png","../assets/map/mapam.png","../assets/map/maprb.png","../assets/map/maptb.png"]}
\ No newline at end of file
egret/resource/default.thm.json
View file @
fd5fdb23
...
...
@@ -37,6 +37,7 @@
"resource/skins/JoinShareSkin.exml"
,
"resource/skins/PKScoreSkin.exml"
,
"resource/skins/CertificateSkin.exml"
,
"resource/skins/TransSkin.exml"
,
"resource/skins/ShareStarterSkin.exml"
],
"path"
:
"resource/default.thm.json"
...
...
egret/src/Main.ts
View file @
fd5fdb23
...
...
@@ -171,7 +171,7 @@ class Main extends MainBase {
// return;
if
(
window
[
'pageID'
])
{
if
(
GameConst
.
getQueryString
(
"InviteSource"
))
{
//
if (GameConst.getQueryString("InviteSource")) {
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
)
{
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
...
...
@@ -179,7 +179,7 @@ class Main extends MainBase {
return
;
}
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"InviteSource"
))
}
//
}
Waiting
.
instance
.
hide
();
if
(
window
[
'pageID'
]
==
'JoinShareScene'
)
{
...
...
egret/src/yazuwei/TransScene.ts
View file @
fd5fdb23
import
Scene
from
"../views/Scene"
;
import
{
getResPath
}
from
"../utils"
;
import
{
loadSvgaRes
,
loadSvga
}
from
"../loadSvga"
;
import
{
wait
}
from
"../GameConst"
;
import
GameConst
,
{
wait
}
from
"../GameConst"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
yzwNet
}
from
"../NetConst"
;
...
...
@@ -66,7 +66,7 @@ export default class TransScene extends Scene {
}
}
onshake
(){
onshake
()
{
this
[
'shareTips'
].
visible
=
false
;
let
sharecode
=
DataManager
.
ins
.
getData
(
'genInvite'
).
data
;
NetManager
.
ins
.
yyh_updateAnimationState
(
sharecode
,
3
,
(
success
)
=>
{
...
...
@@ -111,23 +111,17 @@ export default class TransScene extends Scene {
}
onTap_btn
()
{
this
[
'btn'
].
visible
=
false
;
this
[
'btn'
].
visible
=
false
;
console
.
log
(
'onTap_btn'
);
this
[
'shareTips'
].
visible
=
true
;
//进入页面后发送确认消息
yzwNet
.
genInvite
(()
=>
{
let
sharecode
=
DataManager
.
ins
.
getData
(
'genInvite'
).
data
;
NetManager
.
ins
.
yyh_updateAnimationState
(
sharecode
,
1
,
(
success
)
=>
{
if
(
success
)
{
this
.
addShareEvent
();
}
});
},
window
[
'projectId'
]);
yzwNet
.
accept
(()
=>
{
this
.
addShareEvent
();
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"shareCode"
));
setTimeout
(()
=>
{
this
.
onshake
();
},
3
000
);
},
10
000
);
}
initEvents
()
{
...
...
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