@cc-component/cc-guide 1.1.3 → 1.1.5

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.
@@ -33,7 +33,7 @@ export class GuideCenter {
33
33
 
34
34
  callClick: (step: number) => void;
35
35
  callJumpWindow: (urls: string[]) => void;
36
- callFinishGroup: (groupId: number, enableGroup: number) => void;
36
+ callFinishGroup: (param: ITableGuide) => void;
37
37
  /** 游戏初始化模块 */
38
38
  guide: Guide = null!;
39
39
  node: Node;
@@ -208,7 +208,7 @@ export class GuideCenter {
208
208
  this.step = 100000
209
209
  step_net = this.step;
210
210
  }
211
- GuideModule.GuideCenter.callFinishGroup?.(curren.data.groupID, enableGroup)
211
+ GuideModule.GuideCenter.callFinishGroup?.(curren.data)
212
212
  this.callMessageNet?.(step_net, () => { }) //功能引导
213
213
  }
214
214
  else {
@@ -324,7 +324,7 @@ export class GuideCenter {
324
324
  OnMessageJumpWindow(call: (urls: string[]) => void) {
325
325
  this.callJumpWindow = call
326
326
  }
327
- OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void) {
327
+ OnMessageFinishGroup(call: (param: ITableGuide) => void) {
328
328
  this.callFinishGroup = call
329
329
  }
330
330
 
@@ -29,6 +29,8 @@ export interface ITableGuide {
29
29
  dialogY: number;
30
30
  /** 节点显示触发引导组 */
31
31
  enableGroup: number;
32
+ /** 节点隐藏触发引导组-触发 */
33
+ enableGroupTask: number;
32
34
  /**声音路径 */
33
35
  sound: string;
34
36
  }
@@ -24,7 +24,7 @@ class GuideModule {
24
24
  static OnMessageStepNet(call: (step: number, finish: Function) => void) { GuideCenter.instance.OnMessageStepNet(call) }
25
25
  static OnMessageClick(call: (step: number) => void) { GuideCenter.instance.OnMessageClick(call) }
26
26
  static OnMessageJumpWindow(call: (urls: string[]) => void) { GuideCenter.instance.OnMessageJumpWindow(call) }
27
- static OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void) { GuideCenter.instance.OnMessageFinishGroup(call) }
27
+ static OnMessageFinishGroup(call: (param: ITableGuide) => void) { GuideCenter.instance.OnMessageFinishGroup(call) }
28
28
  /**是否引导中 */
29
29
  static GuideShow(): boolean { return GuideSDK.GuideShow() };
30
30
 
@@ -27,7 +27,7 @@ declare global {
27
27
  /**监听跳转界面 */
28
28
  function OnMessageJumpWindow(call: (urls: string[]) => void)
29
29
  /**监听完成引导组引导 */
30
- function OnMessageFinishGroup(call: (groupId: number, enableGroup: number) => void)
30
+ function OnMessageFinishGroup(call: (param: ITableGuide) => void)
31
31
  /**是否引导中 */
32
32
  function GuideShow(): boolean;
33
33
  /**开启日志打印 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-guide",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",