This commit is contained in:
2025-07-17 17:18:21 +08:00
commit 1ffc1b5cf0
5309 changed files with 1150310 additions and 0 deletions
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "caf03bf8-6bda-4873-bef9-b79100181700",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "caf03bf8-6bda-4873-bef9-b79100181700@6c48a",
"displayName": "lv_25",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "caf03bf8-6bda-4873-bef9-b79100181700",
"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": "caf03bf8-6bda-4873-bef9-b79100181700@f9941",
"displayName": "lv_25",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 60,
"rawWidth": 200,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-30,
0,
100,
-30,
0,
-100,
30,
0,
100,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
200,
60,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-30,
0
],
"maxPos": [
100,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "caf03bf8-6bda-4873-bef9-b79100181700@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "caf03bf8-6bda-4873-bef9-b79100181700@6c48a"
}
}
@@ -0,0 +1,19 @@
//消息枚举
export enum InnerMsgCode {
GM_UI_Close, //关闭GM界面
SceneLayerBgUp, //刷新场景背景图
UI_Talk_Back, //从聊天界面返回
UI_BD_Sidebar, //抖音侧边栏状态刷新
UI_Socket_Timeout, //socket超时
UI_TalkStageUp, //更改聊天阶段
UI_ResartGame, //重新开始游戏
UI_ShowPrompt, //显示飘字提示
UI_Tj_huiyi_Pic, //显示回忆大图
Data_UserInfo_Up, //用户信息更新
Data_NpcTalkBack, //NPC对话返回
Data_LevelStarUp, //刷新关卡星级
Data_ChehuiUp, //撤回消息
Data_BDSidebarReward, //抖音侧边栏奖励领取消息
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4@6c48a",
"displayName": "lv_4",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4",
"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": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4@f9941",
"displayName": "lv_4",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 50,
"height": 50,
"rawWidth": 50,
"rawHeight": 50,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-25,
-25,
0,
25,
-25,
0,
-25,
25,
0,
25,
25,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
50,
50,
50,
0,
0,
50,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-25,
-25,
0
],
"maxPos": [
25,
25,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ff52e000-bfa2-4baa-bf6a-eac1df6b60d4@6c48a"
}
}
@@ -0,0 +1,79 @@
import { _decorator, Node, Sprite, Toggle } from 'cc';
import { GButton } from '../../Main/Common/GButton';
import AudioManager from '../../Main/Manager/AudioManager';
import Utils from '../../Main/Common/Utils';
import { ViewManager } from '../../Main/Manager/ViewManager';
import { InnerMsgCode } from '../../Main/Config/InnerMsgCode';
import li_BaseView from '../../Main/Common/li_BaseView';
import GameRootUI from '../../Main/Common/GameRootUI';
import ResManager from '../../Main/Manager/ResManager';
import PlayerDataManager from '../../Main/Manager/PlayerDataManager';
import { ByteDanceSDK } from '../../Main/Channel/bdSDK';
import SubManager from '../SubManager';
const { ccclass, property } = _decorator;
//抖音侧边栏弹窗
@ccclass('BDSidebar_UI')
export class BDSidebar_UI extends li_BaseView {
private _nodeTab: any = {};
private _data;
//----重写父类接口---------------------------------------
onLoadCT() {
this.registerListenner();
}
openUIDataCT(data: any): void {
this._data = data
}
registerListenner() {
// Utils.addInnerEL(InnerMsgCode.GM_UI_Close, this, this.resiveGMClose)
}
start() {
Utils.parseNode(this.node, this._nodeTab)
GButton.BandClick(this._nodeTab.bgmask, ()=>{
this.onClose()
}, this, null, null, null, false);
GButton.BandClick(this._nodeTab.btnClose, ()=>{
this.onClose()
}, this);
GButton.BandClick(this._nodeTab.btnGoto, ()=>{
this.onGotoClick()
}, this);
this.refreshState()
}
update(deltaTime: number) {
}
//刷新状态
refreshState() {
let stage = ByteDanceSDK.SidebarState
if (stage == 2) {
Utils.setString(this._nodeTab.labGoto, "领奖")
} else {
Utils.setString(this._nodeTab.labGoto, "前往侧边栏")
}
}
//点击前往侧边栏按钮
onGotoClick() {
let stage = ByteDanceSDK.SidebarState
if (stage == 2) {
SubManager.ShowPrompt("领取奖励")
} else {
ByteDanceSDK.GotoSidebar(()=>{
this.onClose()
})
}
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "19e2befc-8e1c-4b1e-89de-4f1164705727",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "19e2befc-8e1c-4b1e-89de-4f1164705727@6c48a",
"displayName": "shuqing_3_cg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "19e2befc-8e1c-4b1e-89de-4f1164705727",
"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": "19e2befc-8e1c-4b1e-89de-4f1164705727@f9941",
"displayName": "shuqing_3_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": "19e2befc-8e1c-4b1e-89de-4f1164705727@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "19e2befc-8e1c-4b1e-89de-4f1164705727@6c48a"
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "bbe23e4a-6f2f-406c-8f73-427fe84edf09",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "bbe23e4a-6f2f-406c-8f73-427fe84edf09@6c48a",
"displayName": "lv_26",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "bbe23e4a-6f2f-406c-8f73-427fe84edf09",
"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": "bbe23e4a-6f2f-406c-8f73-427fe84edf09@f9941",
"displayName": "lv_26",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 60,
"rawWidth": 200,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-30,
0,
100,
-30,
0,
-100,
30,
0,
100,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
200,
60,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-30,
0
],
"maxPos": [
100,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "bbe23e4a-6f2f-406c-8f73-427fe84edf09@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "bbe23e4a-6f2f-406c-8f73-427fe84edf09@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "09e01eca-b16c-4051-bbc2-a53ce45ec57d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "09e01eca-b16c-4051-bbc2-a53ce45ec57d@6c48a",
"displayName": "novaxia_laugh",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "09e01eca-b16c-4051-bbc2-a53ce45ec57d",
"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": "09e01eca-b16c-4051-bbc2-a53ce45ec57d@f9941",
"displayName": "novaxia_laugh",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -12,
"offsetY": -67.5,
"trimX": 164,
"trimY": 135,
"width": 573,
"height": 1054,
"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": [
-286.5,
-527,
0,
286.5,
-527,
0,
-286.5,
527,
0,
286.5,
527,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
164,
1054,
737,
1054,
164,
0,
737,
0
],
"nuv": [
0.1772972972972973,
0,
0.7967567567567567,
0,
0.1772972972972973,
0.8864592094196804,
0.7967567567567567,
0.8864592094196804
],
"minPos": [
-286.5,
-527,
0
],
"maxPos": [
286.5,
527,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "09e01eca-b16c-4051-bbc2-a53ce45ec57d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "09e01eca-b16c-4051-bbc2-a53ce45ec57d@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68@6c48a",
"displayName": "sylvia_default",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68",
"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": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68@f9941",
"displayName": "sylvia_default",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 28,
"offsetY": -35.5,
"trimX": 68,
"trimY": 71,
"width": 720,
"height": 958,
"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": [
-360,
-479,
0,
360,
-479,
0,
-360,
479,
0,
360,
479,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
68,
958,
788,
958,
68,
0,
788,
0
],
"nuv": [
0.085,
0,
0.985,
0,
0.085,
0.9310009718172984,
0.985,
0.9310009718172984
],
"minPos": [
-360,
-479,
0
],
"maxPos": [
360,
479,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4dff865c-39a6-4b7b-b2a3-0df8263bdb68@6c48a"
}
}