public override System.Windows.Forms.Control CreateConfigControl() { var control = new OverlayControl(); var initDone = false; var configFile = "ui/config/config.html"; var distFolder = "dist/"; var dir = new VersionChecker(this).GetCactbotDirectory(); var url = Path.GetFullPath(Path.Combine(dir, distFolder, configFile)); // Attempt to use the local webpack override, otherwise fall back to default path if (!File.Exists(url)) { url = Path.GetFullPath(Path.Combine(dir, configFile)); } control.VisibleChanged += (o, e) => { if (initDone) { return; } initDone = true; control.Init(url); MinimalApi.AttachTo(control.Renderer); }; return(control); }
public override Control CreateConfigControl() { var control = new OverlayControl(); var initDone = false; var url = pluginMain.OfflineCactbotConfigHtmlFile; control.VisibleChanged += (o, e) => { if (initDone) { return; } initDone = true; control.Init(url); MinimalApi.AttachTo(control.Renderer, container); }; return(control); }
public override Control CreateConfigControl() { var control = new OverlayControl(); var initDone = false; var url = "https://quisquous.github.io/cactbot/ui/config/config.html"; control.VisibleChanged += (o, e) => { if (initDone) { return; } initDone = true; control.Init(url); MinimalApi.AttachTo(control.Renderer, container); }; return(control); }
public override System.Windows.Forms.Control CreateConfigControl() { var control = new OverlayControl(); var initDone = false; var configFile = "ui/config/config.html"; var dir = new VersionChecker(this).GetCactbotDirectory(); var url = Path.GetFullPath(Path.Combine(dir, configFile)); control.VisibleChanged += (o, e) => { if (initDone) { return; } initDone = true; control.Init(url); MinimalApi.AttachTo(control.Renderer); }; return(control); }