iftechfoundation / twine-cookbook

Twine Cookbook
131 stars 31 forks source link

Adding a Right Side-bar #12

Closed greyelf closed 6 years ago

greyelf commented 7 years ago

Adding a side-bar to the right side of the page.

ref

videlais commented 6 years ago

After trying to find a way to reconcile examples in different story formats, my thinking now is that it would be easier to have a "Sidebar" example (as I've now added) to start and then, at some later point, we can add an "Advanced Sidebar" series of examples.

greyelf commented 6 years ago

There are a number of possible issues with the three examples.

  1. The Harlowe & Snowman examples show how to add Dynamic content (of any type: link, stats, etc..) to a sidebar, where as the SugarCube example only shows how to add link items using StoryMenu. I believe the SugarCube example should also include StoryCaption.

  2. The Harlowe example uses a header tagged passage, who's content is processed before the content of the Current Passage being shown, this means that variable value changes made directly within the contents of the Current Passage won't automatically show within the Sidebar's contents. I believe it makes more sense to use a footer tagged passage, who's content is processed after that of the Current Passage. There is a similar issue with the Snowman example.

  3. The default Harlowe 'sidebar' (actually a re-positioned header) appears on the left, as does SugarCube's default sidebar. The StoryMenu (and potential StoryCaption) example's output appears within the area if it's default sidebar, it may makes sense to have the Harlowe & Snowman examples do the same if they are meant to demonstrate how to display a standard sidebar.

videlais commented 6 years ago

Instead of trying to change the "Sidebar" example, I have removed it. Your "Left Sidebar" covers these issues in a far better way. Thanks for adding it!