@cc-component/cc-guide 1.0.8 → 1.0.9

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.
@@ -31,7 +31,7 @@ export class GuideCenter {
31
31
 
32
32
  callClick: (step: number) => void;
33
33
  callJumpWindow: (urls: string[]) => void;
34
- callFinishGroup: (groupId: number) => void;
34
+ callFinishGroup: (groupId: number, enableGroup: number) => void;
35
35
  /** 游戏初始化模块 */
36
36
  guide: Guide = null!;
37
37
  node: Node;
@@ -205,8 +205,8 @@ export class GuideCenter {
205
205
  } else {
206
206
  this.step = 100000
207
207
  step_net = this.step;
208
- GuideModule.GuideCenter.callFinishGroup?.(curren.data.groupID)
209
208
  }
209
+ GuideModule.GuideCenter.callFinishGroup?.(curren.data.groupID, enableGroup)
210
210
  this.callMessageNet?.(step_net, () => { }) //功能引导
211
211
  }
212
212
  else {
@@ -319,7 +319,7 @@ export class GuideCenter {
319
319
  OnMessageJumpWindow(call: (urls: string[]) => void) {
320
320
  this.callJumpWindow = call
321
321
  }
322
- OnMessageFinishGroup(call: (groupId: number) => void) {
322
+ OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void) {
323
323
  this.callFinishGroup = call
324
324
  }
325
325
 
@@ -22,7 +22,7 @@ class GuideModule {
22
22
  static OnMessageStepNet(call: (step: number, finish: Function) => void) { GuideCenter.instance.OnMessageStepNet(call) }
23
23
  static OnMessageClick(call: (step: number) => void) { GuideCenter.instance.OnMessageClick(call) }
24
24
  static OnMessageJumpWindow(call: (urls: string[]) => void) { GuideCenter.instance.OnMessageJumpWindow(call) }
25
- static OnMessageFinishGroup(call: (groupId: number) => void) { GuideCenter.instance.OnMessageFinishGroup(call) }
25
+ static OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void) { GuideCenter.instance.OnMessageFinishGroup(call) }
26
26
  /**是否引导中 */
27
27
  static GuideShow(): boolean { return GuideSDK.GuideShow() };
28
28
 
@@ -25,7 +25,7 @@ declare global {
25
25
  /**监听跳转界面 */
26
26
  function OnMessageJumpWindow(call: (urls: string[]) => void)
27
27
  /**监听完成引导组引导 */
28
- function OnMessageFinishGroup(call: (groupId: number) => void)
28
+ function OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void)
29
29
  /**是否引导中 */
30
30
  function GuideShow(): boolean;
31
31
  /**开启日志打印 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-guide",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",