diff --git a/public_html/js/Views.js b/public_html/js/Views.js index 24e7f9e..eb261d2 100644 --- a/public_html/js/Views.js +++ b/public_html/js/Views.js @@ -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 () { - this.text('{center}{html}Вернуться на главную'); + 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}Сценарий завершён'); + } else { + this.text('{center}{html}Вернуться на главную'); + } }; Views.prototype.windowShow = function (effect) {