Skip to content
Discussion options

You must be logged in to vote

Rather than setting settings.darkModeActive directly, it's recommended to use the io.toggleDarkMode() function. If you always want your game to be in dark mode, the easiest solution would probably be to add the following to your settings.js file

settings.setup = function () {
  io.toggleDarkMode();
}

If you already have a settings.setup function, just add that line to it somewhere. Don't forget to remove the line you added (settings.darkModeActive = true). If you're interested in making it toggleable, I'd recommend checking out this wiki page.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gratefuljamhead
Comment options

Answer selected by gratefuljamhead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants