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
bf51acc7
Commit
bf51acc7
authored
May 28, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
4804bb09
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
9 additions
and
2064 deletions
+9
-2064
UnlockPanel.meta
assets/Bundles/UnlockPanel.meta
+0
-1
UnlockPanel.prefab
assets/Bundles/UnlockPanel/UnlockPanel.prefab
+0
-1372
UnlockPanel.prefab.meta
assets/Bundles/UnlockPanel/UnlockPanel.prefab.meta
+0
-13
png.meta
assets/Bundles/UnlockPanel/png.meta
+0
-1
UnlockPanel.pac
assets/Bundles/UnlockPanel/png/UnlockPanel.pac
+0
-3
UnlockPanel.pac.meta
assets/Bundles/UnlockPanel/png/UnlockPanel.pac.meta
+0
-1
bg.png
assets/Bundles/UnlockPanel/png/bg.png
+0
-0
bg.png.meta
assets/Bundles/UnlockPanel/png/bg.png.meta
+0
-134
光.png
assets/Bundles/UnlockPanel/png/光.png
+0
-0
光.png.meta
assets/Bundles/UnlockPanel/png/光.png.meta
+0
-134
取消.png
assets/Bundles/UnlockPanel/png/取消.png
+0
-0
取消.png.meta
assets/Bundles/UnlockPanel/png/取消.png.meta
+0
-134
确认消耗.png
assets/Bundles/UnlockPanel/png/确认消耗.png
+0
-0
确认消耗.png.meta
assets/Bundles/UnlockPanel/png/确认消耗.png.meta
+0
-134
立即分享.png
assets/Bundles/UnlockPanel/png/立即分享.png
+0
-0
立即分享.png.meta
assets/Bundles/UnlockPanel/png/立即分享.png.meta
+0
-134
RoleCarColorsSysterm.ts
assets/CarColorsGame/Scrips/Systerms/RoleCarColorsSysterm.ts
+2
-1
UnlockPanel.ts
assets/Scripts/Panels/UnlockPanel.ts
+7
-2
No files found.
assets/Bundles/UnlockPanel.meta
deleted
100644 → 0
View file @
4804bb09
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"d40d19f8-eda5-486f-9af3-e11806edcc3a","files":[],"subMetas":{},"userData":{"isBundle":true}}
assets/Bundles/UnlockPanel/UnlockPanel.prefab
deleted
100644 → 0
View file @
4804bb09
This diff is collapsed.
Click to expand it.
assets/Bundles/UnlockPanel/UnlockPanel.prefab.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b335eac1-a392-4aff-b25c-6c1294a6fcdc",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "UnlockPanel"
}
}
assets/Bundles/UnlockPanel/png.meta
deleted
100644 → 0
View file @
4804bb09
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"ccedc5b7-bad6-4c97-b91c-b655cde4301c","files":[],"subMetas":{},"userData":{}}
assets/Bundles/UnlockPanel/png/UnlockPanel.pac
deleted
100644 → 0
View file @
4804bb09
{
"__type__": "cc.SpriteAtlas"
}
assets/Bundles/UnlockPanel/png/UnlockPanel.pac.meta
deleted
100644 → 0
View file @
4804bb09
{"ver":"1.0.8","importer":"auto-atlas","imported":true,"uuid":"3ef6602e-d3de-43bd-baa1-34fe0a23c206","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":true,"removeImageInBundle":true,"removeSpriteAtlasInBundle":true,"compressSettings":{},"textureSetting":{"wrapModeS":"repeat","wrapModeT":"repeat","minfilter":"linear","magfilter":"linear","mipfilter":"none","anisotropy":0}}}
assets/Bundles/UnlockPanel/png/bg.png
deleted
100644 → 0
View file @
4804bb09
255 KB
assets/Bundles/UnlockPanel/png/bg.png.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1af47d8a-9ed9-475e-a53c-c581bee309b7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1af47d8a-9ed9-475e-a53c-c581bee309b7",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1af47d8a-9ed9-475e-a53c-c581bee309b7@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 639,
"rawWidth": 582,
"rawHeight": 639,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-319.5,
0,
291,
-319.5,
0,
-291,
319.5,
0,
291,
319.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
639,
582,
639,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-319.5,
0
],
"maxPos": [
291,
319.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a"
}
}
assets/Bundles/UnlockPanel/png/光.png
deleted
100644 → 0
View file @
4804bb09
69.1 KB
assets/Bundles/UnlockPanel/png/光.png.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "78ebacf5-5777-4854-acaf-4b16960ea6ed",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a",
"displayName": "光",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "78ebacf5-5777-4854-acaf-4b16960ea6ed",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "78ebacf5-5777-4854-acaf-4b16960ea6ed@f9941",
"displayName": "光",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 974,
"rawWidth": 750,
"rawHeight": 974,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-375,
-487,
0,
375,
-487,
0,
-375,
487,
0,
375,
487,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
974,
750,
974,
0,
0,
750,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-375,
-487,
0
],
"maxPos": [
375,
487,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a"
}
}
assets/Bundles/UnlockPanel/png/取消.png
deleted
100644 → 0
View file @
4804bb09
5.63 KB
assets/Bundles/UnlockPanel/png/取消.png.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "09964a76-6b3b-44ed-b6af-5a6879fb8539",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a",
"displayName": "取消",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "09964a76-6b3b-44ed-b6af-5a6879fb8539",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "09964a76-6b3b-44ed-b6af-5a6879fb8539@f9941",
"displayName": "取消",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 174,
"height": 77,
"rawWidth": 174,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-87,
-38.5,
0,
87,
-38.5,
0,
-87,
38.5,
0,
87,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
174,
77,
0,
0,
174,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-87,
-38.5,
0
],
"maxPos": [
87,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a"
}
}
assets/Bundles/UnlockPanel/png/确认消耗.png
deleted
100644 → 0
View file @
4804bb09
14.7 KB
assets/Bundles/UnlockPanel/png/确认消耗.png.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "07fa2f84-3ba4-48b4-b091-c039fa89b832",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a",
"displayName": "确认消耗",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "07fa2f84-3ba4-48b4-b091-c039fa89b832",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "07fa2f84-3ba4-48b4-b091-c039fa89b832@f9941",
"displayName": "确认消耗",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 234,
"height": 77,
"rawWidth": 234,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-117,
-38.5,
0,
117,
-38.5,
0,
-117,
38.5,
0,
117,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
234,
77,
0,
0,
234,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-117,
-38.5,
0
],
"maxPos": [
117,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a"
}
}
assets/Bundles/UnlockPanel/png/立即分享.png
deleted
100644 → 0
View file @
4804bb09
13.7 KB
assets/Bundles/UnlockPanel/png/立即分享.png.meta
deleted
100644 → 0
View file @
4804bb09
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a",
"displayName": "立即分享",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@f9941",
"displayName": "立即分享",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 234,
"height": 77,
"rawWidth": 234,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-117,
-38.5,
0,
117,
-38.5,
0,
-117,
38.5,
0,
117,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
234,
77,
0,
0,
234,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-117,
-38.5,
0
],
"maxPos": [
117,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a"
}
}
assets/CarColorsGame/Scrips/Systerms/RoleCarColorsSysterm.ts
View file @
bf51acc7
...
@@ -19,6 +19,7 @@ import { CarCarColorsComponent } from '../Components/CarCarColorsComponent';
...
@@ -19,6 +19,7 @@ import { CarCarColorsComponent } from '../Components/CarCarColorsComponent';
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
{
showPanel
}
from
"db://assets/core/Module/UIFast"
;
import
{
showPanel
}
from
"db://assets/core/Module/UIFast"
;
import
{
RevivePage
}
from
"db://assets/Scripts/Panels/RevivePage"
;
import
{
RevivePage
}
from
"db://assets/Scripts/Panels/RevivePage"
;
import
{
ReviewPanel
}
from
"db://assets/Scripts/Panels/ReviewPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -218,7 +219,7 @@ export class RoleCarColorsSysterm extends Component {
...
@@ -218,7 +219,7 @@ export class RoleCarColorsSysterm extends Component {
// 游戏结束判定
// 游戏结束判定
if
(
!
isEmpty
)
{
if
(
!
isEmpty
)
{
this
.
isGaming
=
false
this
.
isGaming
=
false
showPanel
(
Revi
vePage
);
showPanel
(
Revi
ewPanel
);
}
}
return
return
}
}
...
...
assets/Scripts/Panels/UnlockPanel.ts
View file @
bf51acc7
import
{
_decorator
,
Node
,
Sprite
,
SpriteFrame
}
from
'cc'
;
import
{
_decorator
,
Label
,
Node
,
Sprite
,
SpriteFrame
}
from
'cc'
;
import
{
CarColorsGlobalInstance
}
from
'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance'
;
import
{
CarColorsGlobalInstance
}
from
'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance'
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
...
@@ -10,11 +10,12 @@ const { ccclass, property } = _decorator;
...
@@ -10,11 +10,12 @@ const { ccclass, property } = _decorator;
@
ccclass
(
'UnlockPanel'
)
@
ccclass
(
'UnlockPanel'
)
export
class
UnlockPanel
extends
Panel
{
export
class
UnlockPanel
extends
Panel
{
static
skin
:
string
=
"UnlockPanel"
;
static
skin
:
string
=
"UnlockPanel"
;
static
bundle
:
string
=
"
Unlock
Panel"
;
static
bundle
:
string
=
"
Game
Panel"
;
@
property
(
Node
)
okBtn
:
Node
=
null
;
@
property
(
Node
)
okBtn
:
Node
=
null
;
@
property
(
Node
)
cancelBtn
:
Node
=
null
;
@
property
(
Node
)
cancelBtn
:
Node
=
null
;
@
property
(
Node
)
closeBtn
:
Node
=
null
;
@
property
(
Node
)
closeBtn
:
Node
=
null
;
@
property
(
Label
)
tip
:
Label
=
null
;
@
property
(
SpriteFrame
)
shareSf
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
shareSf
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
exchangeSf
:
SpriteFrame
=
null
;
@
property
(
SpriteFrame
)
exchangeSf
:
SpriteFrame
=
null
;
...
@@ -29,6 +30,10 @@ export class UnlockPanel extends Panel {
...
@@ -29,6 +30,10 @@ export class UnlockPanel extends Panel {
start
():
void
{
start
():
void
{
const
{
type
}
=
this
.
data
;
const
{
type
}
=
this
.
data
;
this
.
okBtn
.
getComponent
(
Sprite
).
spriteFrame
=
type
==
"share"
?
this
.
shareSf
:
this
.
exchangeSf
;
this
.
okBtn
.
getComponent
(
Sprite
).
spriteFrame
=
type
==
"share"
?
this
.
shareSf
:
this
.
exchangeSf
;
// 消耗x积分 即可解锁1个车位
// 消耗x青果 即可解锁1个车位
// 分享好友 即可解锁1个车位
}
}
hidePanel
()
{
hidePanel
()
{
...
...
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