Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
ed17eb48
Commit
ed17eb48
authored
Aug 03, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c62d3032
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
4 deletions
+40
-4
isNewbie.do.json
project/mock/webNet/game/isNewbie.do.json
+6
-0
Main.ts
project/src/Main.ts
+3
-1
WebNet.ts
project/src/WebNet.ts
+4
-0
getObject.ts
project/src/getObject.ts
+6
-3
NewbieScene.ts
project/src/template/NewbieScene.ts
+21
-0
No files found.
project/mock/webNet/game/isNewbie.do.json
0 → 100644
View file @
ed17eb48
{
"success"
:
true
,
"message"
:
""
,
"code"
:
""
,
"data"
:
true
}
\ No newline at end of file
project/src/Main.ts
View file @
ed17eb48
...
@@ -8,6 +8,8 @@ import { ResJson } from "./ResJson";
...
@@ -8,6 +8,8 @@ import { ResJson } from "./ResJson";
import
{
SkinJson
}
from
"./SkinJson"
;
import
{
SkinJson
}
from
"./SkinJson"
;
import
{
LoadingScene
}
from
"./template/LoadingScene"
;
import
{
LoadingScene
}
from
"./template/LoadingScene"
;
import
{
destroyWebNetData
}
from
"./WebNet"
;
import
{
destroyWebNetData
}
from
"./WebNet"
;
import
{
StartScene
}
from
"./template/StartScene"
;
import
{
NewbieScene
}
from
"./template/NewbieScene"
;
/**
/**
...
@@ -60,7 +62,7 @@ export class Main {
...
@@ -60,7 +62,7 @@ export class Main {
//h5环境时,隐藏加载中
//h5环境时,隐藏加载中
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
//显示场景
//显示场景
changeScene
(
Loading
Scene
)
changeScene
(
Newbie
Scene
)
}
}
/**
/**
...
...
project/src/WebNet.ts
View file @
ed17eb48
...
@@ -27,6 +27,10 @@ export enum WebNetName {
...
@@ -27,6 +27,10 @@ export enum WebNetName {
* 获取结果
* 获取结果
*/
*/
queryResult
=
"/projectx/{projectId}/game/queryResult.do"
,
queryResult
=
"/projectx/{projectId}/game/queryResult.do"
,
/**
* is newbie?
*/
isNewbie
=
"/projectx/{projectId}/isNewbie.do"
,
/**
/**
* 获取规则
* 获取规则
*/
*/
...
...
project/src/getObject.ts
View file @
ed17eb48
export
default
(
object
:
FYGE
.
Container
,
name
:
string
)
=>
{
let
func
;
func
=
(
object
:
FYGE
.
Container
,
name
:
string
)
=>
{
const
result
=
object
.
getChildByName
(
name
);
const
result
=
object
.
getChildByName
(
name
);
if
(
result
)
return
result
;
if
(
result
)
return
result
;
for
(
const
child
of
object
.
children
)
{
for
(
const
child
of
object
.
children
)
{
const
result
=
child
.
getChildByName
(
name
);
const
result
=
func
(
child
,
name
);
if
(
result
)
return
result
;
if
(
result
)
return
result
;
}
}
return
null
;
return
null
;
}
}
export
default
func
\ No newline at end of file
project/src/template/NewbieScene.ts
0 → 100644
View file @
ed17eb48
import
{
Scene
}
from
"../../module/views/Scene"
;
export
class
NewbieScene
extends
Scene
{
get
groupNames
()
{
return
[
"newbie"
]
}
get
skinName
()
{
return
"newbie"
}
initUi
()
{
}
async
start
(
data
)
{
super
.
start
()
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
}
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