Esempio n. 1
0
    void AddMissionItem(int missionId)
    {
        MissionSelItem_N AddItem = Instantiate(mPrefab) as MissionSelItem_N;

        AddItem.gameObject.name = "ItemName" + mSelIndex;
        mSelIndex++;
        AddItem.transform.parent        = mUITable.transform;
        AddItem.transform.localPosition = Vector3.zero;
        AddItem.transform.localRotation = Quaternion.identity;
        AddItem.transform.localScale    = Vector3.one;

        string strtitle = MissionRepository.GetMissionNpcListName(missionId, false);

        if (missionId == MissionManager.m_SpecialMissionID9)
        {
            if (EntityCreateMgr.Instance.IsRandomNpc(m_CurSelNpc))
            {
                NpcMissionData missionData = m_CurSelNpc.GetUserData() as NpcMissionData;

                if (null != missionData && (missionData.mCurComMisNum >= missionData.mCompletedMissionCount || UINPCTalk.m_QuickZM))
                {
                    strtitle = "[ffff00]" + strtitle + "[-]";
                }
            }
        }

        AddItem.SetMission(missionId, strtitle, this, m_Player);
        mMissionItemList.Add(AddItem);
    }
Esempio n. 2
0
    void AddCloseItem(int missionId)
    {
        MissionSelItem_N AddItem = Instantiate(mPrefab) as MissionSelItem_N;

        AddItem.gameObject.name = "ItemName" + mSelIndex;
        mSelIndex++;
        AddItem.transform.parent        = mUITable.transform;
        AddItem.transform.localPosition = Vector3.zero;
        AddItem.transform.localRotation = Quaternion.identity;
        AddItem.transform.localScale    = Vector3.one;
        AddItem.SetMission(missionId, PELocalization.GetString(8000010), "SubMission", this, m_Player);
        mMissionItemList.Add(AddItem);
    }
Esempio n. 3
0
    void ShowStorage()
    {
        MissionSelItem_N AddItem = Instantiate(mPrefab) as MissionSelItem_N;

        AddItem.gameObject.name = "ItemName" + mSelIndex;
        mSelIndex++;
        AddItem.transform.parent        = mUITable.transform;
        AddItem.transform.localPosition = Vector3.zero;
        AddItem.transform.localRotation = Quaternion.identity;
        AddItem.transform.localScale    = Vector3.one;
        AddItem.SetMission(-3, PELocalization.GetString(8000139), "cangkuarr", this, m_Player);
        mMissionItemList.Add(AddItem);
    }
Esempio n. 4
0
    void AddMissionReplyItem(int missionId)
    {
        MissionSelItem_N AddItem = Instantiate(mPrefab) as MissionSelItem_N;

        AddItem.gameObject.name = "ItemName" + mSelIndex;
        mSelIndex++;
        AddItem.transform.parent        = mUITable.transform;
        AddItem.transform.localPosition = Vector3.zero;
        AddItem.transform.localRotation = Quaternion.identity;
        AddItem.transform.localScale    = Vector3.one;

        string strtitle = "";

        strtitle = MissionRepository.GetMissionNpcListName(missionId, true);
        AddItem.SetMission(missionId, strtitle, this, m_Player);
        mMissionItemList.Add(AddItem);
    }