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
7acf7e4c
Commit
7acf7e4c
authored
May 29, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
45d45205
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1622 additions
and
0 deletions
+1622
-0
PrizePanel.prefab
assets/Bundles/GamePanel/PrizePanel.prefab
+1298
-0
PrizePanel.prefab.meta
assets/Bundles/GamePanel/PrizePanel.prefab.meta
+13
-0
prizeBg.png
assets/Bundles/GamePanel/png/prizeBg.png
+0
-0
prizeBg.png.meta
assets/Bundles/GamePanel/png/prizeBg.png.meta
+134
-0
开启宝箱.png
assets/Bundles/GamePanel/png/开启宝箱.png
+0
-0
开启宝箱.png.meta
assets/Bundles/GamePanel/png/开启宝箱.png.meta
+134
-0
PrizePanel.ts
assets/Scripts/Panels/PrizePanel.ts
+42
-0
PrizePanel.ts.meta
assets/Scripts/Panels/PrizePanel.ts.meta
+1
-0
No files found.
assets/Bundles/GamePanel/PrizePanel.prefab
0 → 100644
View file @
7acf7e4c
This diff is collapsed.
Click to expand it.
assets/Bundles/GamePanel/PrizePanel.prefab.meta
0 → 100644
View file @
7acf7e4c
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "57b5028e-63ea-48a8-bc02-a67525202f52",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "PrizePanel"
}
}
assets/Bundles/GamePanel/png/prizeBg.png
0 → 100644
View file @
7acf7e4c
221 KB
assets/Bundles/GamePanel/png/prizeBg.png.meta
0 → 100644
View file @
7acf7e4c
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8e597a70-2fbd-4636-a100-6d33455e3ea2",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a",
"displayName": "prizeBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8e597a70-2fbd-4636-a100-6d33455e3ea2",
"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": "8e597a70-2fbd-4636-a100-6d33455e3ea2@f9941",
"displayName": "prizeBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 619,
"rawWidth": 582,
"rawHeight": 619,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-309.5,
0,
291,
-309.5,
0,
-291,
309.5,
0,
291,
309.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
619,
582,
619,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-309.5,
0
],
"maxPos": [
291,
309.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a"
}
}
assets/Bundles/GamePanel/png/开启宝箱.png
0 → 100644
View file @
7acf7e4c
15.9 KB
assets/Bundles/GamePanel/png/开启宝箱.png.meta
0 → 100644
View file @
7acf7e4c
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "7baf6c34-b3fb-4720-8811-45727ded4756",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a",
"displayName": "开启宝箱",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "7baf6c34-b3fb-4720-8811-45727ded4756",
"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": "7baf6c34-b3fb-4720-8811-45727ded4756@f9941",
"displayName": "开启宝箱",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 294,
"height": 77,
"rawWidth": 294,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-147,
-38.5,
0,
147,
-38.5,
0,
-147,
38.5,
0,
147,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
294,
77,
0,
0,
294,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-147,
-38.5,
0
],
"maxPos": [
147,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a"
}
}
assets/Scripts/Panels/PrizePanel.ts
0 → 100644
View file @
7acf7e4c
import
{
_decorator
,
Button
,
Label
,
Node
,
Sprite
,
SpriteFrame
}
from
'cc'
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'PrizePanel'
)
export
class
PrizePanel
extends
Panel
{
static
skin
:
string
=
"PrizePanel"
;
static
bundle
:
string
=
"GamePanel"
;
@
property
(
Node
)
okBtn
:
Node
=
null
;
@
property
(
Node
)
closeBtn
:
Node
=
null
;
@
property
(
Label
)
levelNum
:
Label
=
null
;
@
property
(
Label
)
boxNum
:
Label
=
null
;
onLoad
()
{
super
.
onLoad
();
this
.
okBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
ok
,
this
);
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
cancel
,
this
);
}
start
():
void
{
}
cancel
=
()
=>
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
button_ok
);
this
.
hidePanel
();
}
ok
=
()
=>
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
button_ok
);
this
.
hidePanel
();
changeScene
(
HomeScene
);
}
}
assets/Scripts/Panels/PrizePanel.ts.meta
0 → 100644
View file @
7acf7e4c
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"8be1d565-3d12-4c16-a6ac-e5092994e62b","files":[],"subMetas":{},"userData":{}}
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