Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item & Filter ordering #37

Open
Brendonovich opened this issue Mar 11, 2022 · 0 comments
Open

Item & Filter ordering #37

Brendonovich opened this issue Mar 11, 2022 · 0 comments

Comments

@Brendonovich
Copy link
Owner

Brendonovich commented Mar 11, 2022

Currently, reordering is not supported and the only way to get the index of something is to check its position in its parent's list or ask OBS for it. This is undesirable since the parent's list only contains sceneify-controlled items, and excludes user-created items in OBS. Thus, more work must be done.

In the short term:

  • Subscribe to reorder/reindex events and update a value on filters and items specifying their index
  • Provide a reorder function that wraps the appropriate obs call

In the long term:

  • Listen for addition/removal of user-created items and insert dummy objects into lists where necessary
  • Make getting item index and performing reordering reflect the position of the item in its parent's array, rather than solely relying on OBS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant