drgame-cc 1.0.42 → 1.0.44
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.
- package/README.md +0 -4
- package/drres/prefab/ExitWin.prefab +764 -764
- package/drres/prefab/HelperWin.prefab +128 -4
- package/drres/prefab/HelperWin.prefab.meta +9 -0
- package/drscript/HelperWin.ts +1 -2
- package/drscript/PlatformAdapter.ts +7 -9
- package/drscript/ad-sdk/README.md +344 -344
- package/drscript/ad-sdk/ad-sdk.d.ts +59 -59
- package/drscript/ad-sdk/ad-sdk.js +322 -322
- package/drscript/ad-sdk/adapters/xiaomi-adapter.d.ts +29 -29
- package/drscript/ad-sdk/adapters/xiaomi-adapter.js +449 -449
- package/drscript/ad-sdk/event-emitter.d.ts +12 -12
- package/drscript/ad-sdk/event-emitter.js +65 -65
- package/drscript/ad-sdk/leaderboard/leaderboard.d.ts +23 -23
- package/drscript/ad-sdk/leaderboard/leaderboard.js +193 -193
- package/drscript/ad-sdk/package.json +46 -46
- package/drscript/ad-sdk/reporters/reporter.d.ts +40 -40
- package/drscript/ad-sdk/reporters/reporter.js +217 -217
- package/drscript/ad-sdk/types/enums.d.ts +64 -64
- package/drscript/ad-sdk/types/enums.js +111 -111
- package/drscript/ad-sdk/types/index.d.ts +6 -6
- package/drscript/ad-sdk/types/index.js +15 -15
- package/drscript/ad-sdk/types/interfaces.d.ts +333 -333
- package/drscript/interface/ILobbyBridge.ts +5 -5
- package/package.json +1 -1
|
@@ -19,12 +19,19 @@
|
|
|
19
19
|
"_children": [
|
|
20
20
|
{
|
|
21
21
|
"__id__": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"__id__": 5
|
|
22
25
|
}
|
|
23
26
|
],
|
|
24
27
|
"_active": true,
|
|
25
|
-
"_components": [
|
|
28
|
+
"_components": [
|
|
29
|
+
{
|
|
30
|
+
"__id__": 8
|
|
31
|
+
}
|
|
32
|
+
],
|
|
26
33
|
"_prefab": {
|
|
27
|
-
"__id__":
|
|
34
|
+
"__id__": 9
|
|
28
35
|
},
|
|
29
36
|
"_opacity": 255,
|
|
30
37
|
"_color": {
|
|
@@ -75,7 +82,7 @@
|
|
|
75
82
|
},
|
|
76
83
|
{
|
|
77
84
|
"__type__": "cc.Node",
|
|
78
|
-
"_name": "
|
|
85
|
+
"_name": "mask",
|
|
79
86
|
"_objFlags": 0,
|
|
80
87
|
"_parent": {
|
|
81
88
|
"__id__": 1
|
|
@@ -90,6 +97,113 @@
|
|
|
90
97
|
"_prefab": {
|
|
91
98
|
"__id__": 4
|
|
92
99
|
},
|
|
100
|
+
"_opacity": 200,
|
|
101
|
+
"_color": {
|
|
102
|
+
"__type__": "cc.Color",
|
|
103
|
+
"r": 255,
|
|
104
|
+
"g": 255,
|
|
105
|
+
"b": 255,
|
|
106
|
+
"a": 255
|
|
107
|
+
},
|
|
108
|
+
"_contentSize": {
|
|
109
|
+
"__type__": "cc.Size",
|
|
110
|
+
"width": 1920,
|
|
111
|
+
"height": 1080
|
|
112
|
+
},
|
|
113
|
+
"_anchorPoint": {
|
|
114
|
+
"__type__": "cc.Vec2",
|
|
115
|
+
"x": 0.5,
|
|
116
|
+
"y": 0.5
|
|
117
|
+
},
|
|
118
|
+
"_trs": {
|
|
119
|
+
"__type__": "TypedArray",
|
|
120
|
+
"ctor": "Float64Array",
|
|
121
|
+
"array": [
|
|
122
|
+
0,
|
|
123
|
+
0,
|
|
124
|
+
0,
|
|
125
|
+
0,
|
|
126
|
+
0,
|
|
127
|
+
0,
|
|
128
|
+
1,
|
|
129
|
+
1,
|
|
130
|
+
1,
|
|
131
|
+
1
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"_eulerAngles": {
|
|
135
|
+
"__type__": "cc.Vec3",
|
|
136
|
+
"x": 0,
|
|
137
|
+
"y": 0,
|
|
138
|
+
"z": 0
|
|
139
|
+
},
|
|
140
|
+
"_skewX": 0,
|
|
141
|
+
"_skewY": 0,
|
|
142
|
+
"_is3DNode": false,
|
|
143
|
+
"_groupIndex": 0,
|
|
144
|
+
"groupIndex": 0,
|
|
145
|
+
"_id": ""
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"__type__": "cc.Sprite",
|
|
149
|
+
"_name": "",
|
|
150
|
+
"_objFlags": 0,
|
|
151
|
+
"node": {
|
|
152
|
+
"__id__": 2
|
|
153
|
+
},
|
|
154
|
+
"_enabled": true,
|
|
155
|
+
"_materials": [
|
|
156
|
+
{
|
|
157
|
+
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"_srcBlendFactor": 770,
|
|
161
|
+
"_dstBlendFactor": 771,
|
|
162
|
+
"_spriteFrame": {
|
|
163
|
+
"__uuid__": "f6aace52-c6f1-417b-a839-fde3c205f9d6"
|
|
164
|
+
},
|
|
165
|
+
"_type": 1,
|
|
166
|
+
"_sizeMode": 0,
|
|
167
|
+
"_fillType": 0,
|
|
168
|
+
"_fillCenter": {
|
|
169
|
+
"__type__": "cc.Vec2",
|
|
170
|
+
"x": 0,
|
|
171
|
+
"y": 0
|
|
172
|
+
},
|
|
173
|
+
"_fillStart": 0,
|
|
174
|
+
"_fillRange": 0,
|
|
175
|
+
"_isTrimmedMode": true,
|
|
176
|
+
"_atlas": null,
|
|
177
|
+
"_id": ""
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"__type__": "cc.PrefabInfo",
|
|
181
|
+
"root": {
|
|
182
|
+
"__id__": 1
|
|
183
|
+
},
|
|
184
|
+
"asset": {
|
|
185
|
+
"__id__": 0
|
|
186
|
+
},
|
|
187
|
+
"fileId": "8dNQBNAh9E97y/EdTXOupL",
|
|
188
|
+
"sync": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"__type__": "cc.Node",
|
|
192
|
+
"_name": "skeleton",
|
|
193
|
+
"_objFlags": 0,
|
|
194
|
+
"_parent": {
|
|
195
|
+
"__id__": 1
|
|
196
|
+
},
|
|
197
|
+
"_children": [],
|
|
198
|
+
"_active": true,
|
|
199
|
+
"_components": [
|
|
200
|
+
{
|
|
201
|
+
"__id__": 6
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"_prefab": {
|
|
205
|
+
"__id__": 7
|
|
206
|
+
},
|
|
93
207
|
"_opacity": 255,
|
|
94
208
|
"_color": {
|
|
95
209
|
"__type__": "cc.Color",
|
|
@@ -142,7 +256,7 @@
|
|
|
142
256
|
"_name": "",
|
|
143
257
|
"_objFlags": 0,
|
|
144
258
|
"node": {
|
|
145
|
-
"__id__":
|
|
259
|
+
"__id__": 5
|
|
146
260
|
},
|
|
147
261
|
"_enabled": true,
|
|
148
262
|
"_materials": [
|
|
@@ -188,6 +302,16 @@
|
|
|
188
302
|
"fileId": "773nu47W9KRIk2SeNjYEqp",
|
|
189
303
|
"sync": false
|
|
190
304
|
},
|
|
305
|
+
{
|
|
306
|
+
"__type__": "cc.BlockInputEvents",
|
|
307
|
+
"_name": "",
|
|
308
|
+
"_objFlags": 0,
|
|
309
|
+
"node": {
|
|
310
|
+
"__id__": 1
|
|
311
|
+
},
|
|
312
|
+
"_enabled": true,
|
|
313
|
+
"_id": ""
|
|
314
|
+
},
|
|
191
315
|
{
|
|
192
316
|
"__type__": "cc.PrefabInfo",
|
|
193
317
|
"root": {
|
package/drscript/HelperWin.ts
CHANGED
|
@@ -7,8 +7,7 @@ const { ccclass, property } = cc._decorator;
|
|
|
7
7
|
|
|
8
8
|
@ccclass
|
|
9
9
|
export default class HelperWin extends cc.Component {
|
|
10
|
-
|
|
11
|
-
spine: sp.Skeleton = null;
|
|
10
|
+
private spine: sp.Skeleton = null;
|
|
12
11
|
|
|
13
12
|
private nativeBackHandler: () => boolean = null;
|
|
14
13
|
|
|
@@ -262,20 +262,18 @@ export class PlatformAdapter {
|
|
|
262
262
|
this.webBridge.callHandler("router/navigateBack", {}, (a) => { cc.log(a); });
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
if (AdSdk.exitGame) AdSdk.exitGame();
|
|
266
|
+
cc.game.end();
|
|
267
|
+
// var GRoot = window['GRoot'];
|
|
268
|
+
// let bridge: ILobbyBridge = GRoot && GRoot.inst.node.getComponentInChildren('LobbyBridge');
|
|
269
|
+
// bridge && bridge.exitGame();
|
|
268
270
|
}
|
|
269
271
|
|
|
270
|
-
|
|
271
|
-
* @param url 玩法说明界面spine动画资源路径, 相对于resources/spine/目录
|
|
272
|
-
* @param cb 关闭玩法说明界面回调
|
|
273
|
-
*/
|
|
274
|
-
public static async showHelperWin(url: string, cb: () => void) {
|
|
272
|
+
public static async showHelper(url: string, cb: () => void) {
|
|
275
273
|
var key = `${this._zhName}-isFirst`;
|
|
276
274
|
var isFirst = cc.sys.localStorage.getItem(key);
|
|
277
275
|
if (!isFirst) {
|
|
278
|
-
cc.sys.localStorage.setItem(key,
|
|
276
|
+
cc.sys.localStorage.setItem(key, false);
|
|
279
277
|
let helperPfb = await Loader.loadRes('drres/prefab/HelperWin', cc.Prefab);
|
|
280
278
|
let helperWin = cc.instantiate(helperPfb);
|
|
281
279
|
helperWin.parent = cc.director.getScene();
|