Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
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
TNGD_CaveCruiser
Commits
55b1a69a
Commit
55b1a69a
authored
Sep 13, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
65a665ba
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
807 additions
and
235 deletions
+807
-235
RankPanel.ts
assets/Scripts/Panels/RankPanel.ts
+12
-5
BackPanel.prefab
assets/resources/BackPanel/BackPanel.prefab
+13
-7
BackPanel.pac
assets/resources/BackPanel/png/BackPanel.pac
+3
-0
BackPanel.pac.meta
assets/resources/BackPanel/png/BackPanel.pac.meta
+36
-0
RankPanel.prefab
assets/resources/RankPanel/RankPanel.prefab
+743
-223
front.png
assets/resources/RankPanel/png/front.png
+0
-0
No files found.
assets/Scripts/Panels/RankPanel.ts
View file @
55b1a69a
...
@@ -33,11 +33,15 @@ export default class RankPanel extends Panel {
...
@@ -33,11 +33,15 @@ export default class RankPanel extends Panel {
@
property
(
Node
)
monthly_b
:
Node
=
null
;
@
property
(
Node
)
monthly_b
:
Node
=
null
;
@
property
(
Node
)
daily
:
Node
=
null
;
@
property
(
Node
)
myDaily
:
Node
=
null
;
@
property
(
Node
)
myDaily
:
Node
=
null
;
@
property
(
YXCollectionView
)
dailyList
:
YXCollectionView
=
null
;
@
property
(
YXCollectionView
)
dailyList
:
YXCollectionView
=
null
;
@
property
(
Node
)
dailyNoOne
:
Node
=
null
;
@
property
(
Node
)
monthly
:
Node
=
null
;
@
property
(
Node
)
myMonthly
:
Node
=
null
;
@
property
(
Node
)
myMonthly
:
Node
=
null
;
@
property
(
YXCollectionView
)
monthlyList
:
YXCollectionView
=
null
;
@
property
(
YXCollectionView
)
monthlyList
:
YXCollectionView
=
null
;
@
property
(
Node
)
monthlyNoOne
:
Node
=
null
;
private
_tab
:
TAB
=
TAB
.
DAILY
;
private
_tab
:
TAB
=
TAB
.
DAILY
;
set
tab
(
tab
:
TAB
)
{
set
tab
(
tab
:
TAB
)
{
...
@@ -49,11 +53,8 @@ export default class RankPanel extends Panel {
...
@@ -49,11 +53,8 @@ export default class RankPanel extends Panel {
this
.
monthly_b
.
active
=
isDaily
;
this
.
monthly_b
.
active
=
isDaily
;
this
.
listBg
.
setScale
(
isDaily
?
1
:
-
1
,
1
,
1
);
this
.
listBg
.
setScale
(
isDaily
?
1
:
-
1
,
1
,
1
);
this
.
myDaily
.
active
=
isDaily
;
this
.
daily
.
active
=
isDaily
;
this
.
dailyList
.
node
.
active
=
isDaily
;
this
.
monthly
.
active
=
!
isDaily
;
this
.
myMonthly
.
active
=
!
isDaily
;
this
.
monthlyList
.
node
.
active
=
!
isDaily
;
}
}
get
tab
()
{
get
tab
()
{
...
@@ -111,6 +112,9 @@ export default class RankPanel extends Panel {
...
@@ -111,6 +112,9 @@ export default class RankPanel extends Panel {
this
.
dailyData
=
data
.
rankList
;
this
.
dailyData
=
data
.
rankList
;
this
.
dailyList
.
reloadData
();
this
.
dailyList
.
reloadData
();
this
.
onCellDisplay
(
this
.
myDaily
,
data
.
myRank
);
this
.
onCellDisplay
(
this
.
myDaily
,
data
.
myRank
);
this
.
dailyList
.
node
.
active
=
this
.
dailyData
.
length
>
0
;
this
.
dailyNoOne
.
active
=
this
.
dailyData
.
length
<=
0
;
}
}
async
updateMonthly
()
{
async
updateMonthly
()
{
...
@@ -123,6 +127,9 @@ export default class RankPanel extends Panel {
...
@@ -123,6 +127,9 @@ export default class RankPanel extends Panel {
this
.
monthlyData
=
data
.
rankList
;
this
.
monthlyData
=
data
.
rankList
;
this
.
monthlyList
.
reloadData
();
this
.
monthlyList
.
reloadData
();
this
.
onCellDisplay
(
this
.
myMonthly
,
data
.
myRank
);
this
.
onCellDisplay
(
this
.
myMonthly
,
data
.
myRank
);
this
.
monthlyList
.
node
.
active
=
this
.
monthlyData
.
length
>
0
;
this
.
monthlyNoOne
.
active
=
this
.
monthlyData
.
length
<=
0
;
}
}
onDailyCellDisplay
=
(
cell
:
Node
,
indexPath
:
YXIndexPath
,
collectionView
:
YXCollectionView
)
=>
{
onDailyCellDisplay
=
(
cell
:
Node
,
indexPath
:
YXIndexPath
,
collectionView
:
YXCollectionView
)
=>
{
...
...
assets/resources/BackPanel/BackPanel.prefab
View file @
55b1a69a
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": -1
53.5
,
"x": -1
13.50000000000006
,
"y": 64.649,
"y": 64.649,
"z": 0
"z": 0
},
},
...
@@ -393,7 +393,7 @@
...
@@ -393,7 +393,7 @@
},
},
"_alignFlags": 9,
"_alignFlags": 9,
"_target": null,
"_target": null,
"_left": 1
15.00000000000006
,
"_left": 1
55
,
"_right": 0,
"_right": 0,
"_top": 711.851,
"_top": 711.851,
"_bottom": 0,
"_bottom": 0,
...
@@ -513,7 +513,7 @@
...
@@ -513,7 +513,7 @@
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 114.
5
,
"x": 114.
49999999999994
,
"y": 64.649,
"y": 64.649,
"z": 0
"z": 0
},
},
...
@@ -627,7 +627,7 @@
...
@@ -627,7 +627,7 @@
},
},
"_alignFlags": 9,
"_alignFlags": 9,
"_target": null,
"_target": null,
"_left": 383
.00000000000006
,
"_left": 383,
"_right": 0,
"_right": 0,
"_top": 711.851,
"_top": 711.851,
"_bottom": 0,
"_bottom": 0,
...
@@ -1028,9 +1028,15 @@
...
@@ -1028,9 +1028,15 @@
"__prefab": {
"__prefab": {
"__id__": 45
"__id__": 45
},
},
"closeBtn": null,
"closeBtn": {
"yes": null,
"__id__": 30
"no": null,
},
"yes": {
"__id__": 20
},
"no": {
"__id__": 10
},
"_id": ""
"_id": ""
},
},
{
{
...
...
assets/resources/BackPanel/png/BackPanel.pac
0 → 100644
View file @
55b1a69a
{
"__type__": "cc.SpriteAtlas"
}
assets/resources/BackPanel/png/BackPanel.pac.meta
0 → 100644
View file @
55b1a69a
{
"ver": "1.0.8",
"importer": "auto-atlas",
"imported": true,
"uuid": "9d1c8004-8175-4eea-ba16-6d210046633c",
"files": [
".json"
],
"subMetas": {},
"userData": {
"maxWidth": 2048,
"maxHeight": 2048,
"padding": 2,
"allowRotation": true,
"forceSquared": false,
"powerOfTwo": false,
"algorithm": "MaxRects",
"format": "png",
"quality": 80,
"contourBleed": true,
"paddingBleed": true,
"filterUnused": false,
"removeTextureInBundle": false,
"removeImageInBundle": false,
"removeSpriteAtlasInBundle": false,
"compressSettings": {},
"textureSetting": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
}
}
}
assets/resources/RankPanel/RankPanel.prefab
View file @
55b1a69a
This diff is collapsed.
Click to expand it.
assets/resources/RankPanel/png/front.png
View replaced file @
65a665ba
View file @
55b1a69a
31.3 KB
|
W:
|
H:
31.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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