private void OnInputFieldClicked(int _buttonIndex) { if (_buttonIndex < 0 || this.rows.Count <= _buttonIndex || this.controller == null) { return; } ((Selectable)this.controllerSelectDropDown).set_interactable(false); this.row = this.rows[_buttonIndex]; this.updateMode = Remapping.UpdateMode.SettingOrDelete; this.messageText.set_text(string.Empty); this.settingOrDeleteWindow.SetActive(true); }
private void OnDeleteInputSetting() { if (this.row != null) { if (this.controllerMap != null) { this.controllerMap.DeleteElementMapsWithAction(this.row.action.get_id()); } this.row = (Remapping.Row)null; } this.CloseWindow(Remapping.UpdateMode.ButtonSelectMode); ((Selectable)this.controllerSelectDropDown).set_interactable(true); this.RedrawUI(); }
private void RedrawUI() { if (this.controller == null) { this.ClearUI(); } else { this.ControllerMappingToSetting(); this.messageText.set_text("編集したいアクションを選択してください"); for (int index = 0; index < this.rows.Count; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Remapping.\u003CRedrawUI\u003Ec__AnonStorey0 redrawUiCAnonStorey0 = new Remapping.\u003CRedrawUI\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field redrawUiCAnonStorey0.\u0024this = this; Remapping.Row row = this.rows[index]; InputAction action = row.action; string str = string.Empty; using (IEnumerator <ActionElementMap> enumerator = this.controllerMap.ElementMapsWithAction(action.get_id()).GetEnumerator()) { while (((IEnumerator)enumerator).MoveNext()) { ActionElementMap current = enumerator.Current; if (current.ShowInField(row.actionRange)) { str = current.get_elementIdentifierName(); break; } } } row.text.set_text(str); ((UnityEventBase)row.button.get_onClick()).RemoveAllListeners(); // ISSUE: reference to a compiler-generated field redrawUiCAnonStorey0._index = index; // ISSUE: method pointer ((UnityEvent)row.button.get_onClick()).AddListener(new UnityAction((object)redrawUiCAnonStorey0, __methodptr(\u003C\u003Em__0))); } } }
private void UpdateInputCheckMode() { ControllerPollingInfo _pollingInfo = ((ReInput.ControllerHelper.PollingHelper)ReInput.get_controllers().polling).PollControllerForFirstElementDown(this.selectedControllerType, this.selectedControllerId); if (!((ControllerPollingInfo) ref _pollingInfo).get_success() || ((ControllerPollingInfo) ref _pollingInfo).get_elementType() != 1) { return; } InputAction action = this.row.action; ActionElementMap _actionElementMap = !this.controllerMap.ContainsAction(action.get_id()) ? (ActionElementMap)null : this.controllerMap.GetElementMapsWithAction(action.get_id())[0]; ElementAssignment elementAssignment = this.ToElementAssignment(_pollingInfo, (ModifierKeyFlags)0, this.row.actionRange, action.get_id(), _actionElementMap); ElementAssignmentConflictCheck _conflictCheck = (ElementAssignmentConflictCheck)null; if (this.CreateConflictCheck(elementAssignment, out _conflictCheck, _actionElementMap) && !((ReInput.ControllerHelper.ConflictCheckingHelper)ReInput.get_controllers().conflictChecking).DoesElementAssignmentConflict(_conflictCheck)) { this.controllerMap.ReplaceOrCreateElementMap(elementAssignment); } this.row = (Remapping.Row)null; this.updateMode = Remapping.UpdateMode.ButtonSelectMode; ((Selectable)this.controllerSelectDropDown).set_interactable(true); this.RedrawUI(); }
private void OnReturnToButtonSelectMode() { this.row = (Remapping.Row)null; this.CloseWindow(Remapping.UpdateMode.ButtonSelectMode); ((Selectable)this.controllerSelectDropDown).set_interactable(true); }