예제 #1
0
 public void AddBtHeader()
 {
     if (_PlayniteApi.ApplicationInfo.Mode == ApplicationMode.Desktop)
     {
         if (PluginDatabase.PluginSettings.EnableIntegrationButtonHeader)
         {
             logger.Info("GameActivity - Add Header button");
             Button btHeader = new GameActivityButtonHeader(TransformIcon.Get("GameActivity"));
             btHeader.SetValue(TextBlock.FontWeightProperty, FontWeights.Bold);
             btHeader.Click += OnBtHeaderClick;
             ui.AddButtonInWindowsHeader(btHeader);
         }
     }
 }
예제 #2
0
        public override void OnApplicationStarted()
        {
            // Add code to be executed when Playnite is initialized.

            if (settings.EnableIntegrationButtonHeader)
            {
                logger.Info("GameActivity - Add Header button");
                Button btHeader = new GameActivityButtonHeader(TransformIcon.Get("GameActivity"));
                btHeader.SetValue(TextBlock.FontWeightProperty, FontWeights.Bold);
                btHeader.Click += OnBtHeaderClick;
                ui.AddButtonInWindowsHeader(btHeader);
            }


            CheckGoodForLogging(true);
        }