Skip to content

Commit

Permalink
add note about changing ViziaPlug
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerUser64 committed May 16, 2024
1 parent dd9a2e7 commit 84bc2fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub(crate) fn create(_params: Arc<ViziaPlugParams>) -> Option<Box<dyn Editor>> {
}
```

*Make sure to change instances of `ViziaPlug` to the name of your plugin.*

The `create_vizia_editor` function creates the vizia GUI window with a size determined by the `ViziaState`. For now this state is hard-coded but later we'll move it to the plugin parameters so that the window state is remembered between successive openings of the window.

Within the closure passed to the `create_vizia_editor` function is where we create the vizia GUI and add some controls. In this case we've added a simple label to begin with.
Expand Down Expand Up @@ -105,4 +107,4 @@ For the above to work the `ViziaPlug` struct must be made public.

Finally, use `cargo run` to build and run the standalone version of the plugin:

<img src="./img/hello_gui.png" alt="" width="300"/>
<img src="./img/hello_gui.png" alt="" width="300"/>

0 comments on commit 84bc2fc

Please sign in to comment.