Пример #1
0
        public string GetUploadFile(DataType type)
        {
            switch (type)
            {
            case DataType.Chara:
                CustomCharaScrollController.ScrollData scrollData = !this.updateFemale ? this.netInfo.selectCharaMWindow.GetSelectInfo() : this.netInfo.selectCharaFWindow.GetSelectInfo();
                return(scrollData == null ? string.Empty : scrollData.info.FullPath);

            case DataType.Housing:
                return(this.netInfo.selectHousingWindow.GetSelectPath());

            default:
                return(string.Empty);
            }
        }
Пример #2
0
        public void ChangeUploadData()
        {
            this.uploadItem.modeUpdate = false;
            int user_idx = this.netInfo.profile.userIdx;

            switch ((DataType)this.dataType)
            {
            case DataType.Chara:
                this.updateCharaInfo = true;
                CustomCharaScrollController.ScrollData info = (CustomCharaScrollController.ScrollData)null;
                info = !this.updateFemale ? this.netInfo.selectCharaMWindow.GetSelectInfo() : this.netInfo.selectCharaFWindow.GetSelectInfo();
                if (info != null)
                {
                    if (this.netInfo.lstCharaInfo.Where <NetworkInfo.CharaInfo>((Func <NetworkInfo.CharaInfo, bool>)(x => x.data_uid == info.info.data_uuid && x.user_idx == user_idx)).ToArray <NetworkInfo.CharaInfo>().Length != 0)
                    {
                        this.uploadItem.modeUpdate = true;
                        break;
                    }
                    if (this.netInfo.dictUploaded[0].ContainsKey(info.info.data_uuid))
                    {
                        this.uploadItem.modeUpdate = true;
                        break;
                    }
                    break;
                }
                break;

            case DataType.Housing:
                this.uploadItem.modeUpdate = false;
                this.updateHousingInfo     = true;
                break;
            }
            if (!Object.op_Implicit((Object)this.uploadItem.btnUpload))
            {
                return;
            }
            Text componentInChildren = (Text)((Component)this.uploadItem.btnUpload).GetComponentInChildren <Text>(true);

            if (!Object.op_Implicit((Object)componentInChildren))
            {
                return;
            }
            componentInChildren.set_text(!this.uploadItem.modeUpdate ? "アップロード" : "更新");
        }
Пример #3
0
        public void UpdateInfoChara()
        {
            string path = string.Empty;

            CustomCharaScrollController.ScrollData scrollData = !this.updateFemale ? this.netInfo.selectCharaMWindow.GetSelectInfo() : this.netInfo.selectCharaFWindow.GetSelectInfo();
            if (scrollData != null)
            {
                CustomCharaFileInfo info = scrollData.info;
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textName))
                {
                    this.selInfoCha.textName.set_text(info.name);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textType))
                {
                    this.selInfoCha.textType.set_text(info.sex != 0 ? Singleton <Character> .Instance.GetCharaTypeName(info.type) : string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textBirthDay))
                {
                    this.selInfoCha.textBirthDay.set_text(info.strBirthDay);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase01))
                {
                    this.selInfoCha.objOnPhase01.SetActiveIfDifferent(this.updateFemale);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase02))
                {
                    this.selInfoCha.objOnPhase02.SetActiveIfDifferent(info.phase >= 1 && this.updateFemale);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase03))
                {
                    this.selInfoCha.objOnPhase03.SetActiveIfDifferent(info.phase >= 2 && this.updateFemale);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase04))
                {
                    this.selInfoCha.objOnPhase04.SetActiveIfDifferent(info.phase == 3 && this.updateFemale);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textLifeStyle))
                {
                    this.selInfoCha.textLifeStyle.set_text(info.lifestyle == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetLifeStyleName(info.lifestyle));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textPheromone))
                {
                    this.selInfoCha.textPheromone.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.pheromone.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textReliability))
                {
                    this.selInfoCha.textReliability.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.reliability.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textReason))
                {
                    this.selInfoCha.textReason.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.reason.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textInstinct))
                {
                    this.selInfoCha.textInstinct.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.instinct.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textDirty))
                {
                    this.selInfoCha.textDirty.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.dirty.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWariness))
                {
                    this.selInfoCha.textWariness.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.wariness.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSociability))
                {
                    this.selInfoCha.textSociability.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.sociability.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textDarkness))
                {
                    this.selInfoCha.textDarkness.set_text(!info.gameRegistration || !this.updateFemale ? "---------------" : info.darkness.ToString());
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n01))
                {
                    this.selInfoCha.textSkill_n01.set_text(info.skill_n01 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetNormalSkillName(info.skill_n01));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n02))
                {
                    this.selInfoCha.textSkill_n02.set_text(info.skill_n02 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetNormalSkillName(info.skill_n02));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n03))
                {
                    this.selInfoCha.textSkill_n03.set_text(info.skill_n03 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetNormalSkillName(info.skill_n03));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n04))
                {
                    this.selInfoCha.textSkill_n04.set_text(info.skill_n04 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetNormalSkillName(info.skill_n04));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n05))
                {
                    this.selInfoCha.textSkill_n05.set_text(info.skill_n05 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetNormalSkillName(info.skill_n05));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h01))
                {
                    this.selInfoCha.textSkill_h01.set_text(info.skill_h01 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetHSkillName(info.skill_h01));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h02))
                {
                    this.selInfoCha.textSkill_h02.set_text(info.skill_h02 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetHSkillName(info.skill_h02));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h03))
                {
                    this.selInfoCha.textSkill_h03.set_text(info.skill_h03 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetHSkillName(info.skill_h03));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h04))
                {
                    this.selInfoCha.textSkill_h04.set_text(info.skill_h04 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetHSkillName(info.skill_h04));
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h05))
                {
                    this.selInfoCha.textSkill_h05.set_text(info.skill_h05 == -1 || !this.updateFemale ? "---------------" : this.netInfo.GetHSkillName(info.skill_h05));
                }
                Dictionary <int, ListInfoBase> categoryInfo = Singleton <Character> .Instance.chaListCtrl.GetCategoryInfo(ChaListDefine.CategoryNo.init_wish_param);

                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_01))
                {
                    string       str = "---------------";
                    ListInfoBase listInfoBase;
                    if (info.wish_01 != -1 && this.updateFemale && categoryInfo.TryGetValue(info.wish_01, out listInfoBase))
                    {
                        str = listInfoBase.Name;
                    }
                    this.selInfoCha.textWish_01.set_text(str);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_02))
                {
                    string       str = "---------------";
                    ListInfoBase listInfoBase;
                    if (info.wish_02 != -1 && this.updateFemale && categoryInfo.TryGetValue(info.wish_02, out listInfoBase))
                    {
                        str = listInfoBase.Name;
                    }
                    this.selInfoCha.textWish_02.set_text(str);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_03))
                {
                    string       str = "---------------";
                    ListInfoBase listInfoBase;
                    if (info.wish_03 != -1 && this.updateFemale && categoryInfo.TryGetValue(info.wish_03, out listInfoBase))
                    {
                        str = listInfoBase.Name;
                    }
                    this.selInfoCha.textWish_03.set_text(str);
                }
                path = info.FullPath;
            }
            else
            {
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textName))
                {
                    this.selInfoCha.textName.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textType))
                {
                    this.selInfoCha.textType.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textBirthDay))
                {
                    this.selInfoCha.textBirthDay.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase01))
                {
                    this.selInfoCha.objOnPhase01.SetActiveIfDifferent(false);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase02))
                {
                    this.selInfoCha.objOnPhase02.SetActiveIfDifferent(false);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase03))
                {
                    this.selInfoCha.objOnPhase03.SetActiveIfDifferent(false);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.objOnPhase04))
                {
                    this.selInfoCha.objOnPhase04.SetActiveIfDifferent(false);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textLifeStyle))
                {
                    this.selInfoCha.textLifeStyle.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textPheromone))
                {
                    this.selInfoCha.textPheromone.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textReliability))
                {
                    this.selInfoCha.textReliability.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textReason))
                {
                    this.selInfoCha.textReason.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textInstinct))
                {
                    this.selInfoCha.textInstinct.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textDirty))
                {
                    this.selInfoCha.textDirty.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWariness))
                {
                    this.selInfoCha.textWariness.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSociability))
                {
                    this.selInfoCha.textSociability.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textDarkness))
                {
                    this.selInfoCha.textDarkness.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n01))
                {
                    this.selInfoCha.textSkill_n01.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n02))
                {
                    this.selInfoCha.textSkill_n02.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n03))
                {
                    this.selInfoCha.textSkill_n03.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n04))
                {
                    this.selInfoCha.textSkill_n04.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_n05))
                {
                    this.selInfoCha.textSkill_n05.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h01))
                {
                    this.selInfoCha.textSkill_h01.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h02))
                {
                    this.selInfoCha.textSkill_h02.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h03))
                {
                    this.selInfoCha.textSkill_h03.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h04))
                {
                    this.selInfoCha.textSkill_h04.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textSkill_h05))
                {
                    this.selInfoCha.textSkill_h05.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_01))
                {
                    this.selInfoCha.textWish_01.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_02))
                {
                    this.selInfoCha.textWish_02.set_text(string.Empty);
                }
                if (Object.op_Inequality((Object)null, (Object)this.selInfoCha.textWish_03))
                {
                    this.selInfoCha.textWish_03.set_text(string.Empty);
                }
            }
            this.UpdatePreview(DataType.Chara, path);
        }