Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sidebar/menu in Snowman

What would be the best way to implement some kind of sidebar or maybe a menu at the top?

I'm thinking putting the related jQuery in the story javascript which would create the divs and content as a function, and then having to run that function inside every passage?

What I really need is a templating system, or just to be able to edit the HTML directly without being limited to within a particular passage. I'm still trying to get my head around how to work within the Twine system...

Really what I want is a way to have an inventory in a sidebar

Comments

  • If anyone else is wondering about this then it's actually not so hard with jQuery.
    here's an example I put in the story javascript -
    $('body').prepend('<div id="menu"><div id="logo">Title here</div><div id="health"><div id="meter"></div></div>Weapon<div id="weapon"></div>Inventory<ul id="inventory"></ul></div>');
    

    Then all you have to do is style everything in the CSS, whether it be a div at the top or a sidebar.
Sign In or Register to comment.