Пример #1
0
    private void CreateSelectPanel(CMD_Mission.MissionType newFocus)
    {
        if (this.missionStateData_BAK != null)
        {
            this.missionStateData_BAK.nowSelectLoc = this.missionList.SelectLoc;
        }
        CMD_Mission.nowFocusType = newFocus;
        CMD_Mission.MissionStateData missionStateDataByType = this.GetMissionStateDataByType(CMD_Mission.nowFocusType);
        this.missionList.SelectLoc = missionStateDataByType.nowSelectLoc;
        this.missionStateData_BAK  = missionStateDataByType;
        GameWebAPI.RespDataMS_MissionInfoLogic.Result.Mission[] missionData = this.GetMissionData(CMD_Mission.nowFocusType);
        this.missionList.gameObject.SetActive(true);
        this.missionListOriginalItem.gameObject.SetActive(true);
        this.missionList.StartFadeEfcCT = 0;
        bool isFirst = missionStateDataByType.isFirst;

        if (!this.isRebuildRecycle)
        {
            this.missionList.AllBuild(missionData.Length, isFirst, 1f, 1f, null, this, true);
            this.isRebuildRecycle = true;
        }
        else
        {
            GUISelectPanelViewPartsUD guiselectPanelViewPartsUD = this.missionList;
            int  partsCount           = missionData.Length;
            int  horizontalPartsCount = 1;
            bool initLoc = isFirst;
            guiselectPanelViewPartsUD.RefreshList(partsCount, horizontalPartsCount, null, initLoc);
            this.missionListOriginalItem.gameObject.SetActive(false);
            this.missionList.FadeOutAllListParts(null, true);
            this.missionList.FadeInAllListParts(null);
        }
        missionStateDataByType.isFirst = false;
    }
Пример #2
0
 private void InitMissionStateDataList()
 {
     this.missionStateDataList = new List <CMD_Mission.MissionStateData>();
     for (int i = 0; i < this.missionTypeList.Count; i++)
     {
         CMD_Mission.MissionStateData missionStateData = new CMD_Mission.MissionStateData();
         missionStateData.type         = this.missionTypeList[i];
         missionStateData.isFirst      = true;
         missionStateData.nowSelectLoc = 0f;
         this.missionStateDataList.Add(missionStateData);
     }
 }