Browse Source

抢庄页面改

master
cristianoxin 4 months ago
parent
commit
c8165e1003
  1. 1210
      assets/20008/prefab/SIXABGame.prefab
  2. 12
      assets/20008/res/font/robBanker.meta
  3. 14
      assets/20008/res/font/robBanker/robBanker.fnt
  4. 132
      assets/20008/res/font/robBanker/robBanker.fnt.meta
  5. BIN
      assets/20008/res/font/robBanker/robBanker.png
  6. 134
      assets/20008/res/font/robBanker/robBanker.png.meta
  7. 12
      assets/20008/res/spine/robBanker.meta
  8. 55
      assets/20008/res/spine/robBanker/qiangzhuang.atlas
  9. 12
      assets/20008/res/spine/robBanker/qiangzhuang.atlas.meta
  10. 1
      assets/20008/res/spine/robBanker/qiangzhuang.json
  11. 11
      assets/20008/res/spine/robBanker/qiangzhuang.json.meta
  12. BIN
      assets/20008/res/spine/robBanker/qiangzhuang.png
  13. 42
      assets/20008/res/spine/robBanker/qiangzhuang.png.meta
  14. BIN
      assets/20008/res/textures/robBanker/qz_pic_tipsbg.png
  15. 134
      assets/20008/res/textures/robBanker/qz_pic_tipsbg.png.meta
  16. 20
      assets/20008/scr/ui/SIXABTipLayer.ts

1210
assets/20008/prefab/SIXABGame.prefab

File diff suppressed because it is too large

12
assets/20008/res/font/robBanker.meta

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "30c9d884-60f4-478b-95f0-5dbe627cfb60",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

14
assets/20008/res/font/robBanker/robBanker.fnt

@ -0,0 +1,14 @@
info face="face" size=47
common lineHeight=47 scaleW=172 scaleH=96 pages=1
page id=0 file="robBanker.png"
chars count=10
char id=48 x=0 y=0 width=34 height=47 xoffset=0 yoffset=0 xadvance=34 page=0 chnl=15
char id=49 x=141 y=49 width=26 height=47 xoffset=0 yoffset=0 xadvance=26 page=0 chnl=15
char id=50 x=72 y=0 width=33 height=47 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=15
char id=51 x=107 y=49 width=31 height=47 xoffset=0 yoffset=0 xadvance=31 page=0 chnl=15
char id=52 x=36 y=0 width=34 height=47 xoffset=0 yoffset=0 xadvance=34 page=0 chnl=15
char id=53 x=141 y=0 width=31 height=47 xoffset=0 yoffset=0 xadvance=31 page=0 chnl=15
char id=54 x=0 y=49 width=33 height=47 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=15
char id=55 x=107 y=0 width=32 height=47 xoffset=0 yoffset=0 xadvance=32 page=0 chnl=15
char id=56 x=35 y=49 width=33 height=47 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=15
char id=57 x=70 y=49 width=33 height=47 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=15

132
assets/20008/res/font/robBanker/robBanker.fnt.meta

@ -0,0 +1,132 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "fd7ae0ca-30d8-4586-8a8f-ac37f8eb7985",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 47,
"fontSize": 47,
"atlasName": "robBanker.png",
"fontDefDictionary": {
"48": {
"rect": {
"x": 0,
"y": 0,
"width": 34,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 34
},
"49": {
"rect": {
"x": 141,
"y": 49,
"width": 26,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 26
},
"50": {
"rect": {
"x": 72,
"y": 0,
"width": 33,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 33
},
"51": {
"rect": {
"x": 107,
"y": 49,
"width": 31,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 31
},
"52": {
"rect": {
"x": 36,
"y": 0,
"width": 34,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 34
},
"53": {
"rect": {
"x": 141,
"y": 0,
"width": 31,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 31
},
"54": {
"rect": {
"x": 0,
"y": 49,
"width": 33,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 33
},
"55": {
"rect": {
"x": 107,
"y": 0,
"width": 32,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 32
},
"56": {
"rect": {
"x": 35,
"y": 49,
"width": 33,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 33
},
"57": {
"rect": {
"x": 70,
"y": 49,
"width": 33,
"height": 47
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 33
}
},
"kerningDict": {}
},
"fontSize": 47,
"textureUuid": "27c9fa13-a687-4f79-8002-73d72a6f5474"
}
}

BIN
assets/20008/res/font/robBanker/robBanker.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

134
assets/20008/res/font/robBanker/robBanker.png.meta

@ -0,0 +1,134 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"uuid": "27c9fa13-a687-4f79-8002-73d72a6f5474",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "27c9fa13-a687-4f79-8002-73d72a6f5474@6c48a",
"displayName": "robBanker",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "27c9fa13-a687-4f79-8002-73d72a6f5474",
"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": "27c9fa13-a687-4f79-8002-73d72a6f5474@f9941",
"displayName": "robBanker",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 3,
"width": 172,
"height": 91,
"rawWidth": 172,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-86,
-45.5,
0,
86,
-45.5,
0,
-86,
45.5,
0,
86,
45.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
93,
172,
93,
0,
2,
172,
2
],
"nuv": [
0,
0.020833333333333332,
1,
0.020833333333333332,
0,
0.96875,
1,
0.96875
],
"minPos": [
-86,
-45.5,
0
],
"maxPos": [
86,
45.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "27c9fa13-a687-4f79-8002-73d72a6f5474@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "27c9fa13-a687-4f79-8002-73d72a6f5474@f9941"
}
}

12
assets/20008/res/spine/robBanker.meta

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "92a00c7a-10af-4017-98b9-cf2dc28de114",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

55
assets/20008/res/spine/robBanker/qiangzhuang.atlas

@ -0,0 +1,55 @@
qiangzhuang.png
size: 364, 329
format: RGBA8888
filter: Linear, Linear
repeat: none
btn
rotate: false
xy: 2, 2
size: 152, 153
orig: 160, 161
offset: 7, 7
index: -1
btns
rotate: false
xy: 173, 213
size: 114, 114
orig: 116, 116
offset: 1, 1
index: -1
gq
rotate: true
xy: 156, 16
size: 139, 131
orig: 148, 138
offset: 5, 3
index: -1
gx
rotate: true
xy: 2, 157
size: 170, 169
orig: 183, 184
offset: 6, 8
index: -1
sg
rotate: true
xy: 289, 117
size: 210, 73
orig: 216, 81
offset: 3, 4
index: -1
yes1
rotate: false
xy: 173, 164
size: 91, 47
orig: 94, 49
offset: 2, 1
index: -1
yes2
rotate: true
xy: 289, 51
size: 64, 65
orig: 68, 67
offset: 2, 1
index: -1

12
assets/20008/res/spine/robBanker/qiangzhuang.atlas.meta

@ -0,0 +1,12 @@
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "eb0efbe8-0e3a-486e-a7d6-8e6629308bcd",
"files": [
".atlas",
".json"
],
"subMetas": {},
"userData": {}
}

1
assets/20008/res/spine/robBanker/qiangzhuang.json

@ -0,0 +1 @@
{"skeleton":{"hash":"wIsTORDr4ZY","spine":"3.7-from-3.8-from-4.0-from-4.1.19","x":-813,"y":-448.5,"width":1626,"height":775,"images":"./images/","audio":"E:/工作/小贝/老周/新版/spine/抢庄"},"bones":[{"name":"root"},{"name":"btn","parent":"root"},{"name":"gx","parent":"btn","scaleX":3,"scaleY":3},{"name":"sg","parent":"btn","x":2.21,"y":-3.06},{"name":"gq2","parent":"btn","x":2,"y":3.5,"scaleX":2,"scaleY":2}],"slots":[{"name":"gx","bone":"gx","attachment":"gx"},{"name":"gq","bone":"gq2","attachment":"gq"},{"name":"gq2","bone":"gq2","attachment":"gq"},{"name":"btn","bone":"btn","attachment":"btn"},{"name":"btns","bone":"btn","blend":"additive"},{"name":"yes1","bone":"btn"},{"name":"guandian_font","bone":"btn"},{"name":"mask","bone":"btn","attachment":"mask"},{"name":"sg","bone":"sg","blend":"additive"}],"animations":{"btn1":{"slots":{"btns":{"color":[{"time":2.5,"color":"ffffff00"},{"time":2.8,"color":"b3ff4399"},{"time":3.1,"color":"ffffff00"}],"attachment":[{"time":2.5,"name":"btns"}]},"gq":{"color":[{"color":"ffffff71","time":0.0},{"time":0.8333,"color":"ffffffff"},{"time":1.6667,"color":"ffffff71"},{"time":2.5,"color":"ffffffff"},{"time":3.3333,"color":"ffffff71"}]},"gq2":{"color":[{"color":"ffffff71","time":0.0},{"time":0.8333,"color":"ffffffff"},{"time":1.6667,"color":"ffffff71"},{"time":2.5,"color":"ffffffff"},{"time":3.3333,"color":"ffffff71"}]},"sg":{"color":[{"time":0.6667,"color":"30e3ffff"}],"attachment":[{"time":0.6667,"name":"sg"}]},"yes1":{"attachment":[{"name":"yes1","time":0.0}]}},"bones":{"btn":{"scale":[{"x":1.094,"y":1.094,"time":0.0},{"time":0.8333,"x":1.0,"y":1.0},{"time":1.6667,"x":1.094,"y":1.094},{"time":2.5,"x":1.0,"y":1.0},{"time":3.3333,"x":1.094,"y":1.094}]},"gq2":{"rotate":[{"time":0.0,"angle":0.0},{"time":0.8333,"angle":90},{"time":1.6667,"angle":180},{"time":2.5,"angle":270},{"time":3.3333,"angle":360}],"scale":[{"x":1.011,"y":1.011,"time":0.0},{"time":0.8333,"x":0.925,"y":0.925},{"time":1.6667,"x":1.011,"y":1.011},{"time":2.5,"x":0.925,"y":0.925},{"time":3.3333,"x":1.011,"y":1.011}]},"gx":{"scale":[{"time":0.0,"x":1.0,"y":1.0},{"time":0.8333,"x":1.108,"y":1.108},{"time":1.6667,"x":1.0,"y":1.0},{"time":2.5,"x":1.108,"y":1.108},{"time":3.3333,"x":1.0,"y":1.0}]},"sg":{"rotate":[{"time":0.6667,"angle":35.22}],"translate":[{"time":0.6667,"x":-62.21,"y":88.11},{"time":2.3333,"x":73.03,"y":-103.45}],"scale":[{"time":0.6667,"x":0.482,"y":1.0}]}}},"btn2":{"slots":{"btns":{"color":[{"time":2.5,"color":"ffffff00"},{"time":2.8,"color":"b3ff4399"},{"time":3.1,"color":"ffffff00"}],"attachment":[{"time":2.5,"name":"btns"}]},"gq":{"color":[{"color":"ffffff71","time":0.0},{"time":0.8333,"color":"ffffffff"},{"time":1.6667,"color":"ffffff71"},{"time":2.5,"color":"ffffffff"},{"time":3.3333,"color":"ffffff71"}]},"gq2":{"color":[{"color":"ffffff71","time":0.0},{"time":0.8333,"color":"ffffffff"},{"time":1.6667,"color":"ffffff71"},{"time":2.5,"color":"ffffffff"},{"time":3.3333,"color":"ffffff71"}]},"sg":{"color":[{"time":0.6667,"color":"30e3ffff"}],"attachment":[{"time":0.6667,"name":"sg"}]},"yes1":{"attachment":[{"name":"yes2","time":0.0}]}},"bones":{"btn":{"scale":[{"x":1.094,"y":1.094,"time":0.0},{"time":0.8333,"x":1.0,"y":1.0},{"time":1.6667,"x":1.094,"y":1.094},{"time":2.5,"x":1.0,"y":1.0},{"time":3.3333,"x":1.094,"y":1.094}]},"gq2":{"rotate":[{"time":0.0,"angle":0.0},{"time":0.8333,"angle":90},{"time":1.6667,"angle":180},{"time":2.5,"angle":270},{"time":3.3333,"angle":360}],"scale":[{"x":1.011,"y":1.011,"time":0.0},{"time":0.8333,"x":0.925,"y":0.925},{"time":1.6667,"x":1.011,"y":1.011},{"time":2.5,"x":0.925,"y":0.925},{"time":3.3333,"x":1.011,"y":1.011}]},"gx":{"scale":[{"time":0.0,"x":1.0,"y":1.0},{"time":0.8333,"x":1.108,"y":1.108},{"time":1.6667,"x":1.0,"y":1.0},{"time":2.5,"x":1.108,"y":1.108},{"time":3.3333,"x":1.0,"y":1.0}]},"sg":{"rotate":[{"time":0.6667,"angle":35.22}],"translate":[{"time":0.6667,"x":-62.21,"y":88.11},{"time":2.3333,"x":73.03,"y":-103.45}],"scale":[{"time":0.6667,"x":0.482,"y":1.0}]}}}},"skins":{"default":{"btn":{"btn":{"width":160,"height":161}},"btns":{"btns":{"x":3,"y":2.5,"width":116,"height":116}},"gq":{"gq":{"width":148,"height":138}},"gq2":{"gq":{"width":148,"height":138}},"gx":{"gx":{"y":1.5,"width":183,"height":184}},"mask":{"mask":{"type":"clipping","end":"sg","vertexCount":28,"vertices":[-10.25,57.34,-24.38,51.69,-36.63,42.97,-46.52,31.2,-52.41,16.36,-54.05,1.06,-51.93,-12.6,-46.28,-25.79,-39.45,-35.44,-30.51,-43.45,-19.44,-49.34,-7.43,-53.34,5.05,-54.28,16.59,-52.4,28.13,-48.16,41.08,-39.21,48.62,-30.26,53.8,-21.08,57.33,-10.72,59.21,0.82,58.51,12.13,55.92,22.72,49.09,35.44,39.9,45.33,29.54,52.63,18.24,57.34,6.7,58.75,-2.01,58.75],"color":"ce3a3aff"}},"sg":{"sg":{"x":0.91,"y":-0.18,"width":216,"height":81}},"yes1":{"yes1":{"x":2.5,"y":14.5,"width":94,"height":49},"yes2":{"x":5.5,"y":19,"width":68,"height":67}}}}}

11
assets/20008/res/spine/robBanker/qiangzhuang.json.meta

@ -0,0 +1,11 @@
{
"ver": "1.2.6",
"importer": "spine-data",
"imported": true,
"uuid": "c1ca72d3-1432-464d-a612-56cb4e597af2",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

BIN
assets/20008/res/spine/robBanker/qiangzhuang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

42
assets/20008/res/spine/robBanker/qiangzhuang.png.meta

@ -0,0 +1,42 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"uuid": "320f6bc6-f540-4785-a3bc-52c4bfd75cdf",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "320f6bc6-f540-4785-a3bc-52c4bfd75cdf@6c48a",
"displayName": "qiangzhuang",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "320f6bc6-f540-4785-a3bc-52c4bfd75cdf",
"visible": true
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "320f6bc6-f540-4785-a3bc-52c4bfd75cdf@6c48a"
}
}

BIN
assets/20008/res/textures/robBanker/qz_pic_tipsbg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

134
assets/20008/res/textures/robBanker/qz_pic_tipsbg.png.meta

@ -0,0 +1,134 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"uuid": "564fe448-0d15-4bbe-b707-4d94a2207c7f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "564fe448-0d15-4bbe-b707-4d94a2207c7f@6c48a",
"displayName": "qz_pic_tipsbg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "564fe448-0d15-4bbe-b707-4d94a2207c7f",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "564fe448-0d15-4bbe-b707-4d94a2207c7f@f9941",
"displayName": "qz_pic_tipsbg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 606,
"height": 44,
"rawWidth": 606,
"rawHeight": 44,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-303,
-22,
0,
303,
-22,
0,
-303,
22,
0,
303,
22,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
44,
606,
44,
0,
0,
606,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-303,
-22,
0
],
"maxPos": [
303,
22,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "564fe448-0d15-4bbe-b707-4d94a2207c7f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "564fe448-0d15-4bbe-b707-4d94a2207c7f@f9941"
}
}

20
assets/20008/scr/ui/SIXABTipLayer.ts

@ -1,4 +1,4 @@
import { Button, Component, Label, Node, UITransform, find } from "cc";
import { Button, Component, Label, Node, UITransform, find, sp } from "cc";
import { NextState, NotifyBanker, NotifyCurrentBanker, NotifyPoker, NotifyStateTime, RoomPlayer, SIXABCardPos, SIXABGetBanker, SIXABNetCode, SIXABPanelConst } from "../codeData/SIXABConst";
import { SIXABGame } from "../SIXABGame";
import { I18Manager, Message, Network, UILayerIndex, UIManager } from "../sdk/API";
@ -10,6 +10,8 @@ export class SIXABTipLayer extends Component{
/**抢庄按钮 */
private getBanker:Node;
/**yes动画 */
private robBankerEffect:sp.Skeleton;
/**抢 */
private robBanker:Button;
/**不抢 */
@ -38,6 +40,7 @@ export class SIXABTipLayer extends Component{
this.awaitTip.active = false;
this.awaitTipUITran = find("awaitTip",this.node)?.getComponent(UITransform);
this.awaitTipLabel = find("awaitTip/Label",this.node)?.getComponent(Label);
this.robBankerEffect = find("getBanker/robBanker/yes",this.node)?.getComponent(sp.Skeleton);
this.bankerCountDown_1 = find("getBanker/robBanker/countDown",this.node)?.getComponent(Label);
this.applyBanker = find("playerBanker",this.node);
this.applyBankerLabel = find("playerBanker/Label",this.node)?.getComponent(Label);
@ -144,6 +147,7 @@ export class SIXABTipLayer extends Component{
this.isBanker = true;
this.countDown(time);
this.getBanker.active = true;
this.setCurrLanguage();
break
case NextState.STATE_BEGIN:
break
@ -172,6 +176,20 @@ export class SIXABTipLayer extends Component{
}
}
private setCurrLanguage(){
const luange:string = I18Manager.getInstance().getLanguage();
let animation:number = 1;
switch(luange){
case "en":
animation = 1;
break;
case "in":
animation = 2;
break;
}
this.robBankerEffect.animation = `btn${animation}`;
}
private count:number = 5;
private countDown(time:number){
this.count = time;

Loading…
Cancel
Save