Twine Version: 2
Story Format: sugarcube2
I couldn’t find anything online about this so I decided to post here.
Is there a way to save the state of a sidebar between passage navigation?
Let’s say we have a bunch of buttons in the sidebar and when clicking on a button a dropdown with some information opens below it. Initialy, all dropdowns are open, but I want to allow the user to close those he finds unnecessary. For example, he wants the first and the third dropdown open, and the second one closed. The problem is, once he navigates to the next passage the sidebar will rerender and all the dropdowns will be open again.
I tried using local storage and “passage-done”, but inside “passage-done” I can only access the content inside the actual passage, and not the sidebar.
Any idea how this can be achieved?