This commit is contained in:
parent
5cf4269245
commit
dc0903ee29
|
@ -76,6 +76,8 @@ window.config={
|
||||||
hiddenCharacterPack:[],
|
hiddenCharacterPack:[],
|
||||||
hiddenCardPack:[],
|
hiddenCardPack:[],
|
||||||
hiddenPlayPack:[],
|
hiddenPlayPack:[],
|
||||||
|
hiddenBackgroundPack:[],
|
||||||
|
customBackgroundPack:[],
|
||||||
favouriteCharacter:[],
|
favouriteCharacter:[],
|
||||||
recentIP:[],
|
recentIP:[],
|
||||||
alteredSkills:[],
|
alteredSkills:[],
|
||||||
|
|
44
game/game.js
44
game/game.js
|
@ -790,6 +790,10 @@
|
||||||
'<button style="width:40px">确定</button></div>',
|
'<button style="width:40px">确定</button></div>',
|
||||||
clear:true,
|
clear:true,
|
||||||
},
|
},
|
||||||
|
image_background_random:{
|
||||||
|
name:'随机背景',
|
||||||
|
init:false
|
||||||
|
},
|
||||||
image_background_blur:{
|
image_background_blur:{
|
||||||
name:'背景模糊',
|
name:'背景模糊',
|
||||||
init:false,
|
init:false,
|
||||||
|
@ -1660,25 +1664,25 @@
|
||||||
else{
|
else{
|
||||||
map.change_skin_auto.hide();
|
map.change_skin_auto.hide();
|
||||||
}
|
}
|
||||||
// if(game.layout=='long'||game.layout=='long2'){
|
if(lib.config.image_background_random){
|
||||||
// map.player_border.hide();
|
|
||||||
// map.player_border_long.show();
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// map.player_border.show();
|
|
||||||
// map.player_border_long.hide();
|
|
||||||
// }
|
|
||||||
if(lib.config.image_background=='default'){
|
|
||||||
map.image_background_blur.hide();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
map.image_background_blur.show();
|
map.image_background_blur.show();
|
||||||
}
|
map.image_background.hide();
|
||||||
if(lib.config.image_background=='custom'&&lib.db){
|
map.import_background.hide();
|
||||||
map.import_background.show();
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
map.import_background.hide();
|
map.image_background.show();
|
||||||
|
if(lib.config.image_background=='default'){
|
||||||
|
map.image_background_blur.hide();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
map.image_background_blur.show();
|
||||||
|
}
|
||||||
|
if(lib.config.image_background=='custom'&&lib.db){
|
||||||
|
map.import_background.show();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
map.import_background.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(config.show_card_prompt){
|
if(config.show_card_prompt){
|
||||||
map.hide_card_prompt_basic.show();
|
map.hide_card_prompt_basic.show();
|
||||||
|
@ -4872,6 +4876,14 @@
|
||||||
game.saveConfig('phonelayout',true);
|
game.saveConfig('phonelayout',true);
|
||||||
}
|
}
|
||||||
game.layout=layout;
|
game.layout=layout;
|
||||||
|
if(lib.config.image_background_random){
|
||||||
|
var list=[];
|
||||||
|
for(var i in lib.configMenu.appearence.config.image_background.item){
|
||||||
|
if(i=='default') continue;
|
||||||
|
list.push(i);
|
||||||
|
}
|
||||||
|
game.saveConfig('image_background',list.randomGet(lib.config.image_background));
|
||||||
|
}
|
||||||
if(lib.config.image_background!='default'&&lib.config.image_background!='custom'&&lib.config.theme=='simple'){
|
if(lib.config.image_background!='default'&&lib.config.image_background!='custom'&&lib.config.theme=='simple'){
|
||||||
document.documentElement.style.backgroundImage='url("image/background/'+lib.config.image_background+'.jpg")';
|
document.documentElement.style.backgroundImage='url("image/background/'+lib.config.image_background+'.jpg")';
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ window.noname_update={
|
||||||
files:[
|
files:[
|
||||||
'game/game.js',
|
'game/game.js',
|
||||||
// 'game/package.js',
|
// 'game/package.js',
|
||||||
// 'game/config.js',
|
'game/config.js',
|
||||||
// 'game/source.js',
|
// 'game/source.js',
|
||||||
// 'game/asset.js',
|
// 'game/asset.js',
|
||||||
// 'card/guozhan.js',
|
// 'card/guozhan.js',
|
||||||
|
|
Loading…
Reference in New Issue