更新 获胜里面10连胜图片资源

This commit is contained in:
WIN-GKKD951VVMJ\Administrator 2026-09-18 14:02:07 +08:00
parent 320517f94e
commit 7cd1ee331e
34 changed files with 1408 additions and 724 deletions

View File

@ -7295,11 +7295,12 @@ export default class MapConroler extends cc.Component {
const winStreak = winRoot && winRoot.getChildByName(cc.fx.GameConfig.isRainbowWinStreak() ? "WinStreak2" : "WinStreak");
if (!winStreak) return;
if (cc.fx.GameConfig.isRainbowWinStreak()) {
const count = Math.min(10, cc.fx.GameConfig.GM_INFO.winStreak);
const count = Math.max(0, Math.min(10, cc.fx.GameConfig.GM_INFO.winStreak));
winStreak.getChildByName("hammer").active = false;
winStreak.getChildByName("progress").getComponent(cc.Sprite).fillRange = count / 10;
winStreak.getChildByName("open").active = count >= 10;
this.numberToImageNodes2(count, 10, 5, "", winStreak.getChildByName("number"), true);
this.winPanel.initRainbowWinStreak(count);
return;
}
winStreak.getChildByName("open").active = false;

View File

@ -2591,6 +2591,7 @@ var GameTool = {
console.error(`加载spine资源失败: ${spinePath}`, err);
return;
}
if (!cc.isValid(iconNode, true)) return;
// 检查节点是否已经有spine组件
let spineComponent = iconNode.getComponent(sp.Skeleton);

File diff suppressed because it is too large Load Diff

View File

@ -10,11 +10,63 @@ interface WinPanelActions {
@ccclass
export default class WinPanel extends cc.Component {
private actions: WinPanelActions = null;
private rainbowStars: cc.Node[] = [];
private starTime = 0;
private avatarFrame: cc.SpriteFrame = null;
bind(actions: WinPanelActions) {
this.actions = actions || {};
}
initRainbowWinStreak(count: number) {
const streak = this.node.getChildByName("WinStreak2");
if (!streak) return;
count = Math.max(0, Math.min(10, count));
const reward = streak.getChildByName("reward");
const avatar = streak.getChildByName("avatar");
const milestone = count > 0 ? streak.getChildByName("hammer").getChildByName(String(count))
: streak.getChildByName("progress");
if (milestone) {
const position = milestone.convertToWorldSpaceAR(cc.v2());
[reward, avatar].forEach(node => {
if (node) node.x = node.parent.convertToNodeSpaceAR(position).x;
});
}
this.rainbowStars = reward ? reward.children.filter(node => node.name === "star") : [];
this.starTime = 0;
this.update(0);
const mask = avatar && avatar.getChildByName("mask");
if (!mask) return;
const icon = mask.getChildByName("icon");
const spine = mask.getChildByName("sp");
const selected = cc.fx.GameConfig.GM_INFO.useravatarIcon || "icon_0";
const remote = selected.length > 10;
icon.active = remote;
spine.active = !remote;
if (remote) {
icon.getComponent(cc.Sprite).spriteFrame = null;
cc.assetManager.loadRemote(selected, { ext: '.png' }, (err, texture: cc.Texture2D) => {
if (err || !texture || !cc.isValid(this, true) || !cc.isValid(icon, true)
|| cc.fx.GameConfig.GM_INFO.useravatarIcon !== selected) return;
if (!this.avatarFrame) this.avatarFrame = new cc.SpriteFrame(texture);
else this.avatarFrame.setTexture(texture);
icon.getComponent(cc.Sprite).spriteFrame = this.avatarFrame;
});
} else {
cc.fx.GameTool.loadSpineSimple(spine, cc.fx.GameTool.getActionName(selected));
}
}
update(dt: number) {
if (!this.rainbowStars.length) return;
this.starTime = (this.starTime + dt) % 1.8;
this.rainbowStars.forEach((star, index) => {
const phase = (this.starTime / 1.8 - index / this.rainbowStars.length) * Math.PI * 2;
star.opacity = 40 + (Math.cos(phase) + 1) * 107.5;
});
}
setSpecialTipsVisible(visible: boolean) {
const specialTips = this.node.getChildByName("specialTips");
if (specialTips) {
@ -60,6 +112,7 @@ export default class WinPanel extends cc.Component {
}
onDestroy() {
if (this.avatarFrame) this.avatarFrame.destroy();
this.actions = null;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "f3805f89-9e23-4c41-b3ca-050af73d4219",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"0": {
"ver": "1.0.6",
"uuid": "b3714d8c-d213-4379-91e1-f370e284be5a",
"importer": "sprite-frame",
"rawTextureUuid": "f3805f89-9e23-4c41-b3ca-050af73d4219",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 35,
"height": 44,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "4e99ab88-5530-41af-83cf-82cda085e440",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"1": {
"ver": "1.0.6",
"uuid": "3e533b97-626b-4c94-a6f7-e31e9a356a70",
"importer": "sprite-frame",
"rawTextureUuid": "4e99ab88-5530-41af-83cf-82cda085e440",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 5,
"trimY": 2,
"width": 24,
"height": 42,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "77e99e83-70aa-4390-aff3-c160db29bdea",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"2": {
"ver": "1.0.6",
"uuid": "e1d1f0a1-007e-4a71-b8a7-86a97e7f70e7",
"importer": "sprite-frame",
"rawTextureUuid": "77e99e83-70aa-4390-aff3-c160db29bdea",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 32,
"height": 43,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "5b4887ef-625f-455a-9a08-9579c48de5c7",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"3": {
"ver": "1.0.6",
"uuid": "f5f8ad0d-8b38-49cc-885d-3a3b21eec337",
"importer": "sprite-frame",
"rawTextureUuid": "5b4887ef-625f-455a-9a08-9579c48de5c7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 2,
"trimY": 1,
"width": 30,
"height": 43,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "a6e62d2a-ecf7-4fa8-9be9-5dcf529884f2",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"4": {
"ver": "1.0.6",
"uuid": "18182812-3ca3-47a3-8073-137a629a1dfc",
"importer": "sprite-frame",
"rawTextureUuid": "a6e62d2a-ecf7-4fa8-9be9-5dcf529884f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 34,
"height": 44,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "d605483a-f52e-4f68-902a-1c32a1863f6d",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"5": {
"ver": "1.0.6",
"uuid": "ba0a5e0f-6ce3-40de-8059-2e01dfc00245",
"importer": "sprite-frame",
"rawTextureUuid": "d605483a-f52e-4f68-902a-1c32a1863f6d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 2,
"trimY": 1,
"width": 31,
"height": 43,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "a70346ba-d633-495d-aa0a-b07607fa852f",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"6": {
"ver": "1.0.6",
"uuid": "b57a829a-28c7-4ee0-839c-c0837ce573c1",
"importer": "sprite-frame",
"rawTextureUuid": "a70346ba-d633-495d-aa0a-b07607fa852f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 32,
"height": 44,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "22fe2c13-b72e-4325-b6fd-1c53c9ff8e09",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"7": {
"ver": "1.0.6",
"uuid": "e23a49ef-4a1b-453d-9efa-43411f32f6b6",
"importer": "sprite-frame",
"rawTextureUuid": "22fe2c13-b72e-4325-b6fd-1c53c9ff8e09",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 0,
"trimY": 1,
"width": 35,
"height": 43,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "05ec4974-4d41-4d3c-8918-a9b4c95339fb",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"8": {
"ver": "1.0.6",
"uuid": "8dfb15da-9370-400d-844a-239aaf7d2067",
"importer": "sprite-frame",
"rawTextureUuid": "05ec4974-4d41-4d3c-8918-a9b4c95339fb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 1,
"trimY": 0,
"width": 33,
"height": 45,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "0f3e6c86-96f4-4de1-8ce3-24cedf381ca6",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 35,
"height": 46,
"platformSettings": {},
"subMetas": {
"9": {
"ver": "1.0.6",
"uuid": "bf15dca5-4a9d-483e-a4e6-3d187f7cb764",
"importer": "sprite-frame",
"rawTextureUuid": "0f3e6c86-96f4-4de1-8ce3-24cedf381ca6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 1,
"trimY": 0,
"width": 33,
"height": 45,
"rawWidth": 35,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "ff9277b0-7170-4072-85e6-996db9324bc8",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 137,
"height": 154,
"platformSettings": {},
"subMetas": {
"dangqianguog": {
"ver": "1.0.6",
"uuid": "a8252a6e-170b-45aa-8f9f-1dd84b11b22e",
"importer": "sprite-frame",
"rawTextureUuid": "ff9277b0-7170-4072-85e6-996db9324bc8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 137,
"height": 154,
"rawWidth": 137,
"rawHeight": 154,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "0b74bf9f-3ca2-4287-b219-b8d3d591f72c",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 463,
"height": 82,
"platformSettings": {},
"subMetas": {
"mofapaiduizi": {
"ver": "1.0.6",
"uuid": "ea1c93ff-58c2-44d7-a18e-d9104942e1a7",
"importer": "sprite-frame",
"rawTextureUuid": "0b74bf9f-3ca2-4287-b219-b8d3d591f72c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 463,
"height": 82,
"rawWidth": 463,
"rawHeight": 82,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "3f1f3765-fd89-4b4b-80fd-36e75572c02c",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 768,
"height": 58,
"platformSettings": {},
"subMetas": {
"progress": {
"ver": "1.0.6",
"uuid": "320a2cda-5216-42d7-95ce-7c19714254fd",
"importer": "sprite-frame",
"rawTextureUuid": "3f1f3765-fd89-4b4b-80fd-36e75572c02c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 7,
"trimY": 7,
"width": 754,
"height": 44,
"rawWidth": 768,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "fb2dbd9f-67d1-447a-8274-719e59539bc4",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 768,
"height": 58,
"platformSettings": {},
"subMetas": {
"progressBg": {
"ver": "1.0.6",
"uuid": "a1befb72-bde4-4940-8cb7-df53f4f01c16",
"importer": "sprite-frame",
"rawTextureUuid": "fb2dbd9f-67d1-447a-8274-719e59539bc4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 768,
"height": 58,
"rawWidth": 768,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "d1757b77-d056-4c82-b0b8-851a6cf3f195",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 68,
"height": 89,
"platformSettings": {},
"subMetas": {
"touxiangk": {
"ver": "1.0.6",
"uuid": "b78b30fa-b877-4fd9-9894-320fcb73a9a5",
"importer": "sprite-frame",
"rawTextureUuid": "d1757b77-d056-4c82-b0b8-851a6cf3f195",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 68,
"height": 89,
"rawWidth": 68,
"rawHeight": 89,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}