Howdy, Stranger!

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

Show passage.tittle in Sugarcube

Hello everyone! How can i make passage.tittle visible in Sugarcube? I only found how to remove it in Jonah story format...

Comments

  • Where exactly do you want the title of the current passage to appear and are you using SugarCube 1.x or 2.x?
  • edited July 2015
    greyelf wrote: »
    Where exactly do you want the title of the current passage to appear and are you using SugarCube 1.x or 2.x?
    Sugarcube 1. Position is not so important to me, i just need а tittle to make testing easier. My project very big, and it`s hard to find right passage without tittle. I will remove this after testing, anyway.
    Maybee somethere at the top of the passage...

  • Something like the following should work (Twine 1: goes in a script tagged passge; Twine 2: goes in Story JavaScript):
    prerender["addPassageTitle"] = function (content) {
    	$(content).append("<h2>Passage: " + passage() + "</h2>")
    };
    
  • Something like the following should work (Twine 1: goes in a script tagged passge; Twine 2: goes in Story JavaScript):
    prerender["addPassageTitle"] = function (content) {
    	$(content).append("<h2>Passage: " + passage() + "</h2>")
    };
    

    Thank you for help! It really works!
Sign In or Register to comment.