| | |
| | |
|
| | | public int lhQuality;
|
| | | public int tenCallGuideID = 0;
|
| | | public bool startTenCallGuide = false;
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | |
| | | } |
| | | |
| | | |
| | | protected override void OnOpen() |
| | | { |
| | | if (HappyXBModel.Instance.startTenCallGuide) |
| | | { |
| | | NewBieCenter.Instance.StartNewBieGuide(HappyXBModel.Instance.tenCallGuideID); |
| | | HappyXBModel.Instance.startTenCallGuide = false; |
| | | |
| | | } |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | base.OnPreClose(); |
| | | |
| | | } |
| | | |
| | | |
| | | public override void Refresh() |
| | | { |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | if (!NewBieCenter.Instance.inGuiding) |
| | | { |
| | | NewBieCenter.Instance.StartNewBieGuide(HappyXBModel.Instance.tenCallGuideID); |
| | | HappyXBModel.Instance.startTenCallGuide = true; |
| | | } |
| | | } |
| | | currentSubUI = UIManager.Instance.OpenWindow<HeroBaseWin>(0); |
| | |
| | | public bool clickAnyWhereComplete = false; |
| | | public bool clickCompleteNoMask = false; //非强制引导,任意点击关闭,勾选此项会隐藏蒙版,且点击其他区域不会响应按钮事件 |
| | | public int delayTime = 0; //展示时间(毫秒),期间不可点击 |
| | | public string needWinName; |
| | | |
| | | // 引导的文本的箭头位置 |
| | | public enum ArrowPosition |
| | |
| | | {
|
| | | m_lastTargetPosition = m_ClickTarget.position;
|
| | | tryGuideCount = 0;
|
| | | if (!string.IsNullOrEmpty(stepConfig.needWinName) && !UIManager.Instance.IsOpened(stepConfig.needWinName))
|
| | | {
|
| | | Debug.Log($"引导步骤{step}需要打开窗口{stepConfig.needWinName}");
|
| | | ReportStepOver();
|
| | | return;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | if (!string.IsNullOrEmpty(stepConfig.UIElementPath))
|
| | | if (!string.IsNullOrEmpty(stepConfig.UIElementPath) && string.IsNullOrEmpty(stepConfig.needWinName))
|
| | | Debug.LogError($"引导步骤{step}找不到目标{stepConfig.UIElementPath}, 若不需要请删除路径");
|
| | | #endif
|
| | | ReportStepOver();
|