// List custom controls public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "PluginButton") { return(new PluginButton()); } if (args.Name == "PluginSinglePicture") { return(new PluginSinglePicture()); } if (args.Name == "PluginListScreenshots") { return(new PluginListScreenshots()); } if (args.Name == "PluginListScreenshotsVertical") { return(new PluginListScreenshotsVertical()); } if (args.Name == "PluginViewItem") { return(new PluginViewItem()); } return(null); }
public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "ReviewsControl") { return(new ReviewsControl(GetPluginUserDataPath(), steamApiLanguage, settings)); } return(null); }
// List custom controls public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "PluginFeaturesIconList") { return(new PluginFeaturesIconList(PlayniteApi, PluginSettings)); } return(null); }
public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "NewsViewerControl") { return(new NewsViewerControl(PlayniteApi, settings, steamApiLanguage)); } return(null); }
public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "TestUserControl") { logger.Warn(PlayniteApi.MainView.ActiveDesktopView.ToString()); return(new TestPluginUserControl(Settings)); } return(null); }
public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "LogoLoaderControl") { return(new LogoLoaderControl(PlayniteApi, settings)); } if (args.Name == "VideoLoaderControl") { if (PlayniteApi.ApplicationInfo.Mode == ApplicationMode.Desktop) { if (PlayniteApi.MainView.ActiveDesktopView == DesktopView.Details && detailsVideoControl == null && !settings.Settings.EnableAlternativeDetailsVideoPlayer) { detailsVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(detailsVideoControl); } else if (PlayniteApi.MainView.ActiveDesktopView == DesktopView.Grid && gridVideoControl == null && !settings.Settings.EnableAlternativeGridVideoPlayer) { gridVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(gridVideoControl); } } if (genericVideoControl == null && !settings.Settings.EnableAlternativeGenericVideoPlayer) { genericVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(gridVideoControl); } } if (args.Name == "VideoLoaderControlAlternative") { if (PlayniteApi.ApplicationInfo.Mode == ApplicationMode.Desktop) { if (PlayniteApi.MainView.ActiveDesktopView == DesktopView.Details && detailsVideoControl == null && settings.Settings.EnableAlternativeDetailsVideoPlayer) { detailsVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(detailsVideoControl); } else if (PlayniteApi.MainView.ActiveDesktopView == DesktopView.Grid && gridVideoControl == null && settings.Settings.EnableAlternativeGridVideoPlayer) { gridVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(gridVideoControl); } if (genericVideoControl == null && settings.Settings.EnableAlternativeGenericVideoPlayer) { genericVideoControl = new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath()); return(gridVideoControl); } } } return(null); }
public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "LogoLoaderControl") { return(new LogoLoaderControl(PlayniteApi, settings)); } if (args.Name == "VideoLoaderControl") { return(new VideoPlayerControl(PlayniteApi, settings, GetPluginUserDataPath())); } return(null); }
// List custom controls public override Control GetGameViewControl(GetGameViewControlArgs args) { if (args.Name == "PluginBackgroundImage") { return(new PluginBackgroundImage()); } if (args.Name == "PluginCoverImage") { return(new PluginCoverImage()); } return(null); }