This commit is contained in:
libccy 2016-03-23 15:53:05 +08:00
parent 9de71bb6b4
commit bd22aa7e12
2 changed files with 31 additions and 87 deletions

View File

@ -139,8 +139,6 @@ window.config={
config_menu_config:'选项菜单', config_menu_config:'选项菜单',
show_playerids_config:'显示身份按钮', show_playerids_config:'显示身份按钮',
bottom_line_config:'指示线置底',
line_dash_config:'虚线指示线',
show_replay_config:'显示重来按钮', show_replay_config:'显示重来按钮',
show_pause_config:'显示暂停按钮', show_pause_config:'显示暂停按钮',
show_wuxie_config:'显示不询问无懈', show_wuxie_config:'显示不询问无懈',

View File

@ -180,7 +180,7 @@
}, },
swipe_down:{ swipe_down:{
name:'下划操作', name:'下划操作',
init:'system', init:'menu',
unfrequent:true, unfrequent:true,
item:{ item:{
system:'显示按钮', system:'显示按钮',
@ -226,6 +226,17 @@
off:'关闭', off:'关闭',
} }
}, },
round_menu_func:{
name:'触屏按钮操作',
init:'system',
unfrequent:true,
item:{
system:'显示按钮',
menu:'打开菜单',
// pause:'切换暂停',
// auto:'切换托管'
}
},
show_splash:{ show_splash:{
name:'显示开始界面', name:'显示开始界面',
init:false, init:false,
@ -370,6 +381,12 @@
map.enable_dragline.hide(); map.enable_dragline.hide();
map.enable_touchdragline.hide(); map.enable_touchdragline.hide();
} }
if(lib.config.layout!='phone'){
map.round_menu_func.hide();
}
else{
map.round_menu_func.show();
}
} }
} }
}, },
@ -785,25 +802,6 @@
unfrequent:true, unfrequent:true,
restart:true, restart:true,
}, },
// bottom_line:{
// name:'指示线置底',
// init:false,
// unfrequent:true,
// onclick:function(bool){
// game.saveConfig('bottom_line',bool);
// if(lib.config.bottom_line){
// ui.canvas.style.zIndex=0;
// }
// else{
// ui.canvas.style.zIndex='';
// }
// }
// },
// line_dash:{
// name:'虚线指示线',
// init:false,
// unfrequent:true,
// },
show_name:{ show_name:{
name:'显示武将名', name:'显示武将名',
init:false, init:false,
@ -822,49 +820,6 @@
} }
} }
}, },
// savevideo:{
// name:'显示保存录像',
// init:true,
// onclick:function(bool){
// game.saveConfig('savevideo',bool);
// if(!lib.db) return;
// if(lib.config.savevideo){
// if(!ui.savevideo&&_status.over){
// ui.savevideo=ui.create.control('保存录像',game.saveVideo);
// }
// }
// else if(ui.savevideo){
// ui.savevideo.close();
// delete ui.savevideo;
// }
// },
// unfrequent:true,
// },
show_roundmenu:{
name:'显示触屏按钮',
init:true,
unfrequent:true,
onclick:function(bool){
game.saveConfig('show_roundmenu',bool);
if(bool&&lib.config.touchscreen){
ui.roundmenu.style.display='';
}
else{
ui.roundmenu.style.display='none';
}
}
},
round_menu_func:{
name:'触屏按钮功能',
init:'system',
unfrequent:true,
item:{
system:'显示按钮',
menu:'打开菜单',
// pause:'切换暂停',
// auto:'切换托管'
}
},
show_replay:{ show_replay:{
name:'显示重来按钮', name:'显示重来按钮',
init:false, init:false,
@ -1121,14 +1076,6 @@
else{ else{
map.import_background.hide(); map.import_background.hide();
} }
if(lib.config.layout!='phone'){
map.round_menu_func.hide();
map.show_roundmenu.hide();
}
else{
map.round_menu_func.show();
map.show_roundmenu.show();
}
if(config.show_card_prompt){ if(config.show_card_prompt){
map.hide_card_prompt_basic.show(); map.hide_card_prompt_basic.show();
map.hide_card_prompt_equip.show(); map.hide_card_prompt_equip.show();
@ -11486,7 +11433,6 @@
var total=typeof arguments[1]==='number'?arguments[1]:lib.config.duration*2; var total=typeof arguments[1]==='number'?arguments[1]:lib.config.duration*2;
var opacity=1; var opacity=1;
var color=[255,255,255]; var color=[255,255,255];
// var dashed=lib.config.line_dash;
var dashed=false; var dashed=false;
if(typeof arguments[1]=='object'){ if(typeof arguments[1]=='object'){
for(var i in arguments[1]){ for(var i in arguments[1]){
@ -11557,7 +11503,6 @@
var total=typeof arguments[1]==='number'?arguments[1]:lib.config.duration*2; var total=typeof arguments[1]==='number'?arguments[1]:lib.config.duration*2;
var opacity=1; var opacity=1;
var color=[255,255,255]; var color=[255,255,255];
// var dashed=lib.config.line_dash;
var dashed=false; var dashed=false;
if(typeof arguments[1]=='object'){ if(typeof arguments[1]=='object'){
for(var i in arguments[1]){ for(var i in arguments[1]){
@ -12860,6 +12805,19 @@
} }
return players[0]; return players[0];
}, },
loadMode:function(mode){
var next=game.createEvent('loadMode');
next.mode=mode;
next.content=function(){
'step 0'
window.mode={};
lib.init.js('mode',event.mode,game.resume);
game.pause();
'step 1'
event.result=window.mode[event.mode];
delete window.mode;
}
},
loadPackage:function(){ loadPackage:function(){
var next=game.createEvent('loadPackage'); var next=game.createEvent('loadPackage');
next.packages=[]; next.packages=[];
@ -14486,9 +14444,6 @@
ui.sidebar=ui.create.div('#sidebar'); ui.sidebar=ui.create.div('#sidebar');
ui.sidebar3=ui.create.div('#sidebar3'); ui.sidebar3=ui.create.div('#sidebar3');
ui.canvas=document.createElement('canvas'); ui.canvas=document.createElement('canvas');
// if(lib.config.bottom_line){
// ui.canvas.style.zIndex=0;
// }
ui.arena.appendChild(ui.canvas); ui.arena.appendChild(ui.canvas);
ui.canvas.id='canvas'; ui.canvas.id='canvas';
@ -19832,15 +19787,6 @@
ui.replay.style.display='none'; ui.replay.style.display='none';
} }
}, },
bottom_line:function(bool){
game.saveConfig('bottom_line',bool);
if(lib.config.bottom_line){
ui.canvas.style.zIndex=0;
}
else{
ui.canvas.style.zIndex='';
}
},
show_playerids:function(bool){ show_playerids:function(bool){
game.saveConfig('show_playerids',bool); game.saveConfig('show_playerids',bool);
if(lib.config.show_playerids){ if(lib.config.show_playerids){