private void b() { SortedDictionary <string, int> dictionary = this.g(); dictionary["Default"] = 0x270f; List <string> list = new List <string>(); foreach (KeyValuePair <string, object> pair in this.e) { if (!dictionary.ContainsKey(pair.Key)) { VHotkeyInfo info = pair.Value as VHotkeyInfo; if (info != null) { VHotkeySystem.get_InstanceReal().RemoveHotkey(info); list.Add(pair.Key); } } } foreach (string str in list) { this.e.Remove(str); } foreach (KeyValuePair <string, int> pair2 in dictionary) { if (!this.e.ContainsKey(pair2.Key)) { VHotkeyInfo info2 = new VHotkeyInfo("VTank", true, "Meta: " + pair2.Key, "Activates the meta state \"" + pair2.Key + "\"", 0, false, false, false); VHotkeySystem.get_InstanceReal().AddHotkey(info2); this.e[pair2.Key] = info2; info2.add_Fired2(new EventHandler <VHotkeyInfo.cEatableFiredEventArgs>(this.a)); } } }
private void a(object A_0, VHotkeyInfo.cEatableFiredEventArgs A_1) { VHotkeyInfo info = A_0 as VHotkeyInfo; if (info != null) { string str = info.get_HotkeyName().Substring(6); this.a(str); PluginCore.PC.v(); A_1.Eat = true; } }