Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car
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
SparkProjects
car
Commits
ec38aac8
Commit
ec38aac8
authored
Jun 03, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
1046fea4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
634 additions
and
634 deletions
+634
-634
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+621
-621
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+4
-4
index.do.json5
preview-template/mock/main/index.do.json5
+9
-9
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
ec38aac8
This diff is collapsed.
Click to expand it.
assets/Scripts/Scenes/HomeScene.ts
View file @
ec38aac8
...
@@ -46,9 +46,9 @@ export class HomeScene extends Scene {
...
@@ -46,9 +46,9 @@ export class HomeScene extends Scene {
@
property
(
Prefab
)
boxItemPrefab
:
Prefab
=
null
;
@
property
(
Prefab
)
boxItemPrefab
:
Prefab
=
null
;
@
property
(
SpriteFrame
)
boxStatus0
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
boxStatus1
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
boxStatus1
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
boxStatus2
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
boxStatus2
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
boxStatus3
:
SpriteFrame
=
null
;
onLoad
()
{
onLoad
()
{
...
@@ -98,11 +98,11 @@ export class HomeScene extends Scene {
...
@@ -98,11 +98,11 @@ export class HomeScene extends Scene {
const
txt
=
item
.
getComponentInChildren
(
Label
);
const
txt
=
item
.
getComponentInChildren
(
Label
);
txt
.
string
=
`通过
${
targetLevel
}
关`
;
txt
.
string
=
`通过
${
targetLevel
}
关`
;
if
(
+
status
==
=
2
||
+
status
===
3
)
{
if
(
+
status
==
1
||
+
status
==
2
)
{
sp
.
spriteFrame
=
this
[
`boxStatus
${
status
}
`
];
sp
.
spriteFrame
=
this
[
`boxStatus
${
status
}
`
];
maxIndex
=
Math
.
max
(
maxIndex
,
i
);
maxIndex
=
Math
.
max
(
maxIndex
,
i
);
}
else
{
}
else
{
sp
.
spriteFrame
=
this
.
boxStatus
1
;
sp
.
spriteFrame
=
this
.
boxStatus
0
;
}
}
this
.
boxRoot
.
addChild
(
item
);
this
.
boxRoot
.
addChild
(
item
);
...
@@ -117,7 +117,7 @@ export class HomeScene extends Scene {
...
@@ -117,7 +117,7 @@ export class HomeScene extends Scene {
openBox
=
_asyncThrottle
(
async
function
(
item
)
{
openBox
=
_asyncThrottle
(
async
function
(
item
)
{
const
{
id
,
status
,
targetLevel
}
=
item
;
const
{
id
,
status
,
targetLevel
}
=
item
;
if
(
+
status
!=
2
)
return
;
if
(
+
status
!=
1
)
return
;
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
openBox
,
{
id
});
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
openBox
,
{
id
});
if
(
!
success
)
return
;
if
(
!
success
)
return
;
await
showPanel
(
BoxPanel
,
data
);
await
showPanel
(
BoxPanel
,
data
);
...
...
preview-template/mock/main/index.do.json5
View file @
ec38aac8
...
@@ -13,19 +13,19 @@
...
@@ -13,19 +13,19 @@
"unparkCreditsNum": 88,
"unparkCreditsNum": 88,
"boxConfigs": [
"boxConfigs": [
{
{
id: 1
,
"id": "1"
,
targetLevel: 1
,
"status": "1"
,
status: 3
"targetLevel": "1"
},
},
{
{
id: 2
,
"id": "2"
,
targetLevel: 3
,
"status": "0"
,
status: 2
"targetLevel": "3"
},
},
{
{
id: 3
,
"id": "3"
,
targetLevel: 5
,
"status": "0"
,
status: 1
"targetLevel": "5"
}
}
]
]
},
},
...
...
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