大字体倍率的显示

This commit is contained in:
TJH 2025-09-15 11:26:39 +08:00
parent c05be2727b
commit dd005d0338
50 changed files with 537 additions and 220 deletions

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "3c4d4994-66fc-45a9-8cf6-841ded1e5d20",
"uuid": "5988a31c-346d-4df5-92a3-177855d991f6",
"files": [],
"subMetas": {},
"userData": {}

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "eebf365b-9852-4f64-8dfc-e7c3b69aedae",
"files": [
".json",
".zip"
],
"subMetas": {},
"userData": {}
}

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "21c83ffb-1785-4aab-88f2-448c5ecbaafa",
"uuid": "e6ee7498-3d84-48e4-9eae-fb7159842fc0",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/ways数字/ways.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/ways数字/ways.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "3237faf3-dca4-447b-a5e2-4f447ae4a05d",
"uuid": "310e3d04-88e0-418e-bd8d-4867846775f2",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/win数字/win_nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/win数字/win_nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "b8417a35-8c66-4da6-83a2-299d660d5344",
"uuid": "70480116-1631-4590-bdd4-e55bf24619a3",
"files": [],
"subMetas": {},
"userData": {}

View File

@ -1,16 +1,16 @@
info face="Arial" size=10 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=2,2
common lineHeight=380 base=10 scaleW=5280 scaleH=380 pages=1 packed=0
common lineHeight=232 base=10 scaleW=3339 scaleH=232 pages=1 packed=0
page id=0 file="mf_nb.png"
chars count=12
char id=120 x=0 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="x"
char id=48 x=440 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="0"
char id=49 x=880 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="1"
char id=50 x=1320 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="2"
char id=51 x=1760 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="3"
char id=52 x=2200 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="4"
char id=53 x=2640 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="5"
char id=54 x=3080 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="6"
char id=55 x=3520 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="7"
char id=56 x=3960 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="8"
char id=57 x=4400 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="9"
char id=32 x=4840 y=0 width=440 height=380 xoffset=0 yoffset=0 xadvance=440 page=0 chnl=0 page=0 letter="space"
char id=57 x=0 y=0 width=298 height=232 xoffset=0 yoffset=0 xadvance=298 page=0 chnl=0 page=0 letter="9"
char id=48 x=298 y=0 width=299 height=232 xoffset=0 yoffset=0 xadvance=299 page=0 chnl=0 page=0 letter="0"
char id=49 x=597 y=0 width=165 height=232 xoffset=0 yoffset=0 xadvance=165 page=0 chnl=0 page=0 letter="1"
char id=50 x=762 y=0 width=298 height=232 xoffset=0 yoffset=0 xadvance=298 page=0 chnl=0 page=0 letter="2"
char id=51 x=1060 y=0 width=301 height=232 xoffset=0 yoffset=0 xadvance=301 page=0 chnl=0 page=0 letter="3"
char id=52 x=1361 y=0 width=290 height=232 xoffset=0 yoffset=0 xadvance=290 page=0 chnl=0 page=0 letter="4"
char id=53 x=1651 y=0 width=298 height=232 xoffset=0 yoffset=0 xadvance=298 page=0 chnl=0 page=0 letter="5"
char id=54 x=1949 y=0 width=298 height=232 xoffset=0 yoffset=0 xadvance=298 page=0 chnl=0 page=0 letter="6"
char id=55 x=2247 y=0 width=278 height=232 xoffset=0 yoffset=0 xadvance=278 page=0 chnl=0 page=0 letter="7"
char id=56 x=2525 y=0 width=298 height=232 xoffset=0 yoffset=0 xadvance=298 page=0 chnl=0 page=0 letter="8"
char id=120 x=2823 y=0 width=215 height=170 xoffset=0 yoffset=40 xadvance=215 page=0 chnl=0 page=0 letter="x"
char id=32 x=3038 y=0 width=301 height=232 xoffset=0 yoffset=0 xadvance=301 page=0 chnl=0 page=0 letter="space"

View File

@ -9,141 +9,141 @@
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 380,
"commonHeight": 232,
"fontSize": 10,
"atlasName": "mf_nb.png",
"fontDefDictionary": {
"32": {
"rect": {
"x": 4840,
"x": 3038,
"y": 0,
"width": 440,
"height": 380
"width": 301,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 301
},
"48": {
"rect": {
"x": 440,
"x": 298,
"y": 0,
"width": 440,
"height": 380
"width": 299,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 299
},
"49": {
"rect": {
"x": 880,
"x": 597,
"y": 0,
"width": 440,
"height": 380
"width": 165,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 165
},
"50": {
"rect": {
"x": 1320,
"x": 762,
"y": 0,
"width": 440,
"height": 380
"width": 298,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 298
},
"51": {
"rect": {
"x": 1760,
"x": 1060,
"y": 0,
"width": 440,
"height": 380
"width": 301,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 301
},
"52": {
"rect": {
"x": 2200,
"x": 1361,
"y": 0,
"width": 440,
"height": 380
"width": 290,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 290
},
"53": {
"rect": {
"x": 2640,
"x": 1651,
"y": 0,
"width": 440,
"height": 380
"width": 298,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 298
},
"54": {
"rect": {
"x": 3080,
"x": 1949,
"y": 0,
"width": 440,
"height": 380
"width": 298,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 298
},
"55": {
"rect": {
"x": 3520,
"x": 2247,
"y": 0,
"width": 440,
"height": 380
"width": 278,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 278
},
"56": {
"rect": {
"x": 3960,
"x": 2525,
"y": 0,
"width": 440,
"height": 380
"width": 298,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 298
},
"57": {
"rect": {
"x": 4400,
"x": 0,
"y": 0,
"width": 440,
"height": 380
"width": 298,
"height": 232
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"xAdvance": 298
},
"120": {
"rect": {
"x": 0,
"x": 2823,
"y": 0,
"width": 440,
"height": 380
"width": 215,
"height": 170
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 440
"yOffset": 40,
"xAdvance": 215
}
},
"kerningDict": {}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 932 KiB

View File

@ -42,14 +42,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -199.5,
"offsetX": -150.5,
"offsetY": 0,
"trimX": 44,
"trimX": 0,
"trimY": 0,
"width": 4793,
"height": 380,
"rawWidth": 5280,
"rawHeight": 380,
"width": 3038,
"height": 232,
"rawWidth": 3339,
"rawHeight": 232,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-2396.5,
-190,
-1519,
-116,
0,
2396.5,
-190,
1519,
-116,
0,
-2396.5,
190,
-1519,
116,
0,
2396.5,
190,
1519,
116,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
44,
380,
4837,
380,
44,
0,
4837,
232,
3038,
232,
0,
0,
3038,
0
],
"nuv": [
0.008333333333333333,
0,
0.9160984848484849,
0,
0.008333333333333333,
0.909853249475891,
0,
0,
1,
0.9160984848484849,
0.909853249475891,
1
],
"minPos": [
-2396.5,
-190,
-1519,
-116,
0
],
"maxPos": [
2396.5,
190,
1519,
116,
0
]
},

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "8dfbc27e-4646-4236-b1f5-5b63041e1e83",
"uuid": "a66b031d-086f-47d6-940a-ddca2264ff63",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/免费模式数字/nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/免费模式数字/nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 248 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "b4e755cb-86e4-404f-9b94-64b45859a105",
"uuid": "0323ada8-d119-40fb-8d13-657482e39bd3",
"files": [],
"subMetas": {},
"userData": {}

View File

BIN
assets/Game/fonts/字体/免费游戏数字/mfxz_nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 575 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "91edcdb6-9d54-47d2-b809-332ee63e8c1d",
"uuid": "fc1d4d31-fd5e-48a9-b8f7-be50ce362eb3",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/加载数字/jz_nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/加载数字/jz_nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "33bacaa0-85fe-43e0-98df-9ab90fb8a2ea",
"uuid": "509dffa3-f51a-499d-ba33-3e10077525f1",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/咨询数字/nb_big.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/咨询数字/nb_big.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

0
assets/Game/fonts/字体/咨询数字/nb_big2.png.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/咨询数字/nb_big2.png.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

0
assets/Game/fonts/字体/咨询数字/nb_small.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/咨询数字/nb_small.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

0
assets/Game/fonts/字体/咨询数字/nb_small2.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/咨询数字/nb_small2.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "6cfd8156-236d-4540-ba45-d03bc06a3528",
"uuid": "17da85d9-6624-40a9-a963-8a7bb0f80b71",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/旋转数字/xz_nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/旋转数字/xz_nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a10ea0e3-fdb4-4fe4-90f2-88829e901270",
"uuid": "71e0e917-2da5-46b6-b6c5-3bf1aee48560",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/结算数字/nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/结算数字/nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 114 KiB

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "65c09dee-6d84-4ffb-b9a6-c101b6c4ad47",
"uuid": "1c5d3874-f7cc-43fb-a031-4ce216852e5d",
"files": [],
"subMetas": {},
"userData": {}

0
assets/Game/fonts/字体/跑马灯数字/pmd_nb.fnt Executable file → Normal file
View File

BIN
assets/Game/fonts/字体/跑马灯数字/pmd_nb.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because it is too large Load Diff

View File

@ -398,9 +398,8 @@ export class SlotGame extends Component {
}
showMultiMove() {
let multiMove = this.node.getChildByName('multiMove')
this.rollerManager.showMultiMove(multiMove)
showMultiMove(multiNum) {
this.rollerManager.showMultiMove(multiNum)
}

View File

@ -749,7 +749,7 @@ export class SlotScene extends Component {
}
//播放倍率飞到信息栏的动画
if (this.spinData.XnInfo.NowN > 1) {
this.slotGame.showMultiMove()
this.slotGame.showMultiMove(this.spinData.XnInfo.NowN)
}
// 3,4,5

View File

@ -677,7 +677,7 @@ export abstract class BaseRoller extends Component {
abstract playFrameTypeChangeAni(positions: number[]): void;
abstract showMultiMove(multiMove: Node): void;
abstract showMultiMove(multiNum: number): void;
abstract chanegeIconAndFrameType(data: any[]): void;

View File

@ -629,11 +629,11 @@ export class HRoller extends BaseRoller {
this.node.emit(ROLLER_EVENT.ICON_DELETED, this._rollerId);
}
showMultiMove(multiMove: Node) {
showMultiMove(multiNum: number) {
let allIcons = Array.from(this._allIcons.values());
allIcons.forEach(icon => {
if (!icon || !icon.isValid) return;
icon.getComponent(Icon).playNormalMultiMove(multiMove)
icon.getComponent(Icon).playNormalMultiMove(multiNum)
});
}

View File

@ -476,22 +476,48 @@ export class Icon extends Component {
this.playSpawnAnimation()
}
playNormalMultiMove(multiMove: Node) {
playNormalMultiMove(multiNum: number) {
if (this._iconId != 2) return
let slotGame = this.node.parent.parent.parent.parent.parent.parent
this._normalSpriteNode.getComponent(UIOpacity).opacity = 150
let multiMoveNode = instantiate(slotGame.getChildByName('multiMove'))
let bigMultiNode = slotGame.parent.getChildByName('showMulti')
let bigMultiLabel = bigMultiNode.getChildByName('multi')
multiMoveNode.parent = slotGame
multiMoveNode.setWorldPosition(this.node.getWorldPosition())
multiMoveNode.getComponent(Sprite).spriteFrame = this.multiSprite[this._multi]
tween(multiMoveNode)
.to(0.5, { scale: new Vec3(1.4, 1.4, 1) })
.to(1.5, { position: new Vec3(0, 100, 0) })
.to(0.5, { position: new Vec3(0, -176, 0) })
.delay(0.3)
.to(1, { scale: new Vec3(0.8, 0.8, 1) })
.start()
tween(multiMoveNode)
.to(0.3, { scale: new Vec3(1.4, 1.4, 1) })
.to(1, { position: new Vec3(0, 100, 0) })
.call(() => {
multiMoveNode.destroy()
if (bigMultiNode.active) return
bigMultiLabel.getComponent(Label).string = 'x' + multiNum
bigMultiNode.active = true
tween(bigMultiLabel.getComponent(UIOpacity))
.to(0.3, { opacity: 255 })
.delay(0.7)
.to(0.3, { opacity: 0 })
.start()
tween(bigMultiLabel)
.to(0.3, { scale: new Vec3(0.24, 0.24, 1) })
.to(0.3, { scale: new Vec3(0.2, 0.2, 1) })
.to(0.4, { position: new Vec3(0, -450, 0) })
.to(0.3, { scale: new Vec3(0.3, 0.3, 1) })
.call(() => {
bigMultiLabel.setPosition(0, 0, 0)
bigMultiLabel.setScale(0.2, 0.2, 1)
bigMultiNode.active = false
})
.start()
})
.start()
}

View File

@ -695,11 +695,11 @@ export class Roller extends BaseRoller {
}
showMultiMove(multiMove: Node) {
showMultiMove(multiNum: number) {
let allIcons = Array.from(this._allIcons.values());
allIcons.forEach(icon => {
if (!icon || !icon.isValid) return;
icon.getComponent(Icon).playNormalMultiMove(multiMove)
icon.getComponent(Icon).playNormalMultiMove(multiNum)
});
}

View File

@ -617,10 +617,10 @@ export class RollerManager extends Component {
return roller.getContentNode();
}
showMultiMove(multiMove: Node) {
showMultiMove(multiNum: number) {
for (let i = 0; i < this.allRollers.length; i++) {
let roller = this.allRollers[i];
roller.showMultiMove(multiMove)
roller.showMultiMove(multiNum)
}
}

View File

@ -7,7 +7,7 @@ import { PREVIEW } from "cc/env"
const gameId = "rp_10012";
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
let apiaddr = "";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NTc2ODU5NzMsIlMiOjk5NiwiRCI6InJwXzEwMDEyIn0.ICaHIo1nKP1ZfXfPSI86vOHeKF4VsNt3OQNEU6laN2w";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NTc5NDM3NjAsIlMiOjEwMDMsIkQiOiJycF8xMDAxMiJ9._wN9bG5q9Pa8FL6mOEHLCyyxnCWzKcfqYRTryyrmXsE";
let language = "en"
let currency = "THB"
let supportUrl = ""