From 895d6054cc1cd76e4332343b061f0966e6f78ccb Mon Sep 17 00:00:00 2001 From: ejlersen Date: Mon, 18 May 2026 18:57:34 +0000 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6321fda..9f238f1 100644 --- a/README.md +++ b/README.md @@ -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 Draw() ``` @@ -74,7 +74,7 @@ public static IEnumerable 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";