PepeElToro41 / ui-labs

UI Labs is a storybook plugin for Roblox
https://pepeeltoro41.github.io/ui-labs/
68 stars 9 forks source link

Option to persist "View In Viewport" selection #52

Closed Nidoxs closed 2 months ago

Nidoxs commented 2 months ago

When I use the studio viewport to render stories with Hoarcekat, any other stories I want to view next will continue to render in the viewport (as the option persists between stories). It seems UI Labs resets that state when a new story is selected, causing the next story to hop back to the plugin widget view.

I appreciate some may prefer the next story to return to the plugin widget, so perhaps this is another entry for your new dropdown menu / settings which users can choose between.😄

PepeElToro41 commented 2 months ago

yes, this is changed in the new version, when you mount a new story it will remember the last ViewOnViewport state.

Probably an extra option wouldnt hurt

PepeElToro41 commented 2 months ago

Added an option to disable this, so it should be ready https://github.com/PepeElToro41/ui-labs/commit/a009a4b090129fcb10309261c14cf8660592cdda