Beispiel #1
0
    //界面关闭
    protected override void OnClose()
    {
        GuideModule module = ModuleManager.Instance.FindModule <GuideModule>();

        module.ForceHideGuide(false);

        InputSystem.Instance.SetLockMove(false);
    }
Beispiel #2
0
    //界面关闭
    protected override void OnClose()
    {
        EventDelegate.Remove(OkBtn.onClick, OnClickClose);

        GuideModule module = ModuleManager.Instance.FindModule <GuideModule>();

        module.ForceHideGuide(false);
    }
Beispiel #3
0
    //界面打开
    protected override void OnOpen(object param = null)
    {
        //强制隐藏引导
        GuideModule module = ModuleManager.Instance.FindModule <GuideModule>();

        module.ForceHideGuide(true);

        InputSystem.Instance.SetLockMove(true);
    }
Beispiel #4
0
    //界面打开
    protected override void OnOpen(object param = null)
    {
        EventDelegate.Add(OkBtn.onClick, OnClickClose);

        PlayerDataModule pdm           = ModuleManager.Instance.FindModule <PlayerDataModule>();
        QuestAwardData   mCurAwardInfo = PlayerDataPool.Instance.MainData.mQuestData.GetAward();
        QuestTableItem   qti           = DataManager.QuestTable[mCurAwardInfo.mQuestId] as QuestTableItem;

        QuestName.text = qti.questName;
        ObjectCommon.DestoryChildren(DropGrid.gameObject);
        if (mAwardUIList != null)
        {
            mAwardUIList.Clear();
        }
        else
        {
            mAwardUIList = new List <AwardItemUI>();
        }

        for (int i = 0; i < mCurAwardInfo.mAwardList.Count; i++)
        {
            AwardItemUI temp = new AwardItemUI(mCurAwardInfo.mAwardList[i].mResId,
                                               (int)mCurAwardInfo.mAwardList[i].mNum);
            temp.gameObject.transform.parent     = DropGrid.gameObject.transform;
            temp.gameObject.transform.localScale = Vector3.one;
        }

        DropGrid.repositionNow = true;

        mCurStep = UIStep.STEP_ORIGINAL;

        //强制隐藏引导
        GuideModule module = ModuleManager.Instance.FindModule <GuideModule>();

        module.ForceHideGuide(true);
    }