public void UpdateWindow(bool modeNew, int sex, bool save) { if (this.tglLoadOption != null && this.tglLoadOption.Length > 4 && Object.op_Implicit((Object)this.tglLoadOption[4])) { ((Component)this.tglLoadOption[4]).get_gameObject().SetActiveIfDifferent(modeNew); } this.lstClothes = CustomClothesFileInfoAssist.CreateClothesFileInfoList(0 == sex, 1 == sex, true, !save); this.Sort(); }
public static List <CustomClothesFileInfo> CreateClothesFileInfoList( bool useMale, bool useFemale, bool useMyData = true, bool usePreset = true) { List <CustomClothesFileInfo> _list = new List <CustomClothesFileInfo>(); int idx = 0; if (usePreset) { if (useMale) { string path = DefaultData.Path + "coordinate/male/"; CustomClothesFileInfoAssist.AddList(_list, path, (byte)0, true, ref idx); } if (useFemale) { string path = DefaultData.Path + "coordinate/female/"; CustomClothesFileInfoAssist.AddList(_list, path, (byte)1, true, ref idx); } } if (useMyData) { if (useMale) { string path = UserData.Path + "coordinate/male/"; CustomClothesFileInfoAssist.AddList(_list, path, (byte)0, false, ref idx); } if (useFemale) { string path = UserData.Path + "coordinate/female/"; CustomClothesFileInfoAssist.AddList(_list, path, (byte)1, false, ref idx); } } return(_list); }