Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Celeste_Launcher_Gui/Pages/OverviewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ private void OpenUpdater(object sender, RoutedEventArgs e)

private void OpenPlayerColors(object sender, RoutedEventArgs e)
{
if (!File.Exists(PlayerColorsXML()))
{
GenericMessageDialog.Show(Properties.Resources.ColorPickerGamePathNotYetSet);
return;
}
var colorWindow = new SetPlayerColorWindow();
colorWindow.Owner = Window.GetWindow(this);
colorWindow.ShowDialog();
Expand Down Expand Up @@ -333,5 +338,7 @@ private void OpenToolsButtonToolTip(object sender, RoutedEventArgs e)
ToolsButton.ContextMenu.PlacementTarget = sender as UIElement;
ToolsButton.ContextMenu.IsOpen = true;
}
private static string PlayerColorsXML()
=> Path.Combine(LegacyBootstrapper.UserConfig.GameFilesPath, "Data", "playercolors.xml");
}
}