// Token: 0x0600389E RID: 14494 RVA: 0x0002BE79 File Offset: 0x0002A079 public void Init(Func <KeyCode[]> getKeys, Action <KeyCode[]> setKeys, CustomSettingsScreen owner) { this.owner = owner; this.GetKeys = getKeys; this.SetKeys = setKeys; this.messageBox.SetMessage(new MessageDescriptor(KeybindControl.KeyBindingToString(getKeys()))); }
// Token: 0x06003883 RID: 14467 RVA: 0x000E6D94 File Offset: 0x000E4F94 public void AddKeybind(string label, Func <KeyCode[]> getKeys, Action <KeyCode[]> setKeys) { CleverMenuItem cleverMenuItem = this.AddItem(label); cleverMenuItem.gameObject.name = "Keybind (" + label + ")"; KeybindControl kc = cleverMenuItem.gameObject.AddComponent <KeybindControl>(); kc.Init(getKeys, setKeys, this); cleverMenuItem.PressedCallback += delegate { this.SetFakeTooltip("Backspace: remove bind\nEnter: finish editing"); kc.BeginEditing(); }; }
// Token: 0x0600389C RID: 14492 RVA: 0x0002BE57 File Offset: 0x0002A057 private void UpdateMessageBox() { this.messageBox.SetMessage(new MessageDescriptor(KeybindControl.KeyBindingToString(this.currentKeys.ToArray()))); }
// Token: 0x060038A0 RID: 14496 RVA: 0x0002BEE5 File Offset: 0x0002A0E5 public void Reset() { this.messageBox.SetMessage(new MessageDescriptor(KeybindControl.KeyBindingToString(this.GetKeys()))); this.editing = false; }