mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
GameData Changes
- when changing the gamedata files (add, delete, reload) it will reload all the gamedata files and repopulate the server managers. - updated the viewmodels to check for valid class names.
This commit is contained in:
parent
1bf04ed33e
commit
479e4a64dc
33 changed files with 427 additions and 305 deletions
|
|
@ -63,6 +63,8 @@ namespace ServerManagerTool
|
|||
}
|
||||
|
||||
this.DataContext = this;
|
||||
|
||||
GameData.GameDataLoaded += GameData_GameDataLoaded;
|
||||
}
|
||||
|
||||
public App AppInstance
|
||||
|
|
@ -398,14 +400,19 @@ namespace ServerManagerTool
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void GameData_GameDataLoaded(object sender, EventArgs e)
|
||||
{
|
||||
PopulateRconMessageModesComboBox();
|
||||
}
|
||||
|
||||
private void LanguageSelectionComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
Config.CultureName = AvailableLanguages.Instance.SelectedLanguage;
|
||||
|
||||
PopulateWindowsStatesMainWindowComboBox();
|
||||
PopulateWindowsStatesServerMonitorWindowComboBox();
|
||||
PopulateRconMessageModesComboBox();
|
||||
PopulateTaskPrioritiesComboBox();
|
||||
GameData_GameDataLoaded(sender, e);
|
||||
|
||||
App.Instance.OnResourceDictionaryChanged(Config.CultureName);
|
||||
}
|
||||
|
|
@ -492,6 +499,11 @@ namespace ServerManagerTool
|
|||
}
|
||||
}
|
||||
|
||||
public void CloseControl()
|
||||
{
|
||||
GameData.GameDataLoaded -= GameData_GameDataLoaded;
|
||||
}
|
||||
|
||||
private void PopulateWindowsStatesMainWindowComboBox()
|
||||
{
|
||||
var selectedValue = this.WindowStateMainWindowComboBox?.SelectedValue ?? Config.MainWindow_WindowState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue