取消了editor模式的部分动画 & fix bug

This commit is contained in:
YouWei Zhao 2018-01-02 12:37:40 +08:00
parent a9835de64a
commit 5671d5501e
2 changed files with 14 additions and 3 deletions

View File

@ -168,6 +168,7 @@ var clear = new Vue({
methods: { methods: {
clearMap: function(){ clearMap: function(){
editor.mapInit(); editor.mapInit();
editor.updateMap();
clearTimeout(editArea.formatTimer); clearTimeout(editArea.formatTimer);
clearTimeout(tip.timer); clearTimeout(tip.timer);
pout.value = ''; pout.value = '';

View File

@ -3615,7 +3615,7 @@ core.prototype.isset = function (val) {
////// 播放背景音乐 ////// ////// 播放背景音乐 //////
core.prototype.playBgm = function (bgm) { core.prototype.playBgm = function (bgm) {
if (main.mode!='play')return;
// 如果不允许播放 // 如果不允许播放
if (!core.musicStatus.bgmStatus) return; if (!core.musicStatus.bgmStatus) return;
// 音频不存在 // 音频不存在
@ -3666,7 +3666,7 @@ core.prototype.pauseBgm = function () {
////// 恢复背景音乐的播放 ////// ////// 恢复背景音乐的播放 //////
core.prototype.resumeBgm = function () { core.prototype.resumeBgm = function () {
if (main.mode!='play')return;
// 如果不允许播放 // 如果不允许播放
if (!core.musicStatus.bgmStatus) return; if (!core.musicStatus.bgmStatus) return;
@ -3691,7 +3691,7 @@ core.prototype.resumeBgm = function () {
////// 播放音频 ////// ////// 播放音频 //////
core.prototype.playSound = function (sound) { core.prototype.playSound = function (sound) {
if (main.mode!='play')return;
// 如果不允许播放 // 如果不允许播放
if (!core.musicStatus.soundStatus) return; if (!core.musicStatus.soundStatus) return;
// 音频不存在 // 音频不存在
@ -3730,6 +3730,11 @@ core.prototype.show = function (obj, speed, callback) {
return; return;
} }
obj.style.display = 'block'; obj.style.display = 'block';
if (main.mode!='play'){
obj.style.opacity = 1;
if (core.isset(callback)) {callback();}
return;
}
obj.style.opacity = 0; obj.style.opacity = 0;
var opacityVal = 0; var opacityVal = 0;
var showAnimate = window.setInterval(function () { var showAnimate = window.setInterval(function () {
@ -3750,6 +3755,11 @@ core.prototype.hide = function (obj, speed, callback) {
obj.style.display = 'none'; obj.style.display = 'none';
return; return;
} }
if (main.mode!='play'){
obj.style.display = 'none';
if (core.isset(callback)) {callback();}
return;
}
var opacityVal = 1; var opacityVal = 1;
var hideAnimate = window.setInterval(function () { var hideAnimate = window.setInterval(function () {
opacityVal -= 0.03; opacityVal -= 0.03;