Update README.md
This commit is contained in:
parent
fc7cdb2153
commit
895d6054cc
1 changed files with 4 additions and 4 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue