Exemple #1
0
        public void UpdateCharasList()
        {
            List <CustomCharaFileInfo> charaFileInfoList = CustomCharaFileInfoAssist.CreateCharaFileInfoList((byte)0 == this.chaCtrl.sex, (byte)1 == this.chaCtrl.sex, true, true, false, false);

            this.charaLoadWinA.UpdateWindow(this.customBase.modeNew, (int)this.customBase.modeSex, false, charaFileInfoList);
            this.charaLoadWinB.UpdateWindow(this.customBase.modeNew, (int)this.customBase.modeSex, false, charaFileInfoList);
        }
 public void UpdateWindow(bool modeNew, int sex, bool save, List <CustomCharaFileInfo> _lst = null)
 {
     if (this.tglLoadOption != null && this.tglLoadOption.Length > 4 && Object.op_Inequality((Object)null, (Object)this.tglLoadOption[4]))
     {
         ((Component)this.tglLoadOption[4]).get_gameObject().SetActiveIfDifferent(modeNew);
     }
     this.lstChara = _lst != null ? _lst : CustomCharaFileInfoAssist.CreateCharaFileInfoList(0 == sex, 1 == sex, true, true, false, save);
     this.Sort();
 }
Exemple #3
0
        public static List <CustomCharaFileInfo> CreateCharaFileInfoList(
            bool useMale,
            bool useFemale,
            bool useMyData       = true,
            bool useDownload     = true,
            bool usePreset       = true,
            bool _isFindSaveData = true)
        {
            List <CustomCharaFileInfo> _list = new List <CustomCharaFileInfo>();
            int idx = 0;

            if (usePreset)
            {
                if (useMale)
                {
                    string path = DefaultData.Path + "chara/male/";
                    CustomCharaFileInfoAssist.AddList(_list, path, (byte)0, false, false, true, false, ref idx);
                }
                if (useFemale)
                {
                    string path = DefaultData.Path + "chara/female/";
                    CustomCharaFileInfoAssist.AddList(_list, path, (byte)1, false, false, true, false, ref idx);
                }
            }
            if (useMyData || useDownload)
            {
                if (useMale)
                {
                    string path = UserData.Path + "chara/male/";
                    CustomCharaFileInfoAssist.AddList(_list, path, (byte)0, useMyData, useDownload, false, _isFindSaveData, ref idx);
                }
                if (useFemale)
                {
                    string path = UserData.Path + "chara/female/";
                    CustomCharaFileInfoAssist.AddList(_list, path, (byte)1, useMyData, useDownload, false, _isFindSaveData, ref idx);
                }
            }
            return(_list);
        }