Debug mode

This commit is contained in:
Victor 2015-12-15 14:34:57 +02:00
parent 5d51dc48b6
commit 5afdd7a0a8

View File

@ -4,6 +4,7 @@ function Views(parser) {
this.parser = parser;
parser.preScan();
this.debug = rpyscript.equals('userscenario');
this.windowTag = document.getElementById("window");
this.textAuthorTag = document.getElementById("textAuthor");
this.textContentTag = document.getElementById("textContent");
@ -61,7 +62,16 @@ Views.prototype.onTouch = function (e) {
};
Views.prototype.finish = function () {
if (this.debug) {
this.stopMusic(this.NO_FADE);
this.stopSound(this.NO_FADE);
this.stopSoundLoop(this.NO_FADE);
this.stopAmbience(this.NO_FADE);
this.spritesClear();
this.text('{center}{html}<span style="color: white">Сценарий завершён</span>');
} else {
this.text('{center}{html}<a style="color: white" href="/">Вернуться на главную</a>');
}
};
Views.prototype.windowShow = function (effect) {