tmp
This commit is contained in:
parent
c892dd60b4
commit
29327bca60
38
game/game.js
38
game/game.js
|
@ -5963,6 +5963,7 @@
|
|||
ui.updatep1.style.display='';
|
||||
ui.updatep2.style.display='';
|
||||
ui.updatep3.style.display='';
|
||||
ui.updatep4.innerHTML='更新';
|
||||
}
|
||||
game.download=function(url,folder,onsuccess,onerror,dev){
|
||||
if(url.indexOf('http')!=0){
|
||||
|
@ -6107,6 +6108,7 @@
|
|||
ui.updatep1.style.display='';
|
||||
ui.updatep2.style.display='';
|
||||
ui.updatep3.style.display='';
|
||||
ui.updatep4.innerHTML='更新';
|
||||
}
|
||||
game.download=function(url,folder,onsuccess,onerror,dev){
|
||||
if(url.indexOf('http')!=0){
|
||||
|
@ -30364,14 +30366,10 @@
|
|||
game.download(encodeURI(url),this.info[0]+'.zip',function(){
|
||||
if(window.resolveLocalFileSystemURL){
|
||||
window.resolveLocalFileSystemURL(lib.assetURL,function(entry){
|
||||
game.print(entry);
|
||||
entry.getFile(that.info[0]+'.zip',{},function(fileEntry){
|
||||
game.print(fileEntry);
|
||||
fileEntry.file(function(fileToLoad){
|
||||
game.print(123);
|
||||
var fileReader = new FileReader();
|
||||
fileReader.onload = function(e){
|
||||
game.print(456);
|
||||
importExtensionf(e.target.result,fileEntry);
|
||||
};
|
||||
fileReader.readAsArrayBuffer(fileToLoad, "UTF-8");
|
||||
|
@ -30426,7 +30424,7 @@
|
|||
var info=list[i];
|
||||
var node=ui.create.div('.videonode.menubutton.extension.large',page,clickExtension);
|
||||
ui.create.div('.caption',list[i][0],node);
|
||||
ui.create.div('.text.author','作者:'+list[i][1]);
|
||||
ui.create.div('.text.author','作者:'+list[i][1],node);
|
||||
ui.create.div('.text',list[i][2],node);
|
||||
var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild);
|
||||
if(game.download){
|
||||
|
@ -30583,10 +30581,12 @@
|
|||
ui.updatep1=li1.querySelector('p');
|
||||
ui.updatep2=li2;
|
||||
ui.updatep3=li3;
|
||||
ui.updatep4=node;
|
||||
if(!game.download){
|
||||
ui.updatep1.style.display='none';
|
||||
ui.updatep2.style.display='none';
|
||||
ui.updatep3.style.display='none';
|
||||
ui.updatep3.style.display='none';
|
||||
ui.updatep4.innerHTML='关于';
|
||||
}
|
||||
var button1,button2,button3,button4,button5;
|
||||
|
||||
|
@ -30994,11 +30994,11 @@
|
|||
}
|
||||
});
|
||||
};
|
||||
li3.lastChild.appendChild(button4);
|
||||
// li3.lastChild.appendChild(button4);
|
||||
|
||||
var button6=document.createElement('button');
|
||||
button6.innerHTML='设为国内镜像';
|
||||
button6.style.marginLeft='5px';
|
||||
// button6.style.marginLeft='5px';
|
||||
button6.onclick=function(){
|
||||
game.saveConfig('updateURL',lib.updateURL2);
|
||||
button5.style.display='';
|
||||
|
@ -31008,7 +31008,7 @@
|
|||
li3.lastChild.appendChild(button6);
|
||||
|
||||
button5=document.createElement('button');
|
||||
button5.innerHTML='恢复默认地址';
|
||||
button5.innerHTML='设为默认镜像';
|
||||
button5.style.marginLeft='5px';
|
||||
button5.onclick=function(){
|
||||
game.saveConfig('updateURL');
|
||||
|
@ -31036,26 +31036,36 @@
|
|||
this.classList.toggle('on');
|
||||
if(!this.classList.contains('on')){
|
||||
span2.style.display='none';
|
||||
br1.style.display='none';
|
||||
span2_check.style.display='none';
|
||||
span3.style.display='none';
|
||||
br2.style.display='none';
|
||||
span3_check.style.display='none';
|
||||
span4.style.display='none';
|
||||
br3.style.display='none';
|
||||
span4_check.style.display='none';
|
||||
span5.style.display='none';
|
||||
br4.style.display='none';
|
||||
span5_check.style.display='none';
|
||||
span6.style.display='none';
|
||||
br5.style.display='none';
|
||||
span6_check.style.display='none';
|
||||
}
|
||||
else{
|
||||
span2.style.display='';
|
||||
span2.style.display='';
|
||||
br1.style.display='';
|
||||
span2_check.style.display='';
|
||||
span3.style.display='';
|
||||
span3.style.display='';
|
||||
br2.style.display='';
|
||||
span3_check.style.display='';
|
||||
span4.style.display='';
|
||||
span4.style.display='';
|
||||
br3.style.display='';
|
||||
span4_check.style.display='';
|
||||
span5.style.display='';
|
||||
span5.style.display='';
|
||||
br4.style.display='';
|
||||
span5_check.style.display='';
|
||||
span6.style.display='';
|
||||
span6.style.display='';
|
||||
br5.style.display='';
|
||||
span6_check.style.display='';
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
window.noname_update={
|
||||
version:'1.9.14',
|
||||
// update:'1.9.13.1',
|
||||
version:'1.9.14.1',
|
||||
update:'1.9.14',
|
||||
changeLog:[
|
||||
'下载扩展',
|
||||
'bug修复',
|
||||
],
|
||||
files:[
|
||||
// 'game/game.js',
|
||||
'game/game.js',
|
||||
// 'game/package.js',
|
||||
// 'game/config.js',
|
||||
// 'game/source.js',
|
||||
|
@ -20,6 +20,7 @@ window.noname_update={
|
|||
// 'mode/guozhan.js',
|
||||
// 'mode/identity.js',
|
||||
// 'mode/stone.js',
|
||||
'mode/tafang.js',
|
||||
// 'theme/woodden/style.css',
|
||||
// 'layout/default/layout.css',
|
||||
// 'layout/default/phone.css',
|
||||
|
@ -29,7 +30,7 @@ window.noname_update={
|
|||
// 'layout/long2/layout.css',
|
||||
// 'layout/mobile/layout.css',
|
||||
// 'layout/newlayout/global.css',
|
||||
// 'layout/mode/chess.css',
|
||||
'layout/mode/chess.css',
|
||||
// 'extension/boss/extension.js',
|
||||
]
|
||||
}
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
#window:not(.nopointer) .dialog.fullheight .buttons .button.character:not(.squarebutton):not(.selectable){
|
||||
cursor: default;
|
||||
}
|
||||
#window:not(.nopointer) .obstacle.glow{
|
||||
#window:not(.nopointer) .obstacle.glow,
|
||||
#window:not(.nopointer) .player.playerblank.glow{
|
||||
cursor: pointer;
|
||||
}
|
||||
#chess-container{
|
||||
|
|
|
@ -246,7 +246,8 @@ mode.tafang={
|
|||
ui.chessinfo=ui.create.div('.fakeme.player',ui.me,function(e){
|
||||
e.stopPropagation();
|
||||
});
|
||||
lib.setScroll(ui.chessinfo);
|
||||
ui.create.div(ui.chessinfo);
|
||||
lib.setScroll(ui.chessinfo.firstChild);
|
||||
|
||||
game.arrangePlayers();
|
||||
"step 4"
|
||||
|
|
Loading…
Reference in New Issue