Add config for disabling the lobby settings page

In some editions we may not have completed translations. For these, the settings page can be hidden.
This commit is contained in:
Tim Mickel 2016-02-03 15:51:16 -05:00
parent ef09a72724
commit 9f45c2f7a8
2 changed files with 7 additions and 1 deletions

View file

@ -22,5 +22,6 @@
"supportedLocales": { "supportedLocales": {
"English": "en", "English": "en",
"Español": "es" "Español": "es"
} },
"settingsPageDisabled": false
} }

View file

@ -40,6 +40,11 @@ export default class Lobby {
ScratchAudio.addSound('sounds/', 'cut.wav', ScratchAudio.uiSounds); ScratchAudio.addSound('sounds/', 'cut.wav', ScratchAudio.uiSounds);
ScratchAudio.init(); ScratchAudio.init();
Lobby.setPage(place ? place : 'home'); Lobby.setPage(place ? place : 'home');
if (window.Settings.settingsPageDisabled) {
gn('settings').style.visibility = 'hidden';
}
gn('hometab').ontouchstart = function () { gn('hometab').ontouchstart = function () {
if (gn('hometab').className != 'home on') { if (gn('hometab').className != 'home on') {
Lobby.setPage('home'); Lobby.setPage('home');