コード例 #1
0
 private void RPCCheckBox_CheckedChanged(object sender, RoutedEventArgs e)
 {
     if (Properties.Settings.MySettings.ShowDiscordRPC == false)
     {
         RPCCheckBox.IsChecked = true;
         Properties.Settings.MySettings.ShowDiscordRPC = true;
         DiscordRP.UpdateDiscord(ManiacEditor.Methods.Solution.SolutionPaths.SceneFile_Source.ToString());
     }
     else
     {
         RPCCheckBox.IsChecked = false;
         Properties.Settings.MySettings.ShowDiscordRPC = false;
         DiscordRP.UpdateDiscord();
     }
 }
コード例 #2
0
 public static void SetupDiscordRP(string SceneFile)
 {
     DiscordRP.UpdateDiscord(SceneFile);
 }