Howdy, Stranger!

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

SugarCube: Changing loading screen text

SugarCube's very handing loading screen shows the text "Loading Story Resources". I'd like to change that to read simply "Loading," and I've used a line of jQuery at the top of StoryInit to do that:
$("#loading-screen p").html("Loading…
<progress></progress>");
Unfortunately, I'm now seeing that--on some browsers--the original text appears briefly before being replaced. Can I improve my method for replacing the loading text somehow to ensure that doesn't happen, short of just editing the header? (I'd like to avoid having to edit each new version of the header if possible.)

Comments

  • Ah, a missed "story" reference.  Unfortunately, there's virtually no way to address the issue short of editing the header since it is part of the loading screen.  Anything you could do programmatically from within Twine would be subject to race conditions.

    How about we split the difference and I change it to "Loading Resources".

  • "Loading Resources" sounds great. Thanks!
  • Could you tell me where I could add this into SugarCane?  My story is currently 50mb and needs a loading screen.
  • Muze wrote:

    Could you tell me where I could add this into SugarCane?  My story is currently 50mb and needs a loading screen.

    This patch to Twine states that there should be a Runtime loading bar when opening a large story built using the latest version of either the Sugarcane or Responsive header.

    I believe that it is included with Twine 1.4.2 rc 2
Sign In or Register to comment.