plugin system docs

custom buttons for plugins
calibration functions for Leeform
This commit is contained in:
EugeneTes
2026-03-30 16:15:47 +02:00
parent a1838cafeb
commit 4bd117af47
76 changed files with 4521 additions and 59 deletions

View File

@@ -24,6 +24,27 @@ namespace VisionBuilder.UI.Common
public StatisticsVM StatisticsVm { get; private set; }
public PreviewVM PreviewVm { get; private set; }
public ObservableCollection<ButtonDefinition> DynamicButtons { get; } = new();
public void AddButton(ButtonDefinition button)
{
DynamicButtons.Add(button);
}
public void SetButtonVisibility(string key, bool isVisible)
{
var button = DynamicButtons.FirstOrDefault(b => b.Key == key);
if (button != null)
button.IsVisible = isVisible;
}
public void RemoveButton(string key)
{
var button = DynamicButtons.FirstOrDefault(b => b.Key == key);
if (button != null)
DynamicButtons.Remove(button);
}
[ObservableProperty]
private string _currentRecipeName = "Select recipe";
@@ -147,8 +168,6 @@ namespace VisionBuilder.UI.Common
public async Task Start()
{
IsRunning = true;
await Task.Run(() => { _recognitionControl.Start(); });
_handlingEnabled = true;