Debug mode
This commit is contained in:
parent
5d51dc48b6
commit
5afdd7a0a8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user