From 9970fb2a9113d9b24c372fcf94f34540b949a8d0 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 29 Jul 2016 01:56:54 +0800 Subject: [PATCH] edi --- game/game.js | 16 +++++++++------- game/update.js | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/game/game.js b/game/game.js index 9867b06ff..8f81a4151 100755 --- a/game/game.js +++ b/game/game.js @@ -14092,13 +14092,15 @@ for(var i in obj.help){ lib.help[i]=obj.help[i]; } - lib.extensionMenu['extension_'+obj.name].edit={ - name:'编辑此扩展', - clear:true, - onclick:function(){ - game.editExtension(obj.name); - } - } + if(obj.editable!==false){ + lib.extensionMenu['extension_'+obj.name].edit={ + name:'编辑此扩展', + clear:true, + onclick:function(){ + game.editExtension(obj.name); + } + } + } lib.extensionMenu['extension_'+obj.name].delete={ name:'删除此扩展', clear:true, diff --git a/game/update.js b/game/update.js index abe3a3395..cba6b8ee4 100644 --- a/game/update.js +++ b/game/update.js @@ -3,6 +3,7 @@ window.noname_update={ changeLog:[ '***注意:更新后将无法使用或导出自定义武将,请自行备份***', '扩展工具代码格式改动(见默认代码,现有代码不用改)', + '扩展可设置禁止编辑', '修bug', ], files:{