This commit is contained in:
TJH 2026-02-08 15:37:39 +08:00
parent 974f0339f7
commit e549a2402e
24 changed files with 1540 additions and 1038 deletions

View File

@ -1,12 +0,0 @@
{
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"files": [
".json",
"Avenir Next World Medium.ttf"
],
"subMetas": {},
"userData": {}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "15c5f239-0858-470f-88e1-d516729e1409",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -2,10 +2,10 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "7e072d14-f23f-45c4-90a4-64373fbcd6a5",
"uuid": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"files": [
".json",
"Pyidaungsu.ttf"
"AvenirNextWorldDemi.ttf"
],
"subMetas": {},
"userData": {}

View File

@ -2,10 +2,10 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"uuid": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"files": [
".json",
"Avenir Next World Demi.ttf"
"AvenirNextWorldMedium.ttf"
],
"subMetas": {},
"userData": {}

View File

@ -2,7 +2,7 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"uuid": "04b2382d-084e-4641-8293-37cfa724b9e6",
"files": [
".json",
"Pyidaungsu_Bold.ttf"

View File

@ -2,7 +2,7 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "78f28491-4722-42b8-a068-34405c8ea56e",
"uuid": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"files": [
".json",
"Pyidaungsu_Regular.ttf"

Binary file not shown.

View File

@ -2,10 +2,10 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"uuid": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"files": [
".json",
"Roboto Bold.ttf"
"Roboto_Bold.ttf"
],
"subMetas": {},
"userData": {}

Binary file not shown.

View File

@ -2,10 +2,10 @@
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"uuid": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"files": [
".json",
"Roboto Regular.ttf"
"Roboto_Regular.ttf"
],
"subMetas": {},
"userData": {}

View File

@ -1211,7 +1211,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 199.531,
"y": 195.903,
"z": 0
},
"_lrot": {
@ -1290,14 +1290,14 @@
"_string": "Auto Spin",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 56,
"_actualFontSize": 57,
"_fontSize": 56,
"_fontFamily": "Arial",
"_lineHeight": 58,
"_lineHeight": 56,
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1369,27 +1369,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -1441,7 +1441,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -155,
"y": -153.583,
"z": 0
},
"_lrot": {
@ -1527,7 +1527,7 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1599,27 +1599,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -1670,8 +1670,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 345.572,
"y": 75.314,
"x": 333.985,
"y": 74.801,
"z": 0
},
"_lrot": {
@ -1711,8 +1711,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 320,
"height": 32
"width": 256.2294921875,
"height": 32.76
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1747,17 +1747,17 @@
"b": 255,
"a": 255
},
"_string": "Number of Rounds",
"_string": "Number of Auto Spins",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 28,
"_fontSize": 28,
"_actualFontSize": 26,
"_fontSize": 26,
"_fontFamily": "Arial",
"_lineHeight": 26,
"_overflow": 2,
"_overflow": 0,
"_enableWrapText": false,
"_font": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1829,27 +1829,27 @@
},
"isBold": false,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""

File diff suppressed because it is too large Load Diff

View File

@ -140,7 +140,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920.0000000000002
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -789,8 +789,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 182.887,
"y": -150,
"x": 185.57,
"y": -152.684,
"z": 0
},
"_lrot": {
@ -866,7 +866,7 @@
"b": 255,
"a": 255
},
"_string": "Confirm",
"_string": "Quit",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 42,
@ -876,13 +876,13 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
@ -929,27 +929,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -1223,7 +1223,7 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1276,27 +1276,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -1573,7 +1573,7 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1645,27 +1645,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -1790,7 +1790,7 @@
"b": 255,
"a": 255
},
"_string": "Tip",
"_string": "Quit Game",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 56,
@ -1800,7 +1800,7 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1853,27 +1853,27 @@
},
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -2008,7 +2008,7 @@
"_overflow": 2,
"_enableWrapText": true,
"_font": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -2061,27 +2061,27 @@
},
"isBold": false,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": ""
@ -2118,7 +2118,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920.0000000000002
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2195,7 +2195,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920.0000000000002
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@ -23,7 +23,9 @@ export class SlotBar extends Component {
private autoSpinPanel: Prefab = null;
@property(Node)
private tipSmall: Node = null;
private tipSmall_turbo: Node = null;
@property(Node)
private tipSmall_bet: Node = null;
@property(Node)
private manualStopNode: Node = null;
@ -410,34 +412,49 @@ export class SlotBar extends Component {
showTipSmall(str: string, openTurbo?: boolean) {
// 清理之前的计时器和动画
this.clearTipTimers();
let tipNode = null
if (openTurbo != null) {
this.tipSmall.getChildByPath("layout/Turboon").active = openTurbo
this.tipSmall.getChildByPath("layout/Turbooff").active = !openTurbo
tipNode = this.tipSmall_turbo
this.tipSmall_bet.active = false
tipNode.getChildByPath("layout/Turboon").active = openTurbo
tipNode.getChildByPath("layout/Turbooff").active = !openTurbo
// 设置提示内容
tipNode.active = true;
tipNode.getChildByPath("layout/Label").getComponent(Label).string = str;
let label = tipNode.getChildByPath("layout/Label").getComponent(Label);
label.updateRenderData(true);
tipNode.getChildByPath("layout").getComponent(Layout).updateLayout(true)
let tipWidth = tipNode.getChildByPath("layout").getComponent(UITransform).width;
let frame = tipNode.getChildByName('Frame_Assets');
// 调整框架大小
frame.getComponent(UITransform).setContentSize(tipWidth + 140, 125);
} else {
this.tipSmall.getChildByPath("layout/Turboon").active = false
this.tipSmall.getChildByPath("layout/Turbooff").active = false
tipNode = this.tipSmall_bet
this.tipSmall_turbo.active = false
// 设置提示内容
tipNode.active = true;
tipNode.getChildByPath("Label").getComponent(Label).string = str;
let label = tipNode.getChildByPath("Label").getComponent(Label);
label.updateRenderData(true);
let tipWidth = tipNode.getChildByPath("Label").getComponent(UITransform).width;
let frame = tipNode.getChildByName('Frame_Assets');
// 调整框架大小
frame.getComponent(UITransform).setContentSize(tipWidth + 140, 105);
}
// 设置提示内容
this.tipSmall.getChildByPath("layout/Label").getComponent(Label).string = str;
let label = this.tipSmall.getChildByPath("layout/Label").getComponent(Label);
label.updateRenderData(true);
let tipWidth = this.tipSmall.getChildByPath("layout/Label").getComponent(UITransform).width;
let frame = this.tipSmall.getChildByName('Frame_Assets');
frame.getComponent(UITransform).setContentSize(tipWidth + 100, 105);
// 调整框架大小
setTimeout(() => {
this.tipSmall.active = true;
// 显示动画
this.tipSmall.scale = new Vec3(0, 0, 0);
this.currentTipTween = tween(this.tipSmall)
tipNode.scale = new Vec3(0, 0, 0);
this.currentTipTween = tween(tipNode)
.to(0.1, { scale: new Vec3(1, 1, 1) })
.call(() => {
// 5. 设置隐藏计时器
this.hideTimer = setTimeout(() => {
this.hideTipSmall();
this.hideTipSmall(tipNode);
}, 1000); // 1秒后隐藏
})
.start();
@ -446,15 +463,15 @@ export class SlotBar extends Component {
}
private hideTipSmall() {
if (!this.tipSmall.active) return;
private hideTipSmall(tipNode) {
if (!tipNode.active) return;
this.clearTipTimers(); // 清理可能存在的计时器
this.currentTipTween = tween(this.tipSmall)
this.currentTipTween = tween(tipNode)
.to(0.1, { scale: new Vec3(0, 0, 0) })
.call(() => {
this.tipSmall.active = false;
tipNode.active = false;
this.currentTipTween = null;
})
.start();

View File

@ -23,7 +23,7 @@
"_active": true,
"_components": [],
"_prefab": {
"__id__": 88
"__id__": 89
},
"_lpos": {
"__type__": "cc.Vec3",
@ -54,7 +54,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 89
"__id__": 90
},
"_id": "6c29a3fe-b10e-44a5-98e3-55595b231767"
},
@ -77,14 +77,11 @@
"__id__": 8
},
{
"__id__": 70
"__id__": 71
}
],
"_active": true,
"_components": [
{
"__id__": 83
},
{
"__id__": 84
},
@ -96,6 +93,9 @@
},
{
"__id__": 87
},
{
"__id__": 88
}
],
"_prefab": null,
@ -187,7 +187,7 @@
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 960.0000000000001,
"_orthoHeight": 960,
"_near": 0,
"_far": 2000,
"_color": {
@ -341,14 +341,11 @@
"__id__": 9
},
{
"__id__": 63
"__id__": 64
}
],
"_active": true,
"_components": [
{
"__id__": 66
},
{
"__id__": 67
},
@ -357,6 +354,9 @@
},
{
"__id__": 69
},
{
"__id__": 70
}
],
"_prefab": null,
@ -426,19 +426,19 @@
"__id__": 45
},
{
"__id__": 48
"__id__": 49
},
{
"__id__": 58
"__id__": 59
}
],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 62
},
{
"__id__": 62
"__id__": 63
}
],
"_prefab": null,
@ -1620,7 +1620,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1021.423828125,
"width": 167.138671875,
"height": 69
},
"_anchorPoint": {
@ -1650,17 +1650,17 @@
"b": 255,
"a": 255
},
"_string": "LOADING...",
"_string": "Loading...",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 36,
"_fontSize": 36,
"_fontFamily": "Arial",
"_lineHeight": 50,
"_overflow": 3,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1707,27 +1707,27 @@
"__prefab": null,
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": "88i8H1p61Pp5xAPRWfmHez"
@ -1748,13 +1748,16 @@
},
{
"__id__": 47
},
{
"__id__": 48
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -670,
"y": -551,
"z": 0
},
"_lrot": {
@ -1792,7 +1795,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1021.423828125,
"width": 6,
"height": 69
},
"_anchorPoint": {
@ -1829,10 +1832,10 @@
"_fontSize": 42,
"_fontFamily": "Arial",
"_lineHeight": 50,
"_overflow": 3,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "7d82cd3b-f3fb-43bd-902e-e9ce812e1fb0",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -1867,6 +1870,43 @@
"_shadowBlur": 2,
"_id": "61i0gd04RHWKq/gulfeb0m"
},
{
"__type__": "de146+mh9NCho861VoY+Eu8",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 45
},
"_enabled": true,
"__prefab": null,
"isBold": true,
"fontOther": {
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": "62IwvcKlpKlKKiMClWvxEH"
},
{
"__type__": "cc.Node",
"_name": "Btn",
@ -1877,19 +1917,19 @@
},
"_children": [
{
"__id__": 49
"__id__": 50
}
],
"_active": false,
"_components": [
{
"__id__": 53
},
{
"__id__": 54
},
{
"__id__": 55
},
{
"__id__": 56
}
],
"_prefab": null,
@ -1928,19 +1968,19 @@
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 48
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
},
{
"__id__": 52
},
{
"__id__": 53
}
],
"_prefab": null,
@ -1979,13 +2019,13 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 49
"__id__": 50
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 313.4249267578125,
"width": 284.17236328125,
"height": 56.7
},
"_anchorPoint": {
@ -2001,7 +2041,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 49
"__id__": 50
},
"_enabled": true,
"__prefab": null,
@ -2025,7 +2065,7 @@
"_overflow": 0,
"_enableWrapText": false,
"_font": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
@ -2066,33 +2106,33 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 49
"__id__": 50
},
"_enabled": true,
"__prefab": null,
"isBold": true,
"fontOther": {
"__uuid__": "a591473d-fa62-4b03-988f-2b3f00a338e8",
"__uuid__": "a99cc7c0-5b18-496c-8c1d-891a541aecb7",
"__expectedType__": "cc.TTFFont"
},
"fontOtherBold": {
"__uuid__": "e0a726e5-7f1c-4a87-be05-95fc6f4ac3d8",
"__uuid__": "c7f4c757-2847-4dd9-8706-1368db6e855e",
"__expectedType__": "cc.TTFFont"
},
"fontThVi": {
"__uuid__": "93a00770-2ea9-4b72-b00b-35ec67e77b2f",
"__uuid__": "c1b68eb2-a73e-4f93-9c82-7321995ad81d",
"__expectedType__": "cc.TTFFont"
},
"fontThViBold": {
"__uuid__": "db1cf3a9-156f-4898-86ba-9144abc1c1cd",
"__uuid__": "6d1253b1-d035-4f95-be22-6b2901f004e8",
"__expectedType__": "cc.TTFFont"
},
"fontMy": {
"__uuid__": "78f28491-4722-42b8-a068-34405c8ea56e",
"__uuid__": "92ea9ea8-342a-477d-8107-8c1f877ff75e",
"__expectedType__": "cc.TTFFont"
},
"fontMyBold": {
"__uuid__": "b7abfaa3-2c0e-43fd-9e90-6e37dcab9adf",
"__uuid__": "04b2382d-084e-4641-8293-37cfa724b9e6",
"__expectedType__": "cc.TTFFont"
},
"_id": "d0ciBlSNZE5ocCrvwlZ5Qs"
@ -2103,7 +2143,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 49
},
"_enabled": true,
"__prefab": null,
@ -2125,7 +2165,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 49
},
"_enabled": true,
"__prefab": null,
@ -2164,16 +2204,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 49
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 56
"__id__": 57
},
{
"__id__": 57
"__id__": 58
}
],
"_interactable": true,
@ -2213,7 +2253,7 @@
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 48
"__id__": 49
},
"_id": "54j4lwPyZHbqqANZE+r9Tj"
},
@ -2249,10 +2289,10 @@
"_active": false,
"_components": [
{
"__id__": 59
"__id__": 60
},
{
"__id__": 60
"__id__": 61
}
],
"_prefab": null,
@ -2291,7 +2331,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 58
"__id__": 59
},
"_enabled": true,
"__prefab": null,
@ -2313,7 +2353,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 58
"__id__": 59
},
"_enabled": true,
"__prefab": null,
@ -2410,10 +2450,10 @@
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 65
},
{
"__id__": 65
"__id__": 66
}
],
"_prefab": null,
@ -2452,7 +2492,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
"__id__": 64
},
"_enabled": true,
"__prefab": null,
@ -2474,7 +2514,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
"__id__": 64
},
"_enabled": true,
"__prefab": null,
@ -2616,22 +2656,22 @@
},
"_children": [
{
"__id__": 71
"__id__": 72
},
{
"__id__": 75
"__id__": 76
},
{
"__id__": 78
"__id__": 79
}
],
"_active": false,
"_components": [
{
"__id__": 81
"__id__": 82
},
{
"__id__": 82
"__id__": 83
}
],
"_prefab": null,
@ -2670,19 +2710,19 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 70
"__id__": 71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 72
},
{
"__id__": 73
},
{
"__id__": 74
},
{
"__id__": 75
}
],
"_prefab": null,
@ -2721,7 +2761,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 71
"__id__": 72
},
"_enabled": true,
"__prefab": null,
@ -2743,7 +2783,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 71
"__id__": 72
},
"_enabled": true,
"__prefab": null,
@ -2755,7 +2795,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 71
"__id__": 72
},
"_enabled": true,
"__prefab": null,
@ -2794,16 +2834,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 70
"__id__": 71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 77
},
{
"__id__": 77
"__id__": 78
}
],
"_prefab": null,
@ -2842,7 +2882,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
"__id__": 76
},
"_enabled": true,
"__prefab": null,
@ -2864,7 +2904,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
"__id__": 76
},
"_enabled": true,
"__prefab": null,
@ -2926,16 +2966,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 70
"__id__": 71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
"__id__": 80
},
{
"__id__": 80
"__id__": 81
}
],
"_prefab": null,
@ -2974,7 +3014,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 78
"__id__": 79
},
"_enabled": true,
"__prefab": null,
@ -2996,7 +3036,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 78
"__id__": 79
},
"_enabled": true,
"__prefab": null,
@ -3035,7 +3075,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 70
"__id__": 71
},
"_enabled": true,
"__prefab": null,
@ -3057,7 +3097,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 70
"__id__": 71
},
"_enabled": true,
"__prefab": null,
@ -3148,13 +3188,13 @@
"__id__": 47
},
"startBtn": {
"__id__": 55
"__id__": 56
},
"startBtnLabel": {
"__id__": 51
"__id__": 52
},
"GameNode": {
"__id__": 63
"__id__": 64
},
"languageJson": {
"__uuid__": "cbed1e31-2337-413a-beb0-a09df95b3bb4",
@ -3176,10 +3216,10 @@
"__id__": 5
},
"RB7Logo": {
"__id__": 58
"__id__": 59
},
"rotateNode": {
"__id__": 70
"__id__": 71
},
"_id": "d8F/UwpTxNpZhwSJjDvnkk"
},
@ -3206,29 +3246,29 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 90
},
"shadows": {
"__id__": 91
},
"_skybox": {
"shadows": {
"__id__": 92
},
"fog": {
"_skybox": {
"__id__": 93
},
"octree": {
"fog": {
"__id__": 94
},
"skin": {
"octree": {
"__id__": 95
},
"lightProbeInfo": {
"skin": {
"__id__": 96
},
"postSettings": {
"lightProbeInfo": {
"__id__": 97
},
"postSettings": {
"__id__": 98
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
},

View File

@ -9,7 +9,7 @@ const qs = new URLSearchParams(location.search)
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
let apiaddr = "";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NjkxOTAzNTYsIlMiOjEwMDUsIkQiOiJycF8xMDAxMiJ9.JP2SqCScYvK7x0kQVJ_ecCMUnKH7UO4K8i4uqppa6gw";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NzA1NzQ3NTMsIlMiOjEwMDMsIkQiOiJycF8xMDAxMiJ9.-8c4FrYlKYdKAJD0Ixeih4w7JmPRNhWESgCkneRKxGs";
let language = "en"
let currency = "THB"
let isfrom = null
@ -31,7 +31,7 @@ export function getHistoryUrl() {
}
export function getLanguage() {
// return 'th';
// return 'my';
return language;
}
export function getIsRB7() {

View File

@ -222,7 +222,7 @@ export class LoadingUI extends Component {
this.startBtn.node.active = true;
this.progressBar.node.active = false;
this.progressLabel.node.active = false;
this.loadingTipLabel.node.active = false;
this.maskUITransform.node.active = false;
this.lightNode.active = false;