Update README.md

This commit is contained in:
Anders Ejlersen 2026-05-18 18:57:34 +00:00
parent fc7cdb2153
commit 895d6054cc

View file

@ -36,7 +36,7 @@ Several tools are available from start:
You can create your own toolbar extensions by using the property attribute `MainToolbarElement`.
```
```csharp
[Preserve]
[MainToolbarElement("Toolbar/Time Scale", ussName = "", defaultDockIndex = 0, defaultDockPosition = MainToolbarDockPosition.Middle, menuPriority = 500)]
public static MainToolbarElement Draw()
@ -59,13 +59,13 @@ private static void OnTimeScaleValueChanged(float value)
A list of multiple controls can be done by changing:
```
```csharp
public static MainToolbarElement Draw()
```
to
```
```csharp
public static IEnumerable<MainToolbarElement> Draw()
```
@ -74,7 +74,7 @@ public static IEnumerable<MainToolbarElement> Draw()
To add enable/disable settings or more to Preferences -> Toolbar, you can implement `IToolbarSettings`.
```
```csharp
internal sealed class ToolbarFooSettings : IToolbarSettings
{
public string Title => "Foo";