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: 3.4 KiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "49517f85-d52b-45ee-bb78-d045b4639fd4",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "49517f85-d52b-45ee-bb78-d045b4639fd4@6c48a",
"displayName": "pei_2_cg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "49517f85-d52b-45ee-bb78-d045b4639fd4",
"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": "49517f85-d52b-45ee-bb78-d045b4639fd4@f9941",
"displayName": "pei_2_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": "49517f85-d52b-45ee-bb78-d045b4639fd4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "49517f85-d52b-45ee-bb78-d045b4639fd4@6c48a"
}
}
@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "fd7f2792-e733-4bcd-8f9c-d27e8410d28c",
"files": [],
"subMetas": {},
"userData": {}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7@6c48a",
"displayName": "zjm_11",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7",
"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": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7@f9941",
"displayName": "zjm_11",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 79,
"height": 26,
"rawWidth": 80,
"rawHeight": 28,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-39.5,
-13,
0,
39.5,
-13,
0,
-39.5,
13,
0,
39.5,
13,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
27,
79,
27,
0,
1,
79,
1
],
"nuv": [
0,
0.03571428571428571,
0.9875,
0.03571428571428571,
0,
0.9642857142857143,
0.9875,
0.9642857142857143
],
"minPos": [
-39.5,
-13,
0
],
"maxPos": [
39.5,
13,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8a67bdc7-ea43-4a6a-b54e-29fce141e0c7@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "764dbb0e-685e-41c7-aa66-1e018c94d37d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "764dbb0e-685e-41c7-aa66-1e018c94d37d@6c48a",
"displayName": "lofy_portrait",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "764dbb0e-685e-41c7-aa66-1e018c94d37d",
"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": "764dbb0e-685e-41c7-aa66-1e018c94d37d@f9941",
"displayName": "lofy_portrait",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -3.5,
"trimX": 0,
"trimY": 7,
"width": 276,
"height": 357,
"rawWidth": 276,
"rawHeight": 364,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-138,
-178.5,
0,
138,
-178.5,
0,
-138,
178.5,
0,
138,
178.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
357,
276,
357,
0,
0,
276,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9807692307692307,
1,
0.9807692307692307
],
"minPos": [
-138,
-178.5,
0
],
"maxPos": [
138,
178.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "764dbb0e-685e-41c7-aa66-1e018c94d37d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "764dbb0e-685e-41c7-aa66-1e018c94d37d@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a4eff951-e472-4f61-9d3c-1b7856ef5906",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a4eff951-e472-4f61-9d3c-1b7856ef5906@6c48a",
"displayName": "yuka_default",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a4eff951-e472-4f61-9d3c-1b7856ef5906",
"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": "a4eff951-e472-4f61-9d3c-1b7856ef5906@f9941",
"displayName": "yuka_default",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 8.5,
"offsetY": -17,
"trimX": 57,
"trimY": 34,
"width": 703,
"height": 995,
"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": [
-351.5,
-497.5,
0,
351.5,
-497.5,
0,
-351.5,
497.5,
0,
351.5,
497.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
57,
995,
760,
995,
57,
0,
760,
0
],
"nuv": [
0.07125,
0,
0.95,
0,
0.07125,
0.966958211856171,
0.95,
0.966958211856171
],
"minPos": [
-351.5,
-497.5,
0
],
"maxPos": [
351.5,
497.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a4eff951-e472-4f61-9d3c-1b7856ef5906@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a4eff951-e472-4f61-9d3c-1b7856ef5906@6c48a"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a8e31751-1da5-40a7-af85-504e0123dc47",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a8e31751-1da5-40a7-af85-504e0123dc47@6c48a",
"displayName": "guihua_avatar",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a8e31751-1da5-40a7-af85-504e0123dc47",
"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": "a8e31751-1da5-40a7-af85-504e0123dc47@f9941",
"displayName": "guihua_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": "a8e31751-1da5-40a7-af85-504e0123dc47@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a8e31751-1da5-40a7-af85-504e0123dc47@6c48a"
}
}
@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a8b75d49-b05b-4843-b98c-a49566b57c05",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a8b75d49-b05b-4843-b98c-a49566b57c05@6c48a",
"displayName": "novaxia_0_cg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a8b75d49-b05b-4843-b98c-a49566b57c05",
"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": "a8b75d49-b05b-4843-b98c-a49566b57c05@f9941",
"displayName": "novaxia_0_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": "a8b75d49-b05b-4843-b98c-a49566b57c05@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a8b75d49-b05b-4843-b98c-a49566b57c05@6c48a"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 693 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd@6c48a",
"displayName": "adelle_beaumont_default",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd",
"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": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd@f9941",
"displayName": "adelle_beaumont_default",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": -20,
"trimX": 51,
"trimY": 40,
"width": 691,
"height": 989,
"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": [
-345.5,
-494.5,
0,
345.5,
-494.5,
0,
-345.5,
494.5,
0,
345.5,
494.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
51,
989,
742,
989,
51,
0,
742,
0
],
"nuv": [
0.06375,
0,
0.9275,
0,
0.06375,
0.9611273080660836,
0.9275,
0.9611273080660836
],
"minPos": [
-345.5,
-494.5,
0
],
"maxPos": [
345.5,
494.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8c27ad68-4b02-4f83-b8b3-2907fb86d4dd@6c48a"
}
}
@@ -0,0 +1,178 @@
import { _decorator, AudioClip, Button, Component, ImageAsset, JsonAsset, Label, Node, Prefab, ProgressBar, Sprite, SpriteFrame } from 'cc';
import { GButton } from '../../Main/Common/GButton';
import ResManager from '../../Main/Manager/ResManager';
import Resource from '../../Main/Config/Resource';
import { SDKManager } from '../../Main/Channel/SDKManager';
import HttpUnit from '../../Main/Common/HttpUnit';
import GlobalValue from '../../Main/Common/GlobalValue';
import Utils from '../../Main/Common/Utils';
const { ccclass, property } = _decorator;
@ccclass('PreloadUI')
export class PreloadUI extends Component {
private checkFinish = true; //检查完成
private preloadFinish = false; //资源加载完成
private loginFinish = false; //登录完成
private jinduBar: Node = null;
private jinduFilled: Sprite = null;
private LabProgress: Label = null;
private btnLogin: Sprite = null; //登录按钮
start() {
this.jinduBar = this.node.getChildByName("jinduBar");
this.jinduFilled = this.jinduBar.getChildByName("jinduFilled").getComponent(Sprite);
this.LabProgress = this.node.getChildByName("LabProgress").getComponent(Label);
this.btnLogin = this.node.getChildByName("btnLogin").getComponent(Sprite);
//适配背景图
let BG = this.node.getChildByName("BG");
Utils.adjustBgPixelRatio(BG, 1)
this.jinduFilled.fillRange = 0;
this.btnLogin.node.active = false;
this.preloadFiles()
}
update(deltaTime: number) {
if (this.checkFinish) {
if (this.preloadFinish && this.loginFinish) {
this.checkFinish = false
this.enterGame()
}
}
}
//预加载文件
preloadFiles() {
let preloadTab = [
{path:"Music/music_interface", bundleName: "Audio", ftype: AudioClip},
{path:"bg/mengli_stage_bg", bundleName: "Raw", ftype: ImageAsset},
{path:"cg0/mengli_0_cg", bundleName: "Raw", ftype: ImageAsset},
{path:"cg1/mengli_1_cg", bundleName: "Raw", ftype: ImageAsset},
{path:"cg2/mengli_2_cg", bundleName: "Raw", ftype: ImageAsset},
{path:"cg3/mengli_3_cg", bundleName: "Raw", ftype: ImageAsset},
{path:"emo_1/mengli_shy", bundleName: "Raw", ftype: ImageAsset},
{path:"emo_2/mengli_laugh", bundleName: "Raw", ftype: ImageAsset},
{path:"emo_3/mengli_disgust", bundleName: "Raw", ftype: ImageAsset},
{path:"role/mengli_default", bundleName: "Raw", ftype: ImageAsset},
{path:"Zjm/raw1", bundleName: "Raw", ftype: ImageAsset},
{path:"touming", bundleName: "common", ftype: ImageAsset},
// {path:"chanpin_1_0", bundleName: "daoju", ftype: ImageAsset}, //有合图加载失败
{path:"zjm_1", bundleName: "Zhujiemian", ftype: ImageAsset},
{path:"UI/GM_UI", bundleName: "PB", ftype: Prefab},
{path:"commonGlobal", bundleName: "DataTable", ftype: JsonAsset},
];
let num_prefab = 0; //已加载数量
let num_succeed = 0;//加载成功数量
let preloadFunc = () => {
if (num_prefab < preloadTab.length) {
let cfg = preloadTab[num_prefab]
ResManager.I.preLoadSubpackageFile(cfg.path, cfg.bundleName, cfg.ftype, (ret) => {
num_prefab++;
num_succeed++;
let percent = 0.45 * (num_prefab / preloadTab.length)
this.showLoadProgress(0.55 + percent);
console.log("加载成功:", cfg.path);
preloadFunc();
}, (err)=>{
num_prefab++;
console.log("加载失败:", err);
});
} else {
if (num_succeed >= num_prefab) {
this.loadDataTable();
}
}
}
preloadFunc();
}
//加载配置表
loadDataTable(){
let dataArr = [
"commonGlobal",
// "levelHole",
"Music",
"Sound",
]
//配置表使用方法: let cfgs = Resource.getConfig("Sound")
let num_prefab = 0;
let preloadFunc = () => {
if (num_prefab < dataArr.length) {
let cfgname = dataArr[num_prefab]
ResManager.I.loadSubpackageDataTable(cfgname, (ret: JsonAsset) => {
num_prefab++;
Resource.addSubJsonConfig(cfgname, ret.json)
preloadFunc();
});
} else {
this.preloadFinish = true;
this.onLogin();
}
}
preloadFunc();
}
//显示加载进度
showLoadProgress(percent) {
this.jinduFilled.fillRange = percent;
}
//登录
onLogin() {
//初始化SDK信息
SDKManager.init(() => {
//检测是否有授权,有授权直接登录,没有授权就先进主界面,到主界面获取权限
SDKManager.checkAutoSetting("userInfo", (ishave) => {
if (ishave) {
console.log("有授权,直接登录")
HttpUnit.ins.login((loginData) => {
this.loginFinish = true
})
} else {
console.log("没有授权,等待授权后登录")
// this.loginFinish = true
this.jinduBar.active = false
this.LabProgress.node.active = false
//登录按钮
this.btnLogin.node.active = true
let loginPath = ""
if (SDKManager.isWenxin()) {
loginPath = "login1"
} else if (SDKManager.isByteDance()) {
loginPath = "login2"
} else if (SDKManager.isKuaishou()) {
loginPath = "login3"
}
ResManager.I.changeResourceSpriteFrame(this.btnLogin, loginPath)
HttpUnit.ins.login((loginData) => {
this.loginFinish = true
})
}
})
})
}
enterGame() {
let islogin = HttpUnit.IsLogin();
console.log("进入游戏,登录状态:", islogin);
this.jinduBar.active = false
this.LabProgress.node.active = false
this.btnLogin.node.active = false
if (islogin) {
} else {
//没登录成功,先进主界面,在主界面里进行登录
}
ResManager.I.goMainScene(); //进入下一个场景
// ResManager.I.goCustomScene("Test2DScene"); //进入自定义场景
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "aa41946f-8bf1-4284-87b5-518d8e1028be",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "aa41946f-8bf1-4284-87b5-518d8e1028be@6c48a",
"displayName": "zjm_25",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "aa41946f-8bf1-4284-87b5-518d8e1028be",
"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": "aa41946f-8bf1-4284-87b5-518d8e1028be@f9941",
"displayName": "zjm_25",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 226,
"height": 46,
"rawWidth": 238,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-113,
-23,
0,
113,
-23,
0,
-113,
23,
0,
113,
23,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
46,
226,
46,
0,
0,
226,
0
],
"nuv": [
0,
0,
0.9495798319327731,
0,
0,
1,
0.9495798319327731,
1
],
"minPos": [
-113,
-23,
0
],
"maxPos": [
113,
23,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "aa41946f-8bf1-4284-87b5-518d8e1028be@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "aa41946f-8bf1-4284-87b5-518d8e1028be@6c48a"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB