I'm using SugarCube and the Twine 1.3 beta. What context do I need to prefix in the javascript console to inspect or interact with header functions and data?
In case the question isn't clear: If I want to look at a function in global scope, I can just type the name of the function, or window.FUNCTION. But most of the code from the headers is within a different namespace, and I presume that if I can simply prefix the name of that context to the name of the function I'm interested in, I should be able to inspect it. But what is it?
Comments
SugarCube creates a limited export on the
window.SugarCube
property. The currently available properties are:- version
- runtime
- has
- browser
- config
- setup
- storage
- session
- macros
- tale
- state
- Wikifier
- Util
- History
- SaveSystem
- UISystem
As an example, to inspect the variable story of the currently active state you'd type this into the console: