Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StoryMenu can't access Config.debug #19

Closed
Airks opened this issue Jan 9, 2020 · 1 comment
Closed

StoryMenu can't access Config.debug #19

Airks opened this issue Jan 9, 2020 · 1 comment

Comments

@Airks
Copy link

Airks commented Jan 9, 2020

It seems that the passage StoryMenu can't access the Config API's variable debug.

When trying something like
<<if Config.debug>> /* some link */ <</if>>
inside StoryMenu.tw, the menu in the UI bar never displays the aforementioned link.

Compiled with tweego.

@Airks Airks changed the title StoryMeny can't access Config.debug StoryMenu can't access Config.debug Jan 9, 2020
@ChapelR
Copy link
Contributor

ChapelR commented Jan 9, 2020

The debug setting is ignored in StoryMenu for layout purposes.

https://github.com/tmedwards/sugarcube-2/blob/master/src/ui.js#L27

This means that any references Config.debug will always be false in StoryMenu. You could use your own, separate flag, e.g.

setup.debug = Config.debug; 

somewhere and then use that.

@Airks Airks closed this as completed Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants