private void InitList() { int childCount = this.transformRoot.get_childCount(); for (int index = 0; index < childCount; ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); foreach (KeyValuePair <int, Info.GroupInfo> keyValuePair in Singleton <Info> .Instance.dicVoiceGroupCategory) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type VoiceGroupList.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new VoiceGroupList.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectPrefab); if (!gameObject.get_activeSelf()) { gameObject.SetActive(true); } gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.no = keyValuePair.Key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = keyValuePair.Value.name; this.dicNode.Add(keyValuePair.Key, component); } this.select = -1; this.active = true; }
private void InitList() { for (int index = 0; index < this.transformRoot.get_childCount(); ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); foreach (KeyValuePair <int, Info.LoadCommonInfo> keyValuePair in Singleton <Info> .Instance.dicBGMLoadInfo) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type BGMControl.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new BGMControl.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectNode); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: reference to a compiler-generated field listCAnonStorey0.idx = keyValuePair.Key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = keyValuePair.Value.name; // ISSUE: reference to a compiler-generated field this.dicNode.Add(listCAnonStorey0.idx, component); } StudioNode studioNode = (StudioNode)null; if (!this.dicNode.TryGetValue(Singleton <Studio.Studio> .Instance.bgmCtrl.no, out studioNode)) { return; } studioNode.select = true; }
private void SetPage(int _page) { StudioNode studioNode = (StudioNode)null; if (this.dicPage.TryGetValue(SceneLoadScene.page, out studioNode)) { studioNode.select = false; } _page = Mathf.Clamp(_page, 0, this.pageNum - 1); int num = 12 * _page; for (int index = 0; index < 12; ++index) { int n = num + index; if (!MathfEx.RangeEqualOn <int>(0, n, this.thumbnailNum - 1)) { this.buttonThumbnail[index].interactable = false; } else { this.buttonThumbnail[index].texture = (Texture)PngAssist.LoadTexture(this.listPath[n]); this.buttonThumbnail[index].interactable = true; } } SceneLoadScene.page = _page; if (this.dicPage.TryGetValue(SceneLoadScene.page, out studioNode)) { studioNode.select = true; } Resources.UnloadUnusedAssets(); GC.Collect(); }
private void SetSelect(int _idx, bool _flag) { StudioNode studioNode = (StudioNode)null; if (!this.dicNode.TryGetValue(_idx, out studioNode)) { return; } studioNode.select = _flag; }
private void OnClickSelect(int _idx) { StudioNode studioNode = (StudioNode)null; if (this.dicNode.TryGetValue(Singleton <Studio.Studio> .Instance.bgmCtrl.no, out studioNode)) { studioNode.select = false; } Singleton <Studio.Studio> .Instance.bgmCtrl.no = _idx; if (!this.dicNode.TryGetValue(Singleton <Studio.Studio> .Instance.bgmCtrl.no, out studioNode)) { return; } studioNode.select = true; }
private void OnEnable() { ((Selectable)this.buttonRepeat).get_image().set_sprite(this.spriteRepeat[Singleton <Studio.Studio> .Instance.bgmCtrl.repeat != BGMCtrl.Repeat.None ? 1 : 0]); foreach (KeyValuePair <int, StudioNode> keyValuePair in this.dicNode) { keyValuePair.Value.select = false; } StudioNode studioNode = (StudioNode)null; if (!this.dicNode.TryGetValue(Singleton <Studio.Studio> .Instance.bgmCtrl.no, out studioNode)) { return; } studioNode.select = true; }
private void InitList() { for (int index = 0; index < this.transformRoot.get_childCount(); ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); string[] files = Directory.GetFiles(UserData.Create("audio"), "*.wav"); // ISSUE: reference to a compiler-generated field if (OutsideSoundControl.\u003C\u003Ef__mg\u0024cache0 == null) { // ISSUE: reference to a compiler-generated field OutsideSoundControl.\u003C\u003Ef__mg\u0024cache0 = new Func <string, string>(Path.GetFileName); } // ISSUE: reference to a compiler-generated field Func <string, string> fMgCache0 = OutsideSoundControl.\u003C\u003Ef__mg\u0024cache0; this.listPath = ((IEnumerable <string>)files).Select <string, string>(fMgCache0).ToList <string>(); int count = this.listPath.Count; for (int index = 0; index < count; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type OutsideSoundControl.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new OutsideSoundControl.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectNode); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: reference to a compiler-generated field listCAnonStorey0.idx = index; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = Path.GetFileNameWithoutExtension(this.listPath[index]); // ISSUE: reference to a compiler-generated field this.dicNode.Add(listCAnonStorey0.idx, component); } this.select = this.listPath.FindIndex((Predicate <string>)(v => v == Singleton <Studio.Studio> .Instance.outsideSoundCtrl.fileName)); StudioNode studioNode = (StudioNode)null; if (!this.dicNode.TryGetValue(this.select, out studioNode)) { return; } studioNode.select = true; }
private void InitList() { for (int index = 0; index < this.transformRoot.get_childCount(); ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); this.select = -1; this.inputName.set_text(string.Empty); ((Selectable)this.buttonSave).set_interactable(false); ((Selectable)this.buttonLoad).set_interactable(false); ((Selectable)this.buttonImport).set_interactable(false); ((Selectable)this.buttonDelete).set_interactable(false); string[] files = System.IO.Directory.GetFiles(UserData.Create("studio/voicelist"), "*.dat"); // ISSUE: reference to a compiler-generated field if (VoiceRegistrationList.\u003C\u003Ef__mg\u0024cache0 == null) { // ISSUE: reference to a compiler-generated field VoiceRegistrationList.\u003C\u003Ef__mg\u0024cache0 = new Func <string, bool>(VoiceCtrl.CheckIdentifyingCode); } // ISSUE: reference to a compiler-generated field Func <string, bool> fMgCache0 = VoiceRegistrationList.\u003C\u003Ef__mg\u0024cache0; this.listPath = ((IEnumerable <string>)files).Where <string>(fMgCache0).ToList <string>(); this.dicNode.Clear(); for (int key = 0; key < this.listPath.Count; ++key) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type VoiceRegistrationList.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new VoiceRegistrationList.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.prefabNode); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: reference to a compiler-generated field listCAnonStorey0.no = key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = VoiceCtrl.LoadListName(this.listPath[key]); this.dicNode.Add(key, component); } }
public void InitList(int _group) { if (!Utility.SetStruct <int>(ref this.group, _group)) { return; } int childCount = this.transformRoot.get_childCount(); for (int index = 0; index < childCount; ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); this.scrollRect.set_verticalNormalizedPosition(1f); this.dicNode = new Dictionary <int, StudioNode>(); foreach (KeyValuePair <int, Info.CategoryInfo> keyValuePair in (IEnumerable <KeyValuePair <int, Info.CategoryInfo> >)Singleton <Info> .Instance.dicVoiceGroupCategory[_group].dicCategory.OrderBy <KeyValuePair <int, Info.CategoryInfo>, int>((Func <KeyValuePair <int, Info.CategoryInfo>, int>)(v => v.Value.sort))) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type VoiceCategoryList.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new VoiceCategoryList.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; if (this.CheckCategory(_group, keyValuePair.Key)) { GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectPrefab); if (!gameObject.get_activeSelf()) { gameObject.SetActive(true); } gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.no = keyValuePair.Key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = keyValuePair.Value.name; this.dicNode.Add(keyValuePair.Key, component); } } this.select = -1; this.active = true; this.voiceList.active = false; }
private void OnClickSelect(int _idx) { StudioNode studioNode = (StudioNode)null; if (this.dicNode.TryGetValue(this.select, out studioNode)) { studioNode.select = false; } this.select = _idx; if (this.select != -1) { Singleton <Studio.Studio> .Instance.outsideSoundCtrl.fileName = this.listPath[_idx]; } if (!this.dicNode.TryGetValue(this.select, out studioNode)) { return; } studioNode.select = true; }
private void OnClickSelect(int _no) { StudioNode studioNode = (StudioNode)null; if (this.dicNode.TryGetValue(this.select, out studioNode)) { studioNode.select = false; } this.select = _no; if (this.dicNode.TryGetValue(this.select, out studioNode)) { studioNode.select = true; } if (this.select == -1) { return; } ((Selectable)this.buttonLoad).set_interactable(true); ((Selectable)this.buttonDelete).set_interactable(true); }
private void CreateNode(int _idx, string _text) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type BackgroundList.\u003CCreateNode\u003Ec__AnonStorey0 nodeCAnonStorey0 = new BackgroundList.\u003CCreateNode\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field nodeCAnonStorey0._idx = _idx; // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectNode); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: method pointer component.addOnClick = new UnityAction((object)nodeCAnonStorey0, __methodptr(\u003C\u003Em__0)); component.text = _text; // ISSUE: reference to a compiler-generated field this.dicNode.Add(nodeCAnonStorey0._idx, component); }
private void OnSelect(int _no) { int select = this.select; if (!Utility.SetStruct <int>(ref this.select, _no)) { return; } this.voiceList.InitList(this.group, _no); StudioNode studioNode = (StudioNode)null; if (this.dicNode.TryGetValue(select, out studioNode)) { studioNode.select = false; } if (!this.dicNode.TryGetValue(this.select, out studioNode)) { return; } studioNode.select = true; }
private void InitList() { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type PauseRegistrationList.\u003CInitList\u003Ec__AnonStorey0 listCAnonStorey0 = new PauseRegistrationList.\u003CInitList\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field listCAnonStorey0.\u0024this = this; for (int index = 0; index < this.transformRoot.get_childCount(); ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); this.select = -1; ((Selectable)this.buttonLoad).set_interactable(false); ((Selectable)this.buttonDelete).set_interactable(false); // ISSUE: reference to a compiler-generated field listCAnonStorey0.sex = this.m_OCIChar.oiCharInfo.sex; // ISSUE: reference to a compiler-generated method this.listPath = ((IEnumerable <string>)System.IO.Directory.GetFiles(UserData.Create("studio/pose"), "*.dat")).Where <string>(new Func <string, bool>(listCAnonStorey0.\u003C\u003Em__0)).ToList <string>(); this.dicNode.Clear(); for (int key = 0; key < this.listPath.Count; ++key) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type PauseRegistrationList.\u003CInitList\u003Ec__AnonStorey1 listCAnonStorey1 = new PauseRegistrationList.\u003CInitList\u003Ec__AnonStorey1(); // ISSUE: reference to a compiler-generated field listCAnonStorey1.\u003C\u003Ef__ref\u00240 = listCAnonStorey0; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.prefabNode); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: reference to a compiler-generated field listCAnonStorey1.no = key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)listCAnonStorey1, __methodptr(\u003C\u003Em__0)); component.text = PauseCtrl.LoadName(this.listPath[key]); this.dicNode.Add(key, component); } }
private void InitInfo() { for (int index = 0; index < this.transformRoot.get_childCount(); ++index) { Object.Destroy((Object)((Component)this.transformRoot.GetChild(index)).get_gameObject()); } this.transformRoot.DetachChildren(); List <KeyValuePair <DateTime, string> > list = ((IEnumerable <string>)System.IO.Directory.GetFiles(UserData.Create("studio/scene"), "*.png")).Select <string, KeyValuePair <DateTime, string> >((Func <string, KeyValuePair <DateTime, string> >)(s => new KeyValuePair <DateTime, string>(File.GetLastWriteTime(s), s))).ToList <KeyValuePair <DateTime, string> >(); CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("ja-JP"); list.Sort((Comparison <KeyValuePair <DateTime, string> >)((a, b) => b.Key.CompareTo(a.Key))); Thread.CurrentThread.CurrentCulture = currentCulture; this.listPath = list.Select <KeyValuePair <DateTime, string>, string>((Func <KeyValuePair <DateTime, string>, string>)(v => v.Value)).ToList <string>(); this.thumbnailNum = this.listPath.Count; this.pageNum = this.thumbnailNum / 12 + (this.thumbnailNum % 12 == 0 ? 0 : 1); this.dicPage.Clear(); for (int key = 0; key < this.pageNum; ++key) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type SceneLoadScene.\u003CInitInfo\u003Ec__AnonStorey3 infoCAnonStorey3 = new SceneLoadScene.\u003CInitInfo\u003Ec__AnonStorey3(); // ISSUE: reference to a compiler-generated field infoCAnonStorey3.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.prefabButton); gameObject.get_transform().SetParent(this.transformRoot, false); StudioNode component = (StudioNode)gameObject.GetComponent <StudioNode>(); component.active = true; // ISSUE: reference to a compiler-generated field infoCAnonStorey3.page = key; // ISSUE: method pointer component.addOnClick = new UnityAction((object)infoCAnonStorey3, __methodptr(\u003C\u003Em__0)); component.text = string.Format("{0}", (object)(key + 1)); this.dicPage.Add(key, component); } }