groupcontrol

This commit is contained in:
libccy 2016-06-11 12:03:15 +08:00
parent 7b5207de7e
commit 89a41eff6d
7 changed files with 0 additions and 82 deletions

View File

@ -1827,10 +1827,6 @@
else if(ui.cheat2&&!get.config('free_choose')){
ui.cheat2.close();
delete ui.cheat2;
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2;
}
}
}
},
@ -2110,10 +2106,6 @@
else if(ui.cheat2&&!get.config('free_choose')){
ui.cheat2.close();
delete ui.cheat2;
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2;
}
}
}
},
@ -2494,10 +2486,6 @@
else if(ui.cheat2&&!get.config('free_choose')){
ui.cheat2.close();
delete ui.cheat2;
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2;
}
}
}
},
@ -2729,10 +2717,6 @@
else if(ui.cheat2&&!get.config('free_choose')){
ui.cheat2.close();
delete ui.cheat2;
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2;
}
}
},
},
@ -2942,10 +2926,6 @@
else if(ui.cheat2&&!get.config('free_choose')){
ui.cheat2.close();
delete ui.cheat2;
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2;
}
}
},
},

View File

@ -586,16 +586,11 @@ mode.boss={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -640,10 +635,6 @@ mode.boss={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
event.asboss.close();
if(event.boss){
event.result={

View File

@ -4077,16 +4077,11 @@ mode.chess={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -4114,10 +4109,6 @@ mode.chess={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
if(event.asboss){
event.asboss.close();
delete ui.asboss;

View File

@ -460,16 +460,11 @@ mode.guozhan={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -519,10 +514,6 @@ mode.guozhan={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
if(result.buttons){
game.me.init(result.buttons[0].link,result.buttons[1].link,false);
}

View File

@ -794,16 +794,11 @@ mode.identity={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -830,10 +825,6 @@ mode.identity={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
if(event.chosen.length){
game.me.init(event.chosen[0],event.chosen[1]);
}

View File

@ -1499,16 +1499,11 @@ mode.stone={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -1535,10 +1530,6 @@ mode.stone={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
if(ui.deckcontrol){
ui.deckcontrol.remove();
delete ui.deckcontrol;

View File

@ -708,16 +708,11 @@ mode.versus={
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
@ -744,10 +739,6 @@ mode.versus={
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
game.me.init(result.links[0]);
game.addRecentCharacter(game.me.name);
event.list.remove(game.me.name);
@ -841,9 +832,6 @@ mode.versus={
dialog.buttons[i].classList.add('noclick');
}
}
if(!event.groupControl){
event.groupControl=ui.create.groupControl(dialog);
}
game.me.chooseButton(dialog,true).closeDialog=false;
event.xdialog=dialog;
dialog.static=true;
@ -903,9 +891,6 @@ mode.versus={
}
}
"step 3"
if(event.groupControl){
event.groupControl.close();
}
if(event.xdialog){
event.xdialog.close();
}
@ -1483,7 +1468,6 @@ mode.versus={
var func=function(filter,id,selected,map){
var dialog=ui.create.characterDialog(filter,'expandall').open();
dialog.videoId=id;
dialog.groupControl=ui.create.groupControl(dialog);
for(var i in map){
var player=lib.playerOL[i];
if(player){
@ -1580,7 +1564,6 @@ mode.versus={
var dialog=get.idDialog(id);
if(dialog){
dialog.close();
dialog.groupControl.close();
}
},event.videoId);
}