yingchigamesdk-cocos-v3 25.7.30 → 25.7.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  [
2
2
  {
3
3
  "__type__": "cc.Prefab",
4
- "_name": "yinsiUI",
4
+ "_name": "",
5
5
  "_objFlags": 0,
6
- "__editorExtras__": {},
7
6
  "_native": "",
8
7
  "data": {
9
8
  "__id__": 1
10
9
  },
11
10
  "optimizationPolicy": 0,
12
- "persistent": false
11
+ "persistent": false,
12
+ "asyncLoadAssets": false
13
13
  },
14
14
  {
15
15
  "__type__": "cc.Node",
@@ -53,7 +53,6 @@
53
53
  "y": 1,
54
54
  "z": 1
55
55
  },
56
- "_mobility": 0,
57
56
  "_layer": 33554432,
58
57
  "_euler": {
59
58
  "__type__": "cc.Vec3",
@@ -106,7 +105,6 @@
106
105
  "y": 1,
107
106
  "z": 1
108
107
  },
109
- "_mobility": 0,
110
108
  "_layer": 33554432,
111
109
  "_euler": {
112
110
  "__type__": "cc.Vec3",
@@ -156,6 +154,7 @@
156
154
  "__prefab": {
157
155
  "__id__": 6
158
156
  },
157
+ "_visFlags": 0,
159
158
  "_customMaterial": null,
160
159
  "_srcBlendFactor": 2,
161
160
  "_dstBlendFactor": 4,
@@ -302,7 +301,6 @@
302
301
  "y": 1,
303
302
  "z": 1
304
303
  },
305
- "_mobility": 0,
306
304
  "_layer": 33554432,
307
305
  "_euler": {
308
306
  "__type__": "cc.Vec3",
@@ -362,7 +360,6 @@
362
360
  "y": 1,
363
361
  "z": 1
364
362
  },
365
- "_mobility": 0,
366
363
  "_layer": 33554432,
367
364
  "_euler": {
368
365
  "__type__": "cc.Vec3",
@@ -422,7 +419,6 @@
422
419
  "y": 1,
423
420
  "z": 1
424
421
  },
425
- "_mobility": 0,
426
422
  "_layer": 33554432,
427
423
  "_euler": {
428
424
  "__type__": "cc.Vec3",
@@ -472,7 +468,6 @@
472
468
  "y": 1,
473
469
  "z": 1
474
470
  },
475
- "_mobility": 0,
476
471
  "_layer": 33554432,
477
472
  "_euler": {
478
473
  "__type__": "cc.Vec3",
@@ -522,6 +517,7 @@
522
517
  "__prefab": {
523
518
  "__id__": 17
524
519
  },
520
+ "_visFlags": 0,
525
521
  "_customMaterial": null,
526
522
  "_srcBlendFactor": 2,
527
523
  "_dstBlendFactor": 4,
@@ -608,6 +604,7 @@
608
604
  "__prefab": {
609
605
  "__id__": 22
610
606
  },
607
+ "_visFlags": 0,
611
608
  "_customMaterial": null,
612
609
  "_srcBlendFactor": 2,
613
610
  "_dstBlendFactor": 4,
@@ -787,7 +784,6 @@
787
784
  "y": 1,
788
785
  "z": 1
789
786
  },
790
- "_mobility": 0,
791
787
  "_layer": 33554432,
792
788
  "_euler": {
793
789
  "__type__": "cc.Vec3",
@@ -844,7 +840,6 @@
844
840
  "y": 1,
845
841
  "z": 1
846
842
  },
847
- "_mobility": 0,
848
843
  "_layer": 33554432,
849
844
  "_euler": {
850
845
  "__type__": "cc.Vec3",
@@ -894,9 +889,21 @@
894
889
  "__prefab": {
895
890
  "__id__": 34
896
891
  },
892
+ "_visFlags": 0,
893
+ "_customMaterial": null,
894
+ "_srcBlendFactor": 2,
895
+ "_dstBlendFactor": 4,
896
+ "_color": {
897
+ "__type__": "cc.Color",
898
+ "r": 255,
899
+ "g": 255,
900
+ "b": 255,
901
+ "a": 255
902
+ },
897
903
  "_type": 0,
898
904
  "_inverted": false,
899
905
  "_segments": 64,
906
+ "_spriteFrame": null,
900
907
  "_alphaThreshold": 0.1,
901
908
  "_id": ""
902
909
  },
@@ -916,6 +923,7 @@
916
923
  "__prefab": {
917
924
  "__id__": 36
918
925
  },
926
+ "_visFlags": 0,
919
927
  "_customMaterial": null,
920
928
  "_srcBlendFactor": 2,
921
929
  "_dstBlendFactor": 4,
@@ -1003,7 +1011,6 @@
1003
1011
  "y": 1,
1004
1012
  "z": 1
1005
1013
  },
1006
- "_mobility": 0,
1007
1014
  "_layer": 33554432,
1008
1015
  "_euler": {
1009
1016
  "__type__": "cc.Vec3",
@@ -1053,6 +1060,7 @@
1053
1060
  "__prefab": {
1054
1061
  "__id__": 42
1055
1062
  },
1063
+ "_visFlags": 0,
1056
1064
  "_customMaterial": null,
1057
1065
  "_srcBlendFactor": 2,
1058
1066
  "_dstBlendFactor": 4,
@@ -1080,29 +1088,6 @@
1080
1088
  "_isUnderline": false,
1081
1089
  "_underlineHeight": 2,
1082
1090
  "_cacheMode": 0,
1083
- "_enableOutline": false,
1084
- "_outlineColor": {
1085
- "__type__": "cc.Color",
1086
- "r": 0,
1087
- "g": 0,
1088
- "b": 0,
1089
- "a": 255
1090
- },
1091
- "_outlineWidth": 2,
1092
- "_enableShadow": false,
1093
- "_shadowColor": {
1094
- "__type__": "cc.Color",
1095
- "r": 0,
1096
- "g": 0,
1097
- "b": 0,
1098
- "a": 255
1099
- },
1100
- "_shadowOffset": {
1101
- "__type__": "cc.Vec2",
1102
- "x": 2,
1103
- "y": 2
1104
- },
1105
- "_shadowBlur": 2,
1106
1091
  "_id": ""
1107
1092
  },
1108
1093
  {
@@ -1162,7 +1147,6 @@
1162
1147
  "y": 1,
1163
1148
  "z": 1
1164
1149
  },
1165
- "_mobility": 0,
1166
1150
  "_layer": 33554432,
1167
1151
  "_euler": {
1168
1152
  "__type__": "cc.Vec3",
@@ -1212,6 +1196,7 @@
1212
1196
  "__prefab": {
1213
1197
  "__id__": 48
1214
1198
  },
1199
+ "_visFlags": 0,
1215
1200
  "_customMaterial": null,
1216
1201
  "_srcBlendFactor": 2,
1217
1202
  "_dstBlendFactor": 4,
@@ -1239,29 +1224,6 @@
1239
1224
  "_isUnderline": false,
1240
1225
  "_underlineHeight": 2,
1241
1226
  "_cacheMode": 0,
1242
- "_enableOutline": false,
1243
- "_outlineColor": {
1244
- "__type__": "cc.Color",
1245
- "r": 0,
1246
- "g": 0,
1247
- "b": 0,
1248
- "a": 255
1249
- },
1250
- "_outlineWidth": 2,
1251
- "_enableShadow": false,
1252
- "_shadowColor": {
1253
- "__type__": "cc.Color",
1254
- "r": 0,
1255
- "g": 0,
1256
- "b": 0,
1257
- "a": 255
1258
- },
1259
- "_shadowOffset": {
1260
- "__type__": "cc.Vec2",
1261
- "x": 2,
1262
- "y": 2
1263
- },
1264
- "_shadowBlur": 2,
1265
1227
  "_id": ""
1266
1228
  },
1267
1229
  {
@@ -1321,7 +1283,6 @@
1321
1283
  "y": 1,
1322
1284
  "z": 1
1323
1285
  },
1324
- "_mobility": 0,
1325
1286
  "_layer": 33554432,
1326
1287
  "_euler": {
1327
1288
  "__type__": "cc.Vec3",
@@ -1371,6 +1332,7 @@
1371
1332
  "__prefab": {
1372
1333
  "__id__": 54
1373
1334
  },
1335
+ "_visFlags": 0,
1374
1336
  "_customMaterial": null,
1375
1337
  "_srcBlendFactor": 2,
1376
1338
  "_dstBlendFactor": 4,
@@ -1398,29 +1360,6 @@
1398
1360
  "_isUnderline": false,
1399
1361
  "_underlineHeight": 2,
1400
1362
  "_cacheMode": 0,
1401
- "_enableOutline": false,
1402
- "_outlineColor": {
1403
- "__type__": "cc.Color",
1404
- "r": 0,
1405
- "g": 0,
1406
- "b": 0,
1407
- "a": 255
1408
- },
1409
- "_outlineWidth": 2,
1410
- "_enableShadow": false,
1411
- "_shadowColor": {
1412
- "__type__": "cc.Color",
1413
- "r": 0,
1414
- "g": 0,
1415
- "b": 0,
1416
- "a": 255
1417
- },
1418
- "_shadowOffset": {
1419
- "__type__": "cc.Vec2",
1420
- "x": 2,
1421
- "y": 2
1422
- },
1423
- "_shadowBlur": 2,
1424
1363
  "_id": ""
1425
1364
  },
1426
1365
  {
@@ -1572,6 +1511,7 @@
1572
1511
  "__prefab": {
1573
1512
  "__id__": 65
1574
1513
  },
1514
+ "_visFlags": 0,
1575
1515
  "_customMaterial": null,
1576
1516
  "_srcBlendFactor": 2,
1577
1517
  "_dstBlendFactor": 4,
@@ -1665,7 +1605,6 @@
1665
1605
  "y": 1,
1666
1606
  "z": 1
1667
1607
  },
1668
- "_mobility": 0,
1669
1608
  "_layer": 33554432,
1670
1609
  "_euler": {
1671
1610
  "__type__": "cc.Vec3",
@@ -1715,7 +1654,6 @@
1715
1654
  "y": 1,
1716
1655
  "z": 1
1717
1656
  },
1718
- "_mobility": 0,
1719
1657
  "_layer": 33554432,
1720
1658
  "_euler": {
1721
1659
  "__type__": "cc.Vec3",
@@ -1765,6 +1703,7 @@
1765
1703
  "__prefab": {
1766
1704
  "__id__": 72
1767
1705
  },
1706
+ "_visFlags": 0,
1768
1707
  "_customMaterial": null,
1769
1708
  "_srcBlendFactor": 2,
1770
1709
  "_dstBlendFactor": 4,
@@ -1792,29 +1731,6 @@
1792
1731
  "_isUnderline": false,
1793
1732
  "_underlineHeight": 2,
1794
1733
  "_cacheMode": 0,
1795
- "_enableOutline": false,
1796
- "_outlineColor": {
1797
- "__type__": "cc.Color",
1798
- "r": 0,
1799
- "g": 0,
1800
- "b": 0,
1801
- "a": 255
1802
- },
1803
- "_outlineWidth": 2,
1804
- "_enableShadow": false,
1805
- "_shadowColor": {
1806
- "__type__": "cc.Color",
1807
- "r": 0,
1808
- "g": 0,
1809
- "b": 0,
1810
- "a": 255
1811
- },
1812
- "_shadowOffset": {
1813
- "__type__": "cc.Vec2",
1814
- "x": 2,
1815
- "y": 2
1816
- },
1817
- "_shadowBlur": 2,
1818
1734
  "_id": ""
1819
1735
  },
1820
1736
  {
@@ -1874,6 +1790,7 @@
1874
1790
  "__prefab": {
1875
1791
  "__id__": 77
1876
1792
  },
1793
+ "_visFlags": 0,
1877
1794
  "_customMaterial": null,
1878
1795
  "_srcBlendFactor": 2,
1879
1796
  "_dstBlendFactor": 4,
@@ -2031,6 +1948,7 @@
2031
1948
  "__prefab": {
2032
1949
  "__id__": 85
2033
1950
  },
1951
+ "_visFlags": 0,
2034
1952
  "_customMaterial": null,
2035
1953
  "_srcBlendFactor": 2,
2036
1954
  "_dstBlendFactor": 4,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { InterstitialType } from "./ycsdk/minigame/InterstitialType";
2
2
  import { Config } from "./ycsdk/SDKConfig";
3
+ import { sdkconfig } from "./ycsdk/SDKConfig";
3
4
  import { BannerType } from "./ycsdk/minigame/BannerType";
4
5
  import { StorageUtils } from "./ycsdk/StorageUtils";
5
6
  import { AdState } from "./ycsdk/AdState";
@@ -9,4 +10,4 @@ import { YCSDK } from "./ycsdk/YCSDK";
9
10
  import HttpRequest from "./ycsdk/minigame/HttpRequest";
10
11
  import { PrivacyEvent } from "./ycsdk/minigame/PrivacyEvent";
11
12
  import { PrivacyListener } from "./ycsdk/minigame/PrivacyListener";
12
- export { YCSDK, BannerType, Config, InterstitialType, StorageUtils, AdState, AdType, Md5, HttpRequest, PrivacyEvent, PrivacyListener };
13
+ export { YCSDK, BannerType, Config, sdkconfig, InterstitialType, StorageUtils, AdState, AdType, Md5, HttpRequest, PrivacyEvent, PrivacyListener };
package/dist/index.js CHANGED
@@ -13,11 +13,13 @@ var sdkconfig = {
13
13
  subornUserTest: false,
14
14
  version: "1536",
15
15
  pkgName: "",
16
+ appId: "",
16
17
  bannerId: [],
17
18
  intersId: [],
18
19
  videoId: [],
19
20
  nativeId: [],
20
21
  nativeBannerId: [],
22
+ extension: [],
21
23
  ratio: {
22
24
  inters: 50,
23
25
  native: 50,
@@ -1175,7 +1177,7 @@ var HuaWeiGame = class {
1175
1177
  login(callBack) {
1176
1178
  this.qg.gameLoginWithReal({
1177
1179
  forceLogin: 1,
1178
- appid: sdkconfig.version,
1180
+ appid: sdkconfig.appId,
1179
1181
  success: function(data) {
1180
1182
  callBack && callBack(true);
1181
1183
  console.log(" game login with real success:" + JSON.stringify(data));
@@ -1218,12 +1220,12 @@ var HuaWeiGame = class {
1218
1220
  var bannerTop = sysInfo.safeArea.height;
1219
1221
  this.bannerAd = this.qg.createBannerAd({
1220
1222
  adUnitId: sdkconfig.ycBannerId,
1221
- adIntervals: 45,
1223
+ adIntervals: 35,
1222
1224
  //刷新时间
1223
1225
  style: {
1224
- top: bannerTop - 60,
1226
+ top: bannerTop - 20,
1225
1227
  left: 0,
1226
- height: 60,
1228
+ height: 57,
1227
1229
  width: 360
1228
1230
  }
1229
1231
  });
@@ -1261,7 +1263,7 @@ var HuaWeiGame = class {
1261
1263
  }
1262
1264
  showInters(type = "Initial" /* Initial */) {
1263
1265
  if (!type) {
1264
- const odds = YCSDK.ins.random(100);
1266
+ let odds = YCSDK.ins.random(100);
1265
1267
  if (odds >= 50 && sdkconfig.intersId.length >= 1) {
1266
1268
  this.showIntersVideo();
1267
1269
  } else if (sdkconfig.nativeId.length >= 1) {
@@ -2486,7 +2488,7 @@ var MiniGame = class {
2486
2488
  const disagree = yinsiUI.getChildByName("panel").getChildByName("disagree");
2487
2489
  disagree.on(Node4.EventType.TOUCH_END, () => {
2488
2490
  callBack.onDisAgree && callBack.onDisAgree();
2489
- yinsiUI.active = false;
2491
+ yinsiUI.getChildByName("panel").getChildByName("tip").active = true;
2490
2492
  }, this);
2491
2493
  YCSDK.ins.getGameNode().addChild(yinsiUI);
2492
2494
  });
@@ -2620,11 +2622,13 @@ var YCSDK = class _YCSDK {
2620
2622
  return;
2621
2623
  }
2622
2624
  sdkconfig.pkgName = config.pkgName;
2625
+ sdkconfig.appId = config.appId;
2623
2626
  sdkconfig.bannerId = config.bannerId;
2624
2627
  sdkconfig.intersId = config.intersId;
2625
2628
  sdkconfig.nativeId = config.nativeId;
2626
2629
  sdkconfig.videoId = config.videoId;
2627
2630
  sdkconfig.nativeBannerId = config.nativeBannerId;
2631
+ sdkconfig.extension = config.extension;
2628
2632
  this.platform.init(callBack);
2629
2633
  }
2630
2634
  agreePrivacy() {
@@ -2745,6 +2749,7 @@ export {
2745
2749
  Md5,
2746
2750
  PrivacyEvent,
2747
2751
  StorageUtils,
2748
- YCSDK
2752
+ YCSDK,
2753
+ sdkconfig
2749
2754
  };
2750
2755
  //# sourceMappingURL=index.js.map