This commit is contained in:
2025-07-17 17:18:21 +08:00
commit 1ffc1b5cf0
5309 changed files with 1150310 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 KiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe@6c48a",
"displayName": "may_maria_default",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe",
"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": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe@f9941",
"displayName": "may_maria_default",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 4.5,
"offsetY": -2,
"trimX": 33,
"trimY": 4,
"width": 743,
"height": 1025,
"rawWidth": 800,
"rawHeight": 1029,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-371.5,
-512.5,
0,
371.5,
-512.5,
0,
-371.5,
512.5,
0,
371.5,
512.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
33,
1025,
776,
1025,
33,
0,
776,
0
],
"nuv": [
0.04125,
0,
0.97,
0,
0.04125,
0.9961127308066083,
0.97,
0.9961127308066083
],
"minPos": [
-371.5,
-512.5,
0
],
"maxPos": [
371.5,
512.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "9ccc8ad0-7342-44f7-a963-b3aea0b0bcfe@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a7919553-ef8c-43e2-9e83-63d955f0780b",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a7919553-ef8c-43e2-9e83-63d955f0780b@6c48a",
"displayName": "adelle_beaumont_1_cg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a7919553-ef8c-43e2-9e83-63d955f0780b",
"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": "a7919553-ef8c-43e2-9e83-63d955f0780b@f9941",
"displayName": "adelle_beaumont_1_cg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 996,
"height": 1280,
"rawWidth": 996,
"rawHeight": 1280,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-498,
-640,
0,
498,
-640,
0,
-498,
640,
0,
498,
640,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1280,
996,
1280,
0,
0,
996,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-498,
-640,
0
],
"maxPos": [
498,
640,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a7919553-ef8c-43e2-9e83-63d955f0780b@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a7919553-ef8c-43e2-9e83-63d955f0780b@6c48a"
}
}
@@ -0,0 +1,126 @@
import { _decorator, Component, Node, tween, UIOpacity, Vec3, VideoPlayer } from 'cc';
import Utils from '../Common/Utils';
import { VideoRoleType } from '../Common/GlobalValue';
const { ccclass, property } = _decorator;
/**背景视频 */
@ccclass('BgVideo')
export class BgVideo extends Component {
private vp: VideoPlayer = null!;
private _isPlaying: boolean = false;
public get isPlaying(): boolean {
return this._isPlaying;
}
private _vtype: VideoRoleType = VideoRoleType.None;
public get vtype(): VideoRoleType {
return this._vtype;
}
public set vtype(v: VideoRoleType) {
this._vtype = v;
}
private _remoteUrl: string = '';
public set remoteUrl(url: string) {
this._remoteUrl = url;
this.vp.remoteURL = url;
}
private _cbReady: Function | undefined = null;
public set cbReady(cb: Function | undefined) {
this._cbReady = cb;
}
private _cbEnd: Function | undefined = null;
public set cbEnd(cb: Function | undefined) {
this._cbEnd = cb;
}
protected onLoad(): void {
this.vp = this.node.getComponent(VideoPlayer)!;
this.moveOut();
}
start() {
}
update(deltaTime: number) {
// if (this._isPlaying && this.vtype == VideoRoleType.Idle) {
// console.log("BgVideo 主视频时长:", this.vp.currentTime, this.vp.duration);
// }
}
/**播放视频 */
playVideo(remoteUrl:string, loop:boolean = false, autoIn:boolean = true) {
console.log("BgVideo 播放视频:", this.node.position)
this.vp.remoteURL = remoteUrl
this.vp.loop = loop
this.vp.stop()
this.vp.play()
this._isPlaying = true
if (autoIn) {
this.moveIn()
}
}
/**暂停视频 */
pauseVideo() {
console.log("BgVideo 暂停视频:", this._vtype)
this.vp.pause()
}
/**继续播放 */
replayVideo() {
this.vp.play()
}
moveIn() {
this.node.position = new Vec3(0, 0, 0)
// //测试代码
// if (this._vtype == VideoRoleType.emo) {
// this.node.position = new Vec3(0, -500, 0)
// }
}
moveOut() {
this.node.position = new Vec3(1000, 1000, 0)
}
/**回收视频 */
recycleVideo() {
this.vp.stop()
this.vp.remoteURL = ""
this._isPlaying = false
this.moveOut()
// this.node.destroy()
}
onVideoEvent(event1:any, event2:any) {
// console.log("bgvideo BgVideo组件 event", event2, this._vtype)
if (event2 == "ready-to-play") {
// if (!this._emoShow) {
// this._emoShow = true;
// this.removeEmoAudioNext()
// }
// this.setEmoReadyAudio(this.emo1)
if (this._cbReady) {
this._cbReady()
}
} else if (event2 == "completed") {
if (this._cbEnd) {
this._cbEnd()
}
} else if (event2 == "playing") {
if (this._vtype == VideoRoleType.Idle) {
if (this._cbEnd) { //主视频是循环播放的,没有completed事件,所以用playing事件来处理
this._cbEnd()
}
}
}
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "467f71a3-d734-40c7-84c7-8cdb61e10d3d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "467f71a3-d734-40c7-84c7-8cdb61e10d3d@6c48a",
"displayName": "lofy_avatar",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "467f71a3-d734-40c7-84c7-8cdb61e10d3d",
"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": "467f71a3-d734-40c7-84c7-8cdb61e10d3d@f9941",
"displayName": "lofy_avatar",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-40,
-40,
0,
40,
-40,
0,
-40,
40,
0,
40,
40,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
80,
80,
80,
0,
0,
80,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-40,
-40,
0
],
"maxPos": [
40,
40,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "467f71a3-d734-40c7-84c7-8cdb61e10d3d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "467f71a3-d734-40c7-84c7-8cdb61e10d3d@6c48a"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 992 KiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1c9a76b0-9dae-474c-a7f2-490650b477bf",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1c9a76b0-9dae-474c-a7f2-490650b477bf@6c48a",
"displayName": "fuyiyi_laugh",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1c9a76b0-9dae-474c-a7f2-490650b477bf",
"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": "1c9a76b0-9dae-474c-a7f2-490650b477bf@f9941",
"displayName": "fuyiyi_laugh",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "none",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 925,
"height": 1189,
"rawWidth": 925,
"rawHeight": 1189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-462.5,
-594.5,
0,
462.5,
-594.5,
0,
-462.5,
594.5,
0,
462.5,
594.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1189,
925,
1189,
0,
0,
925,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-462.5,
-594.5,
0
],
"maxPos": [
462.5,
594.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1c9a76b0-9dae-474c-a7f2-490650b477bf@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1c9a76b0-9dae-474c-a7f2-490650b477bf@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "df552ec4-aaf6-47ac-af8a-b19126641408",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "df552ec4-aaf6-47ac-af8a-b19126641408@6c48a",
"displayName": "jialin_default",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "df552ec4-aaf6-47ac-af8a-b19126641408",
"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": "df552ec4-aaf6-47ac-af8a-b19126641408@f9941",
"displayName": "jialin_default",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "none",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 925,
"height": 1189,
"rawWidth": 925,
"rawHeight": 1189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-462.5,
-594.5,
0,
462.5,
-594.5,
0,
-462.5,
594.5,
0,
462.5,
594.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1189,
925,
1189,
0,
0,
925,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-462.5,
-594.5,
0
],
"maxPos": [
462.5,
594.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "df552ec4-aaf6-47ac-af8a-b19126641408@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "df552ec4-aaf6-47ac-af8a-b19126641408@6c48a"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB