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";