From 9d6102527896b647abd0ff579000df83decdcaa0 Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Sat, 2 Sep 2023 15:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=87=92=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=BB=98=E8=AE=A4=E4=B8=BA=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/game/game.js b/game/game.js index aa0cc1610..f2a037ef3 100644 --- a/game/game.js +++ b/game/game.js @@ -39853,19 +39853,19 @@ } } }; - if(connectMenu) menuUpdates.push(updateConnectDisplayMap); + if(connectMenu){ + menuUpdates.push(updateConnectDisplayMap); + if(mode==lib.config.connect_mode){ + node.classList.add('active'); + } + } + else{ + if(mode==lib.config.mode){ + node.classList.add('active'); + } + } node._initLink=function(){ node.link=page; - if(connectMenu){ - if(mode==lib.config.connect_mode){ - node.classList.add('active'); - } - } - else{ - if(mode==lib.config.mode){ - node.classList.add('active'); - } - } //“更多”下的内容 var map={}; var infoconfig=connectMenu?info.connect:info.config; @@ -40578,9 +40578,9 @@ if(!game.download&&!lib.device) return; var page=ui.create.div('#create-extension'); var node=ui.create.div('.menubutton.large','文件',start.firstChild,clickMode); + node.mode='create'; node._initLink=function(){ node.link=page; - node.mode='create'; var pageboard=ui.create.div(page); var importextensionexpanded=false;