Compare commits

...

4 Commits

Author SHA1 Message Date
TJH
c0b0b26b6a 1
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m14s
2025-12-30 11:06:02 +08:00
TJH
9ce053f24e 1 2025-12-30 10:57:50 +08:00
TJH
245629db0f 龙虎榜 2025-12-30 09:55:15 +08:00
TJH
816b16ee90 龙虎榜 2025-12-29 17:54:19 +08:00
12 changed files with 244 additions and 141 deletions

View File

@ -1037,7 +1037,7 @@
"__id__": 378
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 387
@ -22172,7 +22172,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -369,
"x": -320,
"y": 0,
"z": 0
},
@ -22353,7 +22353,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -190,
"x": -140,
"y": 0,
"z": 0
},
@ -22534,7 +22534,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 15,
"x": 50,
"y": 0,
"z": 0
},
@ -22715,7 +22715,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 205,
"x": 220,
"y": 0,
"z": 0
},
@ -23575,7 +23575,7 @@
"__id__": 1106
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 1115
@ -24034,7 +24034,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -369,
"x": -320,
"y": 0,
"z": 0
},
@ -24215,7 +24215,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -190,
"x": -140,
"y": 0,
"z": 0
},
@ -24396,7 +24396,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 15,
"x": 50,
"y": 0,
"z": 0
},
@ -24577,7 +24577,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 205,
"x": 220,
"y": 0,
"z": 0
},

View File

@ -80,7 +80,7 @@ export class RankHistoryList extends Component {
this.historyIndex = 1;
this.updateHistoryArrows();
this.refreshSelfRankingInfo(null);
await this.loadHistoryData(this.currentHistoryType, this.historyIndex);
}
@ -114,11 +114,10 @@ export class RankHistoryList extends Component {
// ==================== 历史记录逻辑 ====================
async loadHistoryData(type: string, index: number) {
this.setRankHistoryRadioBtn(type);
this.refreshSelfRankingInfo(null);
if (!this.isTypeAvailable(type)) {
console.log(`${type} 历史榜单活动未开启`);
this.rankHistoryLoadingNode.active = false;
this.refreshSelfRankingInfo(null);
this.rankHistoryLoadingNode.active = false;
this.showActivityNotOpenTip();
return;
}
@ -163,7 +162,7 @@ export class RankHistoryList extends Component {
this.selfInfo.getChildByName('Rank').getChildByName('sp_1').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('sp_2').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('sp_3').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').active = true;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').getComponent(Label).string = '-';
this.selfInfo.getChildByName('Uid').getComponent(Label).string = '-';
this.selfInfo.getChildByName('Shop').getComponent(Label).string = '-';

View File

@ -77,7 +77,7 @@ export class RankList extends Component {
this.rankList.active = true;
this.currentRankType = '';
this.updateRankButtonsAvailability();
this.refreshSelfRankingInfo(null);
await this.switchRankTab(defaultType);
}
@ -116,14 +116,14 @@ export class RankList extends Component {
}
async switchRankTab(type: string) {
if (this.currentRankType === type) {
if (this.currentRankType === type) {
return;
}
this.currentRankType = type;
this.setRankRadioBtn(type);
this.refreshSelfRankingInfo(null);
if (!this.isTypeAvailable(type)) {
console.log(`${type} 榜单活动未开启`);
this.rankLoadingNode.active = false;
@ -131,8 +131,7 @@ export class RankList extends Component {
this.msg_1.active = false;
}
this.marqueeTexts = [];
this.currentMarqueeIndex = 0;
this.refreshSelfRankingInfo(null);
this.currentMarqueeIndex = 0;
this.showActivityNotOpenTip();
if (this.countdownTimer) {
clearInterval(this.countdownTimer);
@ -183,7 +182,19 @@ export class RankList extends Component {
console.error('获取排行榜数据失败:', error);
this.showActivityNotOpenTip();
Tween.stopAllByTarget(this.rankLoadingNode);
if (this.countdownTimer) {
clearInterval(this.countdownTimer);
this.countdownTimer = null;
}
this.rankingEndTime.getComponent(Label).string = "--:--:--";
this.rankLoadingNode.active = false;
// 停止跑马灯
if (this.msg_1 && this.msg_1.isValid) {
Tween.stopAllByTarget(this.msg_1);
this.msg_1.active = false;
}
this.marqueeTexts = [];
this.currentMarqueeIndex = 0;
}
}
@ -264,6 +275,9 @@ export class RankList extends Component {
this.rankingListVScroll.setTotalCount(rankInfos.List.length);
this.rankingListVScroll.renderItemFn = (node: Node, idx: number) => {
let itemData = rankInfos.List[idx];
if (!itemData) {
return;
}
node.getChildByName('bg').active = idx % 2 === 0;
node.getChildByName('bg2').active = idx % 2 !== 0;
node.getChildByName('Rank').getChildByName('sp_1').active = idx === 0;
@ -285,7 +299,7 @@ export class RankList extends Component {
this.selfInfo.getChildByName('Rank').getChildByName('sp_1').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('sp_2').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('sp_3').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').active = false;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').active = true;
this.selfInfo.getChildByName('Rank').getChildByName('rankLab').getComponent(Label).string = '-';
this.selfInfo.getChildByName('Uid').getComponent(Label).string = '-';
this.selfInfo.getChildByName('Shop').getComponent(Label).string = '-';

View File

@ -46,7 +46,7 @@ export class RewardList extends Component {
init(rewardListNode: Node) {
this.rewardList = rewardListNode;
this.rewardLoadingNode = this.rewardList.getChildByName('list').getChildByName('loading');
this.rewardLoadingNode = this.rewardList.getChildByName('list').getChildByName('loading');
this.rewardListVScroll = this.rewardList.getChildByName('list').getChildByName('vScroll').getComponent(VirtualScrollView);
this.rewardRadioDWM = this.rewardList.getChildByName('rewardRadioDWM');
this.rewardRadioDayBtn = this.rewardRadioDWM.getChildByName('dayBtn');
@ -106,7 +106,7 @@ export class RewardList extends Component {
showActivityNotOpenTip() {
this.activityNotOpenTip.active = true;
this.rewardListVScroll.setTotalCount(0);
this.rewardListVScroll.setTotalCount(0);
}
async switchRewardTab(type: string) {
@ -315,7 +315,7 @@ export class RewardList extends Component {
this.isReceiving = false;
this.setButtonsInteractable(true);
}
}
}
setButtonsInteractable(interactable: boolean) {
let receiveBtn = this.rewardReceivedBtn.getComponent(Button);
@ -431,7 +431,7 @@ export class RewardList extends Component {
this.countdownTimer = null;
}
let endTime = SlotRankingDataManager.instance.getRankEndTimeByType(type);
let endTime = SlotRankingDataManager.instance.getRankEndTimeByType(type);
this.updateCountdown(endTime);
@ -452,7 +452,7 @@ export class RewardList extends Component {
return;
}
let timeStr = this.formatCountdown(remainingSeconds);
let timeStr = this.formatCountdown(remainingSeconds);
}
formatCountdown(seconds: number): string {

View File

@ -67,9 +67,10 @@ export class SlotRanking extends Component {
this.initComponents();
this.rankingBtn.setPosition(this.startPos);
this.rankingBtn.active = SlotRankingDataManager.instance.getRankListStatus() === 0 || SlotRankingDataManager.instance.getRankListStatus() === 1;
this.rankingBtn.getChildByName('icon').getComponent(sp.Skeleton).color = SlotRankingDataManager.instance.getRankListStatus() === 0 ? Color.WHITE : Color.GRAY;
this.rankingBtn.active = SlotRankingDataManager.instance.getRankListStatus() === 0 || SlotRankingDataManager.instance.getRankListStatus() === 1 || SlotRankingDataManager.instance.getRankMaxCloseTimeIsBiggerThanCurTime();
this.rankingBtn.getComponent(Button).interactable = SlotRankingDataManager.instance.getRankListStatus() === 0;
this.rankingBtn.getChildByName('icon').getComponent(sp.Skeleton).color = SlotRankingDataManager.instance.getRankListStatus() === 0 ? Color.WHITE : Color.GRAY;
this.rankingBtn.on(Node.EventType.TOUCH_START, this.onTouchStart, this);
this.rankingBtn.on(Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
@ -135,15 +136,23 @@ export class SlotRanking extends Component {
}
// 如果正在自动旋转,不可点击
if (this.slotScene.isAutoSpin) {
if (this.slotScene.gameState.isAutoSpin) {
return false;
}
if (this.slotScene.isFreeSpin) {
if (this.slotScene.gameState.isInFreeSpin) {
return false;
}
if (this.slotScene.isFeatureBuySpin) {
if (this.slotScene.gameState.isFeatureBuySpin) {
return false;
}
if (this.slotScene.gameState.isEliminating) {
return false;
}
if (!this.rankingBtn.getComponent(Button).interactable) {
return false;
}

View File

@ -13,6 +13,76 @@ export class SlotRankingDataManager {
set rankList(list: any) { this._rankList = list; }
get rankList(): any { return this._rankList; }
/**
*
* {
"List": [
{
"Id": "20251225_day_faketrans-VND",
"Name": "",
"Type": "day",
"StartTime": 1766592000,
"EndTime": 1766689200,
"CloseTime": 1766775600,
"Status": 0,
"Rewards": [
10,
8,
5,
3,
3,
3,
3,
3,
3,
3
],
"SpinLimit": 10,
"BetLimit": 1000000
},
{
"Id": "20251222_week_faketrans-VND",
"Name": "",
"Type": "week",
"StartTime": 1766592000,
"EndTime": 1766678400,
"CloseTime": 1766764800,
"Status": 0,
"Rewards": [
10,
5,
5,
5,
5,
5,
5,
5,
5,
5
],
"SpinLimit": 10,
"BetLimit": 5000000
}
]
}
*/
getRankMaxCloseTimeIsBiggerThanCurTime(): boolean {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
// 代表当前没有活动开启,则说明关闭入口按钮
return false;
}
let maxCloseTime = 0;
for (let item of this._rankList.List) {
if (item.CloseTime > maxCloseTime) {
maxCloseTime = item.CloseTime;
}
}
return Date.now() <= (maxCloseTime * 1000);
}
getRankListStatus(): number {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
return 2;

View File

@ -500,7 +500,7 @@
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "",
"defaultAnimation": "1_1",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,

View File

@ -500,7 +500,7 @@
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "<None>",
"defaultAnimation": "1_1",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,

View File

@ -2335,7 +2335,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "1eqql5rNlOwLFK1yo+7HVk",
"fileId": "80g+/N2XVID4RLsl1Lqkew",
"prefabRootNode": {
"__id__": 1
},
@ -2361,7 +2361,7 @@
"__id__": 91
},
"asset": {
"__uuid__": "f8999765-2b3b-4d22-8a12-dd5165927db7",
"__uuid__": "a185ad99-a791-4309-9851-549c756647b9",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -2372,7 +2372,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "a6jAaAxYRMAaiEBxc0pGEs",
"fileId": "ae8xVUgyVK+4K1IGDFd/UK",
"prefabRootNode": {
"__id__": 1
},
@ -2398,7 +2398,7 @@
"__id__": 94
},
"asset": {
"__uuid__": "e218006e-19e0-486f-b9db-e13d4c1f6cad",
"__uuid__": "5347ef5a-5046-4c36-be8f-bb27dc475204",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -2409,7 +2409,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "e7SY7+UT1MQZoJ5moo5WQi",
"fileId": "2elmAnEyZLQ6q9W7loMi5U",
"prefabRootNode": {
"__id__": 1
},
@ -2435,7 +2435,7 @@
"__id__": 97
},
"asset": {
"__uuid__": "79c428b2-5899-404c-8495-991b407ef71b",
"__uuid__": "e50482a2-447d-46ce-91f0-488953dda75c",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -2446,7 +2446,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "68KmO39FFDLoMd0BkApwAa",
"fileId": "5e58wod5ZHwpiFzVonA3ul",
"prefabRootNode": {
"__id__": 1
},
@ -2472,7 +2472,7 @@
"__id__": 100
},
"asset": {
"__uuid__": "31e7557b-3a6b-4d2d-9daf-5a5e4b522638",
"__uuid__": "c2de34b1-99b2-49c4-a6ec-44eeb63b12cd",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -2483,7 +2483,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "a0kM9ORsxFdIBJ0Vjf+uyz",
"fileId": "d8rHbmBrVGCISPjD8d2daQ",
"prefabRootNode": {
"__id__": 1
},
@ -2518,7 +2518,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2atf6dHeZONbPuZS8x7D9/"
"fileId": "13sjcBeeND3JxOYb5zBB+k"
},
{
"__type__": "cc.PrefabInfo",
@ -2528,7 +2528,7 @@
"asset": {
"__id__": 0
},
"fileId": "1dhRo5DhJEU6aLuD4irqd7",
"fileId": "11Y+tELo1F5oKI37IGqSPy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -2559,7 +2559,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "95r17AlHNLgbiDrZbuhgrL"
"fileId": "a56oCQN2dHfacAqyZNgNso"
},
{
"__type__": "cc.PrefabInfo",
@ -2569,7 +2569,7 @@
"asset": {
"__id__": 0
},
"fileId": "08I49cm2tIC7Foxhbop6pj",
"fileId": "54rXycC55GOJStsSUwnNWq",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -2600,7 +2600,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "49/Ei3azRD5ovZ6IKray2g"
"fileId": "d9Bw1BucZB2oS7FBQXCP9E"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -2625,7 +2625,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d9hQSK4FxO9YySP4/4AwR5"
"fileId": "6c7iqDiVtIGLXO6badzA3b"
},
{
"__type__": "5fd13+Xa69CZogb3Q/F1lnC",
@ -2798,7 +2798,7 @@
"asset": {
"__id__": 0
},
"fileId": "5fDHphdn1PppVTjcMbrbwv",
"fileId": "59xLvgXypAsaWpyT2a1qs7",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -2988,7 +2988,7 @@
"__id__": 123
},
"asset": {
"__uuid__": "09ec107b-880c-45b8-ad98-84592e637c0b",
"__uuid__": "e50482a2-447d-46ce-91f0-488953dda75c",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -2999,7 +2999,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "589vdBwblJmaHEbzd+c++e",
"fileId": "24PldwwoJMrpzFC+ttFRaO",
"prefabRootNode": {
"__id__": 1
},
@ -3025,7 +3025,7 @@
"__id__": 126
},
"asset": {
"__uuid__": "79c428b2-5899-404c-8495-991b407ef71b",
"__uuid__": "a4cde73d-6ad9-430a-9b55-6f16ff2da91e",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3036,7 +3036,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f7P/6MJZNNPaU/N0qN9hsN",
"fileId": "71kXTRct5JI6H62Q6o0nUz",
"prefabRootNode": {
"__id__": 1
},
@ -3062,7 +3062,7 @@
"__id__": 129
},
"asset": {
"__uuid__": "2c62af7c-9b93-48ff-bd76-a2dfd799659e",
"__uuid__": "09ec107b-880c-45b8-ad98-84592e637c0b",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3073,7 +3073,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "e381H7/+NDdLUQfFqOlTBu",
"fileId": "6bLm4V2nNI1Zhk7LkPShf8",
"prefabRootNode": {
"__id__": 1
},
@ -3099,7 +3099,7 @@
"__id__": 132
},
"asset": {
"__uuid__": "a185ad99-a791-4309-9851-549c756647b9",
"__uuid__": "e218006e-19e0-486f-b9db-e13d4c1f6cad",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3110,7 +3110,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "a1UA3iFNhJhLs+xW+nx+iz",
"fileId": "7dBJxHgYlOsqQGfEOpChZ4",
"prefabRootNode": {
"__id__": 1
},
@ -3136,7 +3136,7 @@
"__id__": 135
},
"asset": {
"__uuid__": "2c62af7c-9b93-48ff-bd76-a2dfd799659e",
"__uuid__": "f8999765-2b3b-4d22-8a12-dd5165927db7",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3147,7 +3147,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "e9PKkjMz5Hz6QjMXIM5yrq",
"fileId": "35VGy7qLhNhYGR085oEZh2",
"prefabRootNode": {
"__id__": 1
},
@ -3182,7 +3182,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9eUMXNXVREbYKG48CgXRuR"
"fileId": "97ekEZtVRNiJgih80CZ5bA"
},
{
"__type__": "cc.PrefabInfo",
@ -3192,7 +3192,7 @@
"asset": {
"__id__": 0
},
"fileId": "e41qvXmexCI7MkjK0dsPxu",
"fileId": "75bDDkg/xMUotVkraCUg7I",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3223,7 +3223,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "73fZOz3HFEboThXtpMmtUJ"
"fileId": "9eyisnruZLyraBszqsqLg6"
},
{
"__type__": "cc.PrefabInfo",
@ -3233,7 +3233,7 @@
"asset": {
"__id__": 0
},
"fileId": "5cFzmFrBpG7Ks5/AaOzM0t",
"fileId": "24bsOliYRNXJPg96eqfMJH",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3264,7 +3264,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b14D53cyJKkbEBpyHCJ2Cv"
"fileId": "3fvU1aHR1PZoSoI7d3pr+c"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -3289,7 +3289,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cbLT1ry/1J3rjH2FBh/wkh"
"fileId": "14lxvZGp9MupeQ/Rk3Zy4c"
},
{
"__type__": "cc.PrefabInfo",
@ -3299,7 +3299,7 @@
"asset": {
"__id__": 0
},
"fileId": "fbZRLd/NRPAJu9j+d3VcX1",
"fileId": "32S0sgZkBO+YIcyaXv5ltt",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3489,7 +3489,7 @@
"__id__": 152
},
"asset": {
"__uuid__": "5347ef5a-5046-4c36-be8f-bb27dc475204",
"__uuid__": "e50482a2-447d-46ce-91f0-488953dda75c",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3500,7 +3500,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "fa7tH46DBMIqkyJXM+hqiS",
"fileId": "48LkABwudD9qlzmaYPTOt8",
"prefabRootNode": {
"__id__": 1
},
@ -3526,7 +3526,7 @@
"__id__": 155
},
"asset": {
"__uuid__": "79c428b2-5899-404c-8495-991b407ef71b",
"__uuid__": "55a879b3-2ccd-48e3-bd43-c984e67f1637",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3537,7 +3537,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "76ftBpMRdCOJ6EBIkKlu9O",
"fileId": "7fSc3078FNdpHDiLXD86WN",
"prefabRootNode": {
"__id__": 1
},
@ -3563,7 +3563,7 @@
"__id__": 158
},
"asset": {
"__uuid__": "31e7557b-3a6b-4d2d-9daf-5a5e4b522638",
"__uuid__": "2c62af7c-9b93-48ff-bd76-a2dfd799659e",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3574,7 +3574,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "4615z8FVxG3rHo90wSWQAE",
"fileId": "35lgHfGf9AS66D43RYQ1V9",
"prefabRootNode": {
"__id__": 1
},
@ -3611,7 +3611,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "9fZuEW/+BGh69bzFf4MzWN",
"fileId": "66cdlt0HBPyZ7DbQl146yE",
"prefabRootNode": {
"__id__": 1
},
@ -3637,7 +3637,7 @@
"__id__": 164
},
"asset": {
"__uuid__": "5347ef5a-5046-4c36-be8f-bb27dc475204",
"__uuid__": "c2de34b1-99b2-49c4-a6ec-44eeb63b12cd",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -3648,7 +3648,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "816kmjJSFMqoWDYfLv+W1N",
"fileId": "89QlKuC8VDUaJtCYSnTvIa",
"prefabRootNode": {
"__id__": 1
},
@ -3683,7 +3683,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f3Yx52dNNFZIgFkG3KlI+e"
"fileId": "9cIFHjNJJLR5qjacRou5dJ"
},
{
"__type__": "cc.PrefabInfo",
@ -3693,7 +3693,7 @@
"asset": {
"__id__": 0
},
"fileId": "8cMg01MN1LerbDFUAxiirG",
"fileId": "b5l2uIgkJEgY8n/tVVF1vs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3724,7 +3724,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ccDHiomCZDiq+vsX0weBmW"
"fileId": "82z4muJE5DspUyndMrNwGl"
},
{
"__type__": "cc.PrefabInfo",
@ -3734,7 +3734,7 @@
"asset": {
"__id__": 0
},
"fileId": "18jRTNR2hJe7HEVv78Ikxd",
"fileId": "7fmON9YN5Fs5A/2biOIMPE",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3765,7 +3765,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e1Kz1RQ5tHUaWjJDo+Qxh3"
"fileId": "56X8eWRURLiYaQC8TXedrE"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -3790,7 +3790,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8fwWtbEaZMZ6lqBHW+Hkc7"
"fileId": "e1Iia5N7NNNIulPdYFEfmb"
},
{
"__type__": "cc.PrefabInfo",
@ -3800,7 +3800,7 @@
"asset": {
"__id__": 0
},
"fileId": "02hlFkJaZFoapncYvcCUTH",
"fileId": "396whuEzBCWK9+G36t5ePv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -3990,7 +3990,7 @@
"__id__": 181
},
"asset": {
"__uuid__": "31e7557b-3a6b-4d2d-9daf-5a5e4b522638",
"__uuid__": "f8999765-2b3b-4d22-8a12-dd5165927db7",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4001,7 +4001,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "6f21fA4FNGvYipcuhia8Qr",
"fileId": "2aSKiWpNlLuqi3JiWPl1Yr",
"prefabRootNode": {
"__id__": 1
},
@ -4027,7 +4027,7 @@
"__id__": 184
},
"asset": {
"__uuid__": "2c62af7c-9b93-48ff-bd76-a2dfd799659e",
"__uuid__": "09ec107b-880c-45b8-ad98-84592e637c0b",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4038,7 +4038,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "3c0qmcqdhPjoWImtRDDO35",
"fileId": "b5y6QqPBNNbJO53JSmllv3",
"prefabRootNode": {
"__id__": 1
},
@ -4064,7 +4064,7 @@
"__id__": 187
},
"asset": {
"__uuid__": "09ec107b-880c-45b8-ad98-84592e637c0b",
"__uuid__": "e218006e-19e0-486f-b9db-e13d4c1f6cad",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4075,7 +4075,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "14KGWcEVJPjZ6Mqb/ehqLU",
"fileId": "edLUK7Z6FESITEkFWQTbBh",
"prefabRootNode": {
"__id__": 1
},
@ -4101,7 +4101,7 @@
"__id__": 190
},
"asset": {
"__uuid__": "55a879b3-2ccd-48e3-bd43-c984e67f1637",
"__uuid__": "e50482a2-447d-46ce-91f0-488953dda75c",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4112,7 +4112,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "5d0bOjUvJN146hBVhyAqld",
"fileId": "808tj3Sm9Lr5UcvcDj1om3",
"prefabRootNode": {
"__id__": 1
},
@ -4138,7 +4138,7 @@
"__id__": 193
},
"asset": {
"__uuid__": "a4cde73d-6ad9-430a-9b55-6f16ff2da91e",
"__uuid__": "a185ad99-a791-4309-9851-549c756647b9",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4149,7 +4149,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "7aiVnHZg9CpKxnLtkmI3WB",
"fileId": "e03+CvxW9B9rYbjHZ5NVi9",
"prefabRootNode": {
"__id__": 1
},
@ -4184,7 +4184,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "27hsK28EVLMpARTj/kV9cC"
"fileId": "a7K8YzWnVCbaiYaKmmvjGz"
},
{
"__type__": "cc.PrefabInfo",
@ -4194,7 +4194,7 @@
"asset": {
"__id__": 0
},
"fileId": "41cZgdv4VIzoFjrSi5Keyp",
"fileId": "4dY5ENKB9KHogeFQTbQ2P6",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4225,7 +4225,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a5YmQ5GiBP05X9Yi1QIIRW"
"fileId": "f8UkOOq15K5JGWK+vA+ZEK"
},
{
"__type__": "cc.PrefabInfo",
@ -4235,7 +4235,7 @@
"asset": {
"__id__": 0
},
"fileId": "dbu8zYse5Hsr8PJp5MqLvU",
"fileId": "27DMprNiZD25dokBIH+NJZ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4266,7 +4266,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5aCEeLZSpFVYLUUKbivSfC"
"fileId": "70lXgqqj1B6qxCuu2ooF7p"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -4291,7 +4291,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2aGERVnM5FIbLX4QvTMKMn"
"fileId": "2fJ3h6sH5OcrXN0HFVjtIf"
},
{
"__type__": "cc.PrefabInfo",
@ -4301,7 +4301,7 @@
"asset": {
"__id__": 0
},
"fileId": "9a3kbBMGlNMofSIXUAqP29",
"fileId": "6cb7bqOndKNq2d5uplsHrL",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4491,7 +4491,7 @@
"__id__": 210
},
"asset": {
"__uuid__": "2c62af7c-9b93-48ff-bd76-a2dfd799659e",
"__uuid__": "a4cde73d-6ad9-430a-9b55-6f16ff2da91e",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4502,7 +4502,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "50bJLbOS9DiYqWw2DTq47A",
"fileId": "bd4AgAgWNHfY9QsCRcyDY8",
"prefabRootNode": {
"__id__": 1
},
@ -4528,7 +4528,7 @@
"__id__": 213
},
"asset": {
"__uuid__": "c2de34b1-99b2-49c4-a6ec-44eeb63b12cd",
"__uuid__": "e218006e-19e0-486f-b9db-e13d4c1f6cad",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4539,7 +4539,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "43l7jWoYlGo5WmOawKmooV",
"fileId": "1bNsRYljFJFq9LFyzOECCa",
"prefabRootNode": {
"__id__": 1
},
@ -4565,7 +4565,7 @@
"__id__": 216
},
"asset": {
"__uuid__": "a4cde73d-6ad9-430a-9b55-6f16ff2da91e",
"__uuid__": "e50482a2-447d-46ce-91f0-488953dda75c",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4576,7 +4576,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "53IhWyDCVJLJHY5dssdh36",
"fileId": "eaiRjypjlPnJhHfoUrkGMF",
"prefabRootNode": {
"__id__": 1
},
@ -4602,7 +4602,7 @@
"__id__": 219
},
"asset": {
"__uuid__": "5347ef5a-5046-4c36-be8f-bb27dc475204",
"__uuid__": "a185ad99-a791-4309-9851-549c756647b9",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4613,7 +4613,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "a7CW2DUNxEPoAtyb0TpWeo",
"fileId": "21C8OtA4RIYbK/vNNSruUx",
"prefabRootNode": {
"__id__": 1
},
@ -4639,7 +4639,7 @@
"__id__": 222
},
"asset": {
"__uuid__": "a0fd2fb6-af52-4b80-a9fc-93d543fa2acd",
"__uuid__": "a185ad99-a791-4309-9851-549c756647b9",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -4650,7 +4650,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "ed6kFlFTxEGp524j2bz4zK",
"fileId": "d3uZVSRyBCRqem60ZyuYT2",
"prefabRootNode": {
"__id__": 1
},
@ -4685,7 +4685,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ca+DvW2GhJLrQzFF1ZCU40"
"fileId": "e8pLkeNDFFmro1FRx08pcm"
},
{
"__type__": "cc.PrefabInfo",
@ -4695,7 +4695,7 @@
"asset": {
"__id__": 0
},
"fileId": "acPB36ngFEy49YutRyFakr",
"fileId": "55EAKMbd1L9YylhoHUmkIv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4726,7 +4726,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e6NzIlV4NCzpp9Wmgptm56"
"fileId": "9dQXGjIlBJOpq7YqpjFqeA"
},
{
"__type__": "cc.PrefabInfo",
@ -4736,7 +4736,7 @@
"asset": {
"__id__": 0
},
"fileId": "66keWDFvZOu4qPvi+f5DO+",
"fileId": "870tmnQsVPmLlJFWkMDBCR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4767,7 +4767,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "09qUGJivpA4pqn+mnivJjk"
"fileId": "61O20bTSpJCp788NesZmYv"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -4792,7 +4792,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "52EaI99mtC2JQ/Pkv+ivLM"
"fileId": "4e9/BTWypB/6Kf9AAO2HCQ"
},
{
"__type__": "cc.PrefabInfo",
@ -4802,7 +4802,7 @@
"asset": {
"__id__": 0
},
"fileId": "cfwEQkTnJJd6aG4iVD7A/A",
"fileId": "31KiiH1EJGbr1/nSmdNpQk",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -4992,7 +4992,7 @@
"__id__": 239
},
"asset": {
"__uuid__": "f8999765-2b3b-4d22-8a12-dd5165927db7",
"__uuid__": "55a879b3-2ccd-48e3-bd43-c984e67f1637",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -5003,7 +5003,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "574T7ekHNOK4skaOlTwhzs",
"fileId": "88wAyAax1EVo8lY+/bB3Vj",
"prefabRootNode": {
"__id__": 1
},
@ -5040,7 +5040,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "12j8Zjx1NGzqleVQhe8jDh",
"fileId": "2660H1FRRFQrt/QcP/uOl3",
"prefabRootNode": {
"__id__": 1
},
@ -5066,7 +5066,7 @@
"__id__": 245
},
"asset": {
"__uuid__": "55a879b3-2ccd-48e3-bd43-c984e67f1637",
"__uuid__": "c2de34b1-99b2-49c4-a6ec-44eeb63b12cd",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -5077,7 +5077,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "31UKwNvDlHDY0qrScGspwg",
"fileId": "a6quGF5U1G3LRSvL/yw1GA",
"prefabRootNode": {
"__id__": 1
},
@ -5103,7 +5103,7 @@
"__id__": 248
},
"asset": {
"__uuid__": "5347ef5a-5046-4c36-be8f-bb27dc475204",
"__uuid__": "a4cde73d-6ad9-430a-9b55-6f16ff2da91e",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -5114,7 +5114,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "6cFLiGSrxGII21xYjRrE4E",
"fileId": "28t+zSNedK17S/T2EF+6j/",
"prefabRootNode": {
"__id__": 1
},
@ -5140,7 +5140,7 @@
"__id__": 251
},
"asset": {
"__uuid__": "79c428b2-5899-404c-8495-991b407ef71b",
"__uuid__": "09ec107b-880c-45b8-ad98-84592e637c0b",
"__expectedType__": "cc.Prefab"
},
"fileId": "fchELCmEtHhb3lT1fagDGR",
@ -5151,7 +5151,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "830yO1zuBKi4cTgtR6yl5f",
"fileId": "0bYRqfvt5DQ5PrMPYQcHGr",
"prefabRootNode": {
"__id__": 1
},
@ -5186,7 +5186,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "18zRKAy65Fe5J2YoPt1kRe"
"fileId": "0c6SeYAbpHWYCcbTGKM3fi"
},
{
"__type__": "cc.PrefabInfo",
@ -5196,7 +5196,7 @@
"asset": {
"__id__": 0
},
"fileId": "f6Nihu+cdAPIPZQACdc4Pz",
"fileId": "55IWA0F6lAj79yg7m+Rb1G",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -5227,7 +5227,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "daQRitg3VEIp5lmo6zkUT7"
"fileId": "5fZ7WZeZlAQq3XsaYjdDIL"
},
{
"__type__": "cc.PrefabInfo",
@ -5237,7 +5237,7 @@
"asset": {
"__id__": 0
},
"fileId": "48kghGNbJCML1S0iJJyeyK",
"fileId": "f78Mi16+hP3oFtT+qj+wec",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -5268,7 +5268,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b762KR8uhHbo6addc2r7kQ"
"fileId": "82AeCB/tNNHYKFFo8H3qmr"
},
{
"__type__": "45522uB1sdFu4FJAojtnha4",
@ -5293,7 +5293,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "44X+i4mPFAn6apsFVsLMMd"
"fileId": "42meBWhjVCf7dbY830eqm5"
},
{
"__type__": "cc.PrefabInfo",
@ -5303,7 +5303,7 @@
"asset": {
"__id__": 0
},
"fileId": "3f4aOq4ipGSZYhGDps07Uv",
"fileId": "133WtJkLRNXLsbjZTPLWj0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -5328,7 +5328,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4aqRMvNgRJJLBix0cZhbu4"
"fileId": "e0MR4KVT5DVbJfdaIwEwsw"
},
{
"__type__": "cc.UITransform",
@ -5356,7 +5356,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2aoEHu6SxEN7mPRvg91iIk"
"fileId": "2eghV/Li1EVJlY7VGi8dnP"
},
{
"__type__": "cc.Graphics",
@ -5402,7 +5402,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a2diEH12tHcKtNnAYoXWOk"
"fileId": "f9uSEzrcBDMadgCwECW+b7"
},
{
"__type__": "cc.PrefabInfo",
@ -5412,7 +5412,7 @@
"asset": {
"__id__": 0
},
"fileId": "21Poe6zI5HaavIQsUG6pO1",
"fileId": "a2wD9fbXNG+I1jHm1FQ0zr",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null

View File

@ -179,6 +179,7 @@ export class SlotBar extends Component {
this.betIndex = 0;
}
// this.setBtnEnable(this.subBtn, this.betIndex > 0);
this.setBalance(this.curBalance);
this.setBet(this.curBet);
this.setWin(this.curWin);
@ -495,6 +496,7 @@ export class SlotBar extends Component {
} else {
this.betIndex = this.betGrade.indexOf(bet);
}
// this.setBtnEnable(this.subBtn, this.betIndex > 0);
// 停止当前的 tween 动画
Tween.stopAllByTarget(this.betLabel.node);
@ -616,6 +618,8 @@ export class SlotBar extends Component {
this.setBtnEnable(this.addBtn, true);
this.setBtnEnable(this.menuBtn, true);
this.setBtnEnable(this.autoBtn, true);
this.setBtnEnable(this.subBtn, this.betIndex > 0);
}
onTurboMouseDown() {

View File

@ -456,6 +456,11 @@ export class Icon extends Component {
if (!this.iconSpine || !this.iconSpine.node) return;
this.iconSpine.node.active = true;
if (this._isWildOrScatter) {
this.iconSpine.timeScale = 1
this.iconSpine.clearTracks()
this.iconSpine.setAnimation(0, `${this.lHeight}_1`, true);
}
this._normalSpriteNode && (this._normalSpriteNode.active = false);
// 使用计时器回调而不是匿名函数,减少闭包
@ -470,10 +475,12 @@ export class Icon extends Component {
private playSpawnAnimation() {
if (!this.iconSpine) return;
if (this._isWildOrScatter) {
this.iconSpine.timeScale = 1
this.iconSpine.setAnimation(0, `${this.lHeight}_1`, true);
} else if (this._isQKJ) {
// if (this._isWildOrScatter) {
// this.iconSpine.timeScale = 1
// this.iconSpine.clearTracks()
// this.iconSpine.setAnimation(0, `${this.lHeight}_1`, true);
// } else
if (this._isQKJ) {
this.iconSpine.setAnimation(0, "animation", false);
} else {
this.iconSpine.setAnimation(0, "tan", false);

View File

@ -7,7 +7,7 @@ import { PREVIEW } from "cc/env"
const gameId = "rp_11001";
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
let apiaddr = "";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NjcwMTU2MDMsIlMiOjEwMDAsIkQiOiJycF8xMTAwMSJ9.ZFVTUEx8b15hwZk9wW3bJxKMkpA3IUlwbgYH5uY-uhA";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NjcxMDIxMTgsIlMiOjk5OCwiRCI6InJwXzExMDAxIn0.qCCuGCYZ-poXpw3BxTLjKnCm9SDdzg7Gd-7H8I5MlzQ";
let language = "en"