Hi all,
I've had about eight hours of Twine building and I'm quite enjoying the learning curve!
One thing I've not figured out is how to suppress (hide) a footer in only one passage. I thought maybe the css macro could do it but I'm not sure how to get that to work correctly nor do I know what hook I'd apply it to anyway.
What I want to achieve is simply not showing the footer on in one of my passages.
An advice or recipes? I'm using 2.0.11 with Harlowe.
Thanks and many regards!
Comments
1. Use a variable to control when the contents of the footer gets shown. ... set the $showFooter variable to true at the start of your story in your story's startup tagged passage, set it to false in the passage you want to hide the footer in, and in the passage directly after that passage set it to true again.
2. Basic Harlowe Passage Tag Based Styling
Assuming your custom tag is named hide-footer and the footer passage is named StoryFooter then the CSS to hide that footer would be:
1) Create a passage called footer and place code in it to determine what to show based on how a passage is tagged:
2) Create two passages containing your two different footers (I called mine "nofooter" and "yesfooter" because one of them is only used for the cover page and is basically empty).
3) tag the two passages based on which one you want to display. If you tag your passage as no-footer, your (empty) "nofooter" passage will not be displayed.
(You can use the link Greyelf posted as a reference on how to work with passage tags).
I use this solution because sometimes, rather than completely hiding the footer in some passages, I need it to display different things.
For example, I may want to put credits or copyright notes when the cover page passage of my story is displayed, and a save / load / restart menu as soon as the player hits "start" and goes to the story itself.
Greyelf's info is wonderful and helps out for some other things I'm going to try. In the end, I'm using Melyanna's technique because it gives me the exact kind of control I need for my situation! Thanks!!