public void SetData(int index, GameCoordinateFileInfo info, Action <bool> onClickAction) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GameCoordinateFileInfoComponent.\u003CSetData\u003Ec__AnonStorey0 dataCAnonStorey0 = new GameCoordinateFileInfoComponent.\u003CSetData\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field dataCAnonStorey0.onClickAction = onClickAction; // ISSUE: reference to a compiler-generated field dataCAnonStorey0.\u0024this = this; bool active = info != null; GameCoordinateFileInfoComponent.RowInfo row = this._rows[index]; ((Component)row.toggle).get_gameObject().SetActiveIfDifferent(active); ((UnityEventBase)row.toggle.onValueChanged).RemoveAllListeners(); if (!active) { return; } ((UnityEventBase)row.toggle.onValueChanged).RemoveAllListeners(); // ISSUE: method pointer ((UnityEvent <bool>)row.toggle.onValueChanged).AddListener(new UnityAction <bool>((object)dataCAnonStorey0, __methodptr(\u003C\u003Em__0))); row.toggle.SetIsOnWithoutCallback(false); ((Selectable)row.toggle).set_interactable(!info.IsInSaveData); row.imageThumb.set_texture((Texture)PngAssist.ChangeTextureFromByte(info.PngData ?? PngFile.LoadPngBytes(info.FullPath), 0, 0, (TextureFormat)5, false)); row.objSelect.SetActiveIfDifferent(false); // ISSUE: reference to a compiler-generated field dataCAnonStorey0.sel = index; // ISSUE: method pointer row.pointerAction.listActionEnter.Add(new UnityAction((object)dataCAnonStorey0, __methodptr(\u003C\u003Em__1))); // ISSUE: method pointer row.pointerAction.listActionExit.Add(new UnityAction((object)dataCAnonStorey0, __methodptr(\u003C\u003Em__2))); row.info = info; }
private void SetParameter(GameCoordinateFileInfo data, bool fromFolder) { this._objParameterWindow.get_activeSelf(); this._objParameterWindow.SetActiveIfDifferent(true); this._rawImageCoordinateCard.set_texture((Texture)PngAssist.ChangeTextureFromByte(PngFile.LoadPngBytes(data.FullPath), 0, 0, (TextureFormat)5, false)); ((Component)this._buttonInput).get_gameObject().SetActiveIfDifferent(fromFolder); ((Component)this._buttonOutput).get_gameObject().SetActiveIfDifferent(!fromFolder); }
private static void AddList( List <GameCoordinateFileInfo> list, List <string> coordList, string path, ref int idx) { List <string> toRelease = ListPool <string> .Get(); if (!coordList.IsNullOrEmpty <string>()) { foreach (string coord in coordList) { if (!toRelease.Contains(coord)) { toRelease.Add(coord); } } } FolderAssist folderAssist = new FolderAssist(); folderAssist.CreateFolderInfoEx(path, GameCoordinateFileInfoAssist._searchPatterns, true); int fileCount = folderAssist.GetFileCount(); for (int index = 0; index < fileCount; ++index) { ChaFileCoordinate chaFileCoordinate = new ChaFileCoordinate(); FolderAssist.FileInfo fileInfo = folderAssist.lstFile[index]; if (!chaFileCoordinate.LoadFile(fileInfo.FullPath)) { Debug.Log((object)string.Format("衣装カードファイル読み込みエラー:Code {0}", (object)chaFileCoordinate.GetLastErrorCode())); } else if (!toRelease.Contains(Path.GetFileNameWithoutExtension(chaFileCoordinate.coordinateFileName))) { List <GameCoordinateFileInfo> coordinateFileInfoList = list; GameCoordinateFileInfo coordinateFileInfo1 = new GameCoordinateFileInfo(); GameCoordinateFileInfo coordinateFileInfo2 = coordinateFileInfo1; int num1; idx = (num1 = idx) + 1; int num2 = num1; coordinateFileInfo2.Index = num2; coordinateFileInfo1.FullPath = fileInfo.FullPath; coordinateFileInfo1.FileName = fileInfo.FileName; coordinateFileInfo1.Time = fileInfo.time; GameCoordinateFileInfo coordinateFileInfo3 = coordinateFileInfo1; coordinateFileInfoList.Add(coordinateFileInfo3); } } ListPool <string> .Release(toRelease); }
private static void AddFileNameList( List <GameCoordinateFileInfo> list, List <string> fileNameList, string path, ref int idx) { if (fileNameList.IsNullOrEmpty <string>()) { return; } int count = fileNameList.Count; for (int index = 0; index < count; ++index) { ChaFileCoordinate chaFileCoordinate = new ChaFileCoordinate(); string fileName = fileNameList[index]; string path1 = string.Format("{0}{1}.png", (object)path, (object)fileName); if (!chaFileCoordinate.LoadFile(path1)) { Debug.Log((object)string.Format("衣装カードファイル読み込みエラー:Code {0}", (object)chaFileCoordinate.GetLastErrorCode())); } else { List <GameCoordinateFileInfo> coordinateFileInfoList = list; GameCoordinateFileInfo coordinateFileInfo1 = new GameCoordinateFileInfo(); GameCoordinateFileInfo coordinateFileInfo2 = coordinateFileInfo1; int num1; idx = (num1 = idx) + 1; int num2 = num1; coordinateFileInfo2.Index = num2; coordinateFileInfo1.FullPath = path1; coordinateFileInfo1.FileName = fileName; coordinateFileInfo1.Time = File.GetLastWriteTime(path1); GameCoordinateFileInfo coordinateFileInfo3 = coordinateFileInfo1; coordinateFileInfoList.Add(coordinateFileInfo3); } } }
private bool IsNowSelectInfo(GameCoordinateFileInfo info) { return(info != null && this.SelectData != null && this.SelectData.info.FullPath == info.FullPath); }
protected override void OnBeforeStart() { ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveChangedAsObservable(), (Action <M0>)(active => this.SetActiveControl(active))); ObservableExtensions.Subscribe <bool>((IObservable <M0>) this.OnActiveParameterChangedAsObservable(), (Action <M0>)(active => this.SetActiveParameter(active))); this._selectFolder = new BoolReactiveProperty(); ObservableExtensions.Subscribe <bool>((IObservable <M0>) this._selectFolder, (Action <M0>)(x => { if (x) { ((Component)this._buttonInput).get_gameObject().SetActiveIfDifferent(true); ((Component)this._buttonOutput).get_gameObject().SetActiveIfDifferent(false); ((ReactiveProperty <bool>) this._isActiveParameter).set_Value(true); } else { ((ReactiveProperty <bool>) this._isActiveParameter).set_Value(false); } })); this._selectSaveData = new BoolReactiveProperty(); ObservableExtensions.Subscribe <bool>((IObservable <M0>) this._selectSaveData, (Action <M0>)(x => { if (x) { ((Component)this._buttonInput).get_gameObject().SetActiveIfDifferent(false); ((Component)this._buttonOutput).get_gameObject().SetActiveIfDifferent(true); ((ReactiveProperty <bool>) this._isActiveParameter).set_Value(true); } else { ((ReactiveProperty <bool>) this._isActiveParameter).set_Value(false); } })); this._folderCoordinateListUI.OnChangeItemFunc = (CoordinateListUI.ChangeItemFunc)(dat => { this._selectInfo = dat; if (dat == null) { return; } this._rawImageCoordinateCard.set_texture((Texture)PngAssist.ChangeTextureFromByte(PngFile.LoadPngBytes(dat.FullPath), 0, 0, (TextureFormat)5, false)); }); this._savedataCoordinateListUI.OnChangeItemFunc = (CoordinateListUI.ChangeItemFunc)(dat => { this._selectInfo = dat; if (dat == null) { return; } this._rawImageCoordinateCard.set_texture((Texture)PngAssist.ChangeTextureFromByte(PngFile.LoadPngBytes(dat.FullPath), 0, 0, (TextureFormat)5, false)); }); this._folderCoordinateListUI.OnChangeItem = (Action <bool>)(isOn => { if (isOn) { ((ReactiveProperty <bool>) this._selectSaveData).set_Value(!isOn); this._savedataCoordinateListUI.SelectDataClear(); this._savedataCoordinateListUI.SetNowSelectToggle(); ((ReactiveProperty <bool>) this._selectFolder).set_Value(isOn); } else { ((ReactiveProperty <bool>) this._selectFolder).set_Value(false); ((ReactiveProperty <bool>) this._selectSaveData).set_Value(false); } }); this._savedataCoordinateListUI.OnChangeItem = (Action <bool>)(isOn => { if (isOn) { ((ReactiveProperty <bool>) this._selectFolder).set_Value(!isOn); this._folderCoordinateListUI.SelectDataClear(); this._folderCoordinateListUI.SetNowSelectToggle(); ((ReactiveProperty <bool>) this._selectSaveData).set_Value(isOn); } else { ((ReactiveProperty <bool>) this._selectFolder).set_Value(false); ((ReactiveProperty <bool>) this._selectSaveData).set_Value(false); } }); if (Object.op_Implicit((Object)this._buttonInput)) { // ISSUE: method pointer ((UnityEvent)this._buttonInput.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__8))); } if (Object.op_Implicit((Object)this._buttonOutput)) { // ISSUE: method pointer ((UnityEvent)this._buttonOutput.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__9))); } KeyCodeDownCommand keyCodeDownCommand = new KeyCodeDownCommand() { KeyCode = (KeyCode)324 }; // ISSUE: method pointer keyCodeDownCommand.TriggerEvent.AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__A))); this._keyCommands.Add(keyCodeDownCommand); if (!Object.op_Implicit((Object)this._buttonClose)) { return; } // ISSUE: method pointer ((UnityEvent)this._buttonClose.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003COnBeforeStart\u003Em__B))); ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this._buttonClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select))); ((Component)this._buttonClose).get_gameObject().SetActiveIfDifferent(!this._hideClose); }