Example #1
0
    private void MessageOneTaskFinish(int taskId)
    {
        ZhuanZhiRenWu zhuanZhiRenWu = DataReader <ZhuanZhiRenWu> .Get(taskId);

        if (zhuanZhiRenWu != null)
        {
            string chineseContent = GameDataUtils.GetChineseContent(1410, false);
            UIManagerControl.Instance.ShowToastText(string.Format(chineseContent, ChangeCareerManager.GetTaskName(zhuanZhiRenWu)));
        }
    }
Example #2
0
    public void SetName(ZhuanZhiRenWu dataRW, int count, bool isfinish)
    {
        this.jump = dataRW.uiJump;
        string text = ChangeCareerManager.GetTaskName(dataRW);

        if (dataRW.missionType == 1)
        {
            if (dataRW.missionData.get_Count() >= 2)
            {
                text += string.Format(dataRW.message1, count, dataRW.missionData.get_Item(1));
            }
        }
        else if (dataRW.missionType == 2)
        {
            if (dataRW.missionData.get_Count() >= 2)
            {
                text += string.Format(dataRW.message1, count, dataRW.missionData.get_Item(1));
            }
        }
        else if (dataRW.missionType == 3)
        {
            if (dataRW.missionData.get_Count() >= 3)
            {
                text += string.Format(dataRW.message1, count, dataRW.missionData.get_Item(2));
            }
        }
        else if (dataRW.missionType == 4)
        {
            if (dataRW.missionData.get_Count() >= 2)
            {
                text += string.Format(dataRW.message1, count, dataRW.missionData.get_Item(1));
            }
        }
        else if (dataRW.missionType == 5)
        {
        }
        text = TextColorMgr.FilterColor(text);
        if (isfinish)
        {
            base.get_transform().FindChild("TaskName").GetComponent <Text>().set_text(TextColorMgr.GetColor(text, "FFC32D", string.Empty));
        }
        else
        {
            base.get_transform().FindChild("TaskName").GetComponent <Text>().set_text(TextColorMgr.GetColor(text, "75523E", string.Empty));
        }
    }