From a8b314b5fafbc6d7dacfd54250e28a9b4be38293 Mon Sep 17 00:00:00 2001 From: TJH Date: Tue, 14 Oct 2025 14:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/prefabs/SlotScene.prefab | 114 +++++++++++++-------------- assets/Game/scripts/SlotGame.ts | 2 +- assets/Game/scripts/SlotScene.ts | 2 - 3 files changed, 58 insertions(+), 60 deletions(-) diff --git a/assets/Game/prefabs/SlotScene.prefab b/assets/Game/prefabs/SlotScene.prefab index 0b6e4ce..f949e52 100644 --- a/assets/Game/prefabs/SlotScene.prefab +++ b/assets/Game/prefabs/SlotScene.prefab @@ -2294,7 +2294,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "c9Z3qNDbhD/ri/vDUywMOt" + "fileId": "06rP3VT7VA7aVSN/DpmN0D" }, { "__type__": "cc.PrefabInfo", @@ -2304,7 +2304,7 @@ "asset": { "__id__": 0 }, - "fileId": "d1Uh8s5KpAVr2zCgnZWyOa", + "fileId": "62Ud3tJKpOnq4Z70K3kbgM", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2335,7 +2335,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "18iVO1tndE+7bvjFvpDM1Z" + "fileId": "e09hj8kVtFjboPIYQ1wESL" }, { "__type__": "cc.PrefabInfo", @@ -2345,7 +2345,7 @@ "asset": { "__id__": 0 }, - "fileId": "f3J196IxdDuJUQiiXtTXQk", + "fileId": "807FgPV3FODIcHHQxQ+HJV", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2376,7 +2376,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "28+dNFIEJMHKiDrhAJDrs0" + "fileId": "f32OkLpZVIg5etwt30qarO" }, { "__type__": "5fc10Zl7lVO97/rr2J1uxWH", @@ -2400,7 +2400,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "68NBuuU/lGs4RZ/wYYC+7F" + "fileId": "58kMPC8+NE2a5yfYB4Dy5Z" }, { "__type__": "5fd13+Xa69CZogb3Q/F1lnC", @@ -2573,7 +2573,7 @@ "asset": { "__id__": 0 }, - "fileId": "025g7/YnVH9ZbBRXGjm7mO", + "fileId": "7bkP6+EslIvqBeGX9wGSUv", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2598,7 +2598,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "1ayrD9HSBA6KEqbCSpqsCA" + "fileId": "7fdGq3P8FDo7LynMBx0+W8" }, { "__type__": "cc.UITransform", @@ -2626,7 +2626,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "b3zPwIurJFFaK3EgZt7fvz" + "fileId": "6cGn7foxxLS5aF/CxCJRPn" }, { "__type__": "cc.Sprite", @@ -2671,7 +2671,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "3fuwG/hVBM1bg+21KrmFOk" + "fileId": "04l+1gbWNJnoATRBGhF5Bk" }, { "__type__": "cc.PrefabInfo", @@ -2681,7 +2681,7 @@ "asset": { "__id__": 0 }, - "fileId": "d8WVn2C2JKioUxkqCbtD8f", + "fileId": "07/x5Qdb9AU5Q75N/4wRyI", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2936,7 +2936,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "897JaOmKFPgYfmaWKiUkzl" + "fileId": "7fUuHiNrRFyJFWHgRgn5VH" }, { "__type__": "cc.PrefabInfo", @@ -2946,7 +2946,7 @@ "asset": { "__id__": 0 }, - "fileId": "e5wYPdEW5IgLvwPMQK0OvW", + "fileId": "e9Jb5RfqBCXKKiQ/tAAS++", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2977,7 +2977,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "13hBQKwmdLL4Ov5Fi99BZ9" + "fileId": "9cbHiNI2xOopk2uqfK5JJJ" }, { "__type__": "cc.PrefabInfo", @@ -2987,7 +2987,7 @@ "asset": { "__id__": 0 }, - "fileId": "11V9fH7fpK8Iqine/73TJ9", + "fileId": "b56onggXpMza9qgvu+bu11", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3018,7 +3018,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "38kmnnKkVNPbGEZRrRs7ib" + "fileId": "65/mMi6URFmZV7FbkLNUgl" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3042,7 +3042,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e8VQB/UvVJ1ou/yHp6s//U" + "fileId": "f8wrm9S5RJYqGoGRvoxl8V" }, { "__type__": "cc.PrefabInfo", @@ -3052,7 +3052,7 @@ "asset": { "__id__": 0 }, - "fileId": "019U51rRVHTJezNtAVBTkH", + "fileId": "9006MnUchAf5PtNyI3bT7Q", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3235,7 +3235,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9131Gll91CILItRmG54hFb" + "fileId": "20AxukZeBP+ZQyxpKxUbsI" }, { "__type__": "cc.PrefabInfo", @@ -3245,7 +3245,7 @@ "asset": { "__id__": 0 }, - "fileId": "deca0yT31DEY0aXmCDrtoV", + "fileId": "91Tp16x8xIu797qu/jk3y+", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3276,7 +3276,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "59S19lUONPO4EtFO43uiOa" + "fileId": "b9GgN28ltPTZ3i2EyslRBE" }, { "__type__": "cc.PrefabInfo", @@ -3286,7 +3286,7 @@ "asset": { "__id__": 0 }, - "fileId": "6eqxYVX/lH55lvPjXm43Or", + "fileId": "8e22e2WE5E/oiNod0ctxSS", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3317,7 +3317,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9fkJCEF0lHP7y2EOChqlcq" + "fileId": "60jG0eU6xAEYWoMCTU4YuY" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3341,7 +3341,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "61gwwtsGJMyZo+crgRzUuq" + "fileId": "d6MNDkf8ZBeKRBawJPUKMH" }, { "__type__": "cc.PrefabInfo", @@ -3351,7 +3351,7 @@ "asset": { "__id__": 0 }, - "fileId": "17/AmE+RNAf4gcBXrbsRl2", + "fileId": "41fOyIoOhBKbc2pqbHDCap", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3534,7 +3534,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "6cC7BW+BtCdIL0Jppw/xp2" + "fileId": "d6b3Ez6G1BN70wOc4wPOT0" }, { "__type__": "cc.PrefabInfo", @@ -3544,7 +3544,7 @@ "asset": { "__id__": 0 }, - "fileId": "b0rTLwipFDWa3lqCeuW11W", + "fileId": "4bkhy7Z25EyJefWtuUCl5w", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3575,7 +3575,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "47gZ8TzlRM5raC0O0o2pu9" + "fileId": "cbRB9w+GRDHrfo8qMzuC1R" }, { "__type__": "cc.PrefabInfo", @@ -3585,7 +3585,7 @@ "asset": { "__id__": 0 }, - "fileId": "c3HITzjEpJ8735FI961+3o", + "fileId": "ddaWJbBAhNC4kqmmGLQAdX", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3616,7 +3616,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "06VhclpjRFcatAJz8TaU8c" + "fileId": "76DVjn9YVOLKz0HBrV35Vw" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3640,7 +3640,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "68a/saJDdASq48MlIVdCIJ" + "fileId": "3bjUmkv+tLIo/L9gx8AMcc" }, { "__type__": "cc.PrefabInfo", @@ -3650,7 +3650,7 @@ "asset": { "__id__": 0 }, - "fileId": "6esD5XImxC4q1VjAX5wnDX", + "fileId": "1agzYcwhtCEIY1gtx3QyLV", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3833,7 +3833,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "eaTPy6vKpLkJeaCSrBhkw+" + "fileId": "30JctQmcBAVqVcsfV9FQMs" }, { "__type__": "cc.PrefabInfo", @@ -3843,7 +3843,7 @@ "asset": { "__id__": 0 }, - "fileId": "95EGLbCrJIvLQ/mw8+mMji", + "fileId": "87AW2sgYRAioiZksLQCyDZ", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3874,7 +3874,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "22bLXZsTxBvrXny02YVWqs" + "fileId": "81ue3vtW1FE6WGmnorKpoE" }, { "__type__": "cc.PrefabInfo", @@ -3884,7 +3884,7 @@ "asset": { "__id__": 0 }, - "fileId": "d42GZewKxMsaskBiuCXDOw", + "fileId": "51b9KbiLhAQruBcQhGGUGO", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3915,7 +3915,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "94BOcvpYFISY3g2mDJefzN" + "fileId": "b2w1Fyf21D6L0tv58B2OXs" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3939,7 +3939,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "c1dTnjEzxAuLj7ZrE92Czf" + "fileId": "a6/4WPExBOUZddI6LOb6MC" }, { "__type__": "cc.PrefabInfo", @@ -3949,7 +3949,7 @@ "asset": { "__id__": 0 }, - "fileId": "c4aYTIXM9G+ol69pjQSa57", + "fileId": "76vohC4Q5GGLnIhvKUdb5w", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4132,7 +4132,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "2b5/lJtaVIFY+joNnGqm+D" + "fileId": "cdDc3DZtpN/pGLtTBLQllR" }, { "__type__": "cc.PrefabInfo", @@ -4142,7 +4142,7 @@ "asset": { "__id__": 0 }, - "fileId": "d9LV0IgIRPdqatEGLcNvcz", + "fileId": "604AZDDx5CLrsinkRvhp6Y", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4173,7 +4173,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "5dSATYOplEVLmw4ZZN03Cq" + "fileId": "a1Db6r18NJGb1UfXHrd03s" }, { "__type__": "cc.PrefabInfo", @@ -4183,7 +4183,7 @@ "asset": { "__id__": 0 }, - "fileId": "60qD/8/W5IlITHEwQB690H", + "fileId": "8e87wRXS5K4r8MsHX7yNF8", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4214,7 +4214,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e7m1AxpLRIJJSlSYLrZJHZ" + "fileId": "1dE3WD56ZBipBaPnngaJmI" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4238,7 +4238,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "60Bbnou6FC2LSbIu7zLlNN" + "fileId": "23Ys/KCxpAMJTripgGbjfi" }, { "__type__": "cc.PrefabInfo", @@ -4248,7 +4248,7 @@ "asset": { "__id__": 0 }, - "fileId": "53WmWwBnFIY5PB4EdguDBT", + "fileId": "5fp+xQoPVEPrjX2KQdLZCc", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4431,7 +4431,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9beiCRztxBvqnDpZATwMvm" + "fileId": "b66bh4h9ZP6IqiAmoF2HNk" }, { "__type__": "cc.PrefabInfo", @@ -4441,7 +4441,7 @@ "asset": { "__id__": 0 }, - "fileId": "b2PkzxpZtHk6gZSuvGa2Gv", + "fileId": "c3ISHcQXNJ14k86QJvmgZM", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4472,7 +4472,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "bcOBzVI2xL5bt26+UApr8d" + "fileId": "a1MF4aYyhOFaUdtwa2PKlJ" }, { "__type__": "cc.PrefabInfo", @@ -4482,7 +4482,7 @@ "asset": { "__id__": 0 }, - "fileId": "2ar7yXG+tHOYE6NeFwmVss", + "fileId": "db0kC19iBHKLO1XBf8j9e9", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4513,7 +4513,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "737zWakShG77YeMSRD5gp/" + "fileId": "64ONqT42lAC6qKFqw2XAF2" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4537,7 +4537,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "4axGW+lLxBT7tyM6JS5FL4" + "fileId": "7eF1URB0VNF6SGieNbBlt0" }, { "__type__": "cc.PrefabInfo", @@ -4547,7 +4547,7 @@ "asset": { "__id__": 0 }, - "fileId": "8bTy+kNwFDxpLzoxNxfDPT", + "fileId": "e7o6SSfbFPg5/t+W1vZzQ5", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4572,7 +4572,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "a7QkLbRadPBrFg8pisagun" + "fileId": "9btelSsZ5O9pQbAXidqSxw" }, { "__type__": "cc.UITransform", @@ -4600,7 +4600,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "21rvqNF4RFHJeWRuFC9r8U" + "fileId": "71DzXLBJJAbpFF8W3ZPUKB" }, { "__type__": "cc.Sprite", @@ -4645,7 +4645,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "baNaNybklOVa3PBNo/24D9" + "fileId": "28p35qa29DG4vb2Rg7wsbB" }, { "__type__": "cc.PrefabInfo", @@ -4655,7 +4655,7 @@ "asset": { "__id__": 0 }, - "fileId": "24iEtmnYlIyJU32LdwniQK", + "fileId": "4dNVf/ecxIa7h/zv1WxpVO", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null diff --git a/assets/Game/scripts/SlotGame.ts b/assets/Game/scripts/SlotGame.ts index 8fbe8c2..ac5fb9a 100644 --- a/assets/Game/scripts/SlotGame.ts +++ b/assets/Game/scripts/SlotGame.ts @@ -161,7 +161,7 @@ export class SlotGame extends Component { //小游戏中只显示一个文本并且不移动 if (this.isInfreeSpin) { let sprite = this.moveSprite[0]; - sprite.node.setPosition(-sprite.spriteFrame.width / 2, 0, 0); + sprite.node.setPosition(-sprite.node.getComponent(UITransform).width / 2, 0, 0); return } else { let sprite = this.moveSprite[0]; diff --git a/assets/Game/scripts/SlotScene.ts b/assets/Game/scripts/SlotScene.ts index d5bcdd0..cc72676 100644 --- a/assets/Game/scripts/SlotScene.ts +++ b/assets/Game/scripts/SlotScene.ts @@ -800,8 +800,6 @@ export class SlotScene extends Component { this.slotBar.spinAniStop() this.slotBar.setGraySpinBtn(false) }, delay) - - } isfirstSpinInFreeMode() {