private void gossipGrid_KeyDown(object sender, KeyEventArgs e) { if (e.KeyboardDevice.Modifiers == ModifierKeys.Control && e.Key == Key.S) { if (_SelectedGossipMenu != null) { WorldWorker.SaveGossipMenu(_SelectedGossipMenu); } if (_SelectedNpcText != null) { WorldWorker.SaveNpcText(_SelectedNpcText); } if (_bct0 != null) { WorldWorker.SaveBroadCastText(_bct0); } if (_bct1 != null) { WorldWorker.SaveBroadCastText(_bct1); } if (_bct2 != null) { WorldWorker.SaveBroadCastText(_bct2); } if (_bct3 != null) { WorldWorker.SaveBroadCastText(_bct3); } if (_bct4 != null) { WorldWorker.SaveBroadCastText(_bct4); } if (_bct5 != null) { WorldWorker.SaveBroadCastText(_bct5); } if (_bct6 != null) { WorldWorker.SaveBroadCastText(_bct6); } if (_bct7 != null) { WorldWorker.SaveBroadCastText(_bct7); } SaveGossipItems(); LegacyToolBox.AppendMessage("Gossip Menu " + _SelectedGossipMenu.entry + " Saved."); e.Handled = true; } }
private void Save() { if (_SelectedResearchSet != null) { WorldWorker.SaveResearchSet(_SelectedResearchSet); } else { return; } if (_SelectedResearchData != null) { WorldWorker.SaveResearchData(_SelectedResearchData); } else { return; } if (_SelectedResearchSpell != null) { WorldWorker.SaveResearchSpell(_SelectedResearchSpell); } if (_SelectedResearchItem != null) { WorldWorker.SaveResearchItem(_SelectedResearchItem); } if (_SelectedNpcText != null) { WorldWorker.SaveNpcText(_SelectedNpcText); } if (_SelectedBroadcastText != null) { _SelectedBroadcastText.FemaleText = _SelectedBroadcastText.MaleText; WorldWorker.SaveBroadCastText(_SelectedBroadcastText); } WorldWorker.SaveResearchQuests(_ResearchQuest, _SelectedResearchData.QuestSet); LegacyToolBox.AppendMessage("Research Set " + _SelectedResearchSet.ID + " Saved."); }