groupcontrol
This commit is contained in:
parent
7b5207de7e
commit
89a41eff6d
20
game/game.js
20
game/game.js
|
@ -1827,10 +1827,6 @@
|
||||||
else if(ui.cheat2&&!get.config('free_choose')){
|
else if(ui.cheat2&&!get.config('free_choose')){
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2110,10 +2106,6 @@
|
||||||
else if(ui.cheat2&&!get.config('free_choose')){
|
else if(ui.cheat2&&!get.config('free_choose')){
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2494,10 +2486,6 @@
|
||||||
else if(ui.cheat2&&!get.config('free_choose')){
|
else if(ui.cheat2&&!get.config('free_choose')){
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2729,10 +2717,6 @@
|
||||||
else if(ui.cheat2&&!get.config('free_choose')){
|
else if(ui.cheat2&&!get.config('free_choose')){
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2942,10 +2926,6 @@
|
||||||
else if(ui.cheat2&&!get.config('free_choose')){
|
else if(ui.cheat2&&!get.config('free_choose')){
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -586,16 +586,11 @@ mode.boss={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -640,10 +635,6 @@ mode.boss={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
event.asboss.close();
|
event.asboss.close();
|
||||||
if(event.boss){
|
if(event.boss){
|
||||||
event.result={
|
event.result={
|
||||||
|
|
|
@ -4077,16 +4077,11 @@ mode.chess={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -4114,10 +4109,6 @@ mode.chess={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
if(event.asboss){
|
if(event.asboss){
|
||||||
event.asboss.close();
|
event.asboss.close();
|
||||||
delete ui.asboss;
|
delete ui.asboss;
|
||||||
|
|
|
@ -460,16 +460,11 @@ mode.guozhan={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -519,10 +514,6 @@ mode.guozhan={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
if(result.buttons){
|
if(result.buttons){
|
||||||
game.me.init(result.buttons[0].link,result.buttons[1].link,false);
|
game.me.init(result.buttons[0].link,result.buttons[1].link,false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -794,16 +794,11 @@ mode.identity={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -830,10 +825,6 @@ mode.identity={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
if(event.chosen.length){
|
if(event.chosen.length){
|
||||||
game.me.init(event.chosen[0],event.chosen[1]);
|
game.me.init(event.chosen[0],event.chosen[1]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1499,16 +1499,11 @@ mode.stone={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -1535,10 +1530,6 @@ mode.stone={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
if(ui.deckcontrol){
|
if(ui.deckcontrol){
|
||||||
ui.deckcontrol.remove();
|
ui.deckcontrol.remove();
|
||||||
delete ui.deckcontrol;
|
delete ui.deckcontrol;
|
||||||
|
|
|
@ -708,16 +708,11 @@ mode.versus={
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.style.opacity=1;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(game.changeCoin){
|
if(game.changeCoin){
|
||||||
game.changeCoin(-10);
|
game.changeCoin(-10);
|
||||||
}
|
}
|
||||||
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
|
|
||||||
this.backup=_status.event.dialog;
|
this.backup=_status.event.dialog;
|
||||||
_status.event.dialog.close();
|
_status.event.dialog.close();
|
||||||
_status.event.dialog=_status.event.parent.dialogxx;
|
_status.event.dialog=_status.event.parent.dialogxx;
|
||||||
|
@ -744,10 +739,6 @@ mode.versus={
|
||||||
ui.cheat2.close();
|
ui.cheat2.close();
|
||||||
delete ui.cheat2;
|
delete ui.cheat2;
|
||||||
}
|
}
|
||||||
if(ui.cheat2x){
|
|
||||||
ui.cheat2x.close();
|
|
||||||
delete ui.cheat2x;
|
|
||||||
}
|
|
||||||
game.me.init(result.links[0]);
|
game.me.init(result.links[0]);
|
||||||
game.addRecentCharacter(game.me.name);
|
game.addRecentCharacter(game.me.name);
|
||||||
event.list.remove(game.me.name);
|
event.list.remove(game.me.name);
|
||||||
|
@ -841,9 +832,6 @@ mode.versus={
|
||||||
dialog.buttons[i].classList.add('noclick');
|
dialog.buttons[i].classList.add('noclick');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!event.groupControl){
|
|
||||||
event.groupControl=ui.create.groupControl(dialog);
|
|
||||||
}
|
|
||||||
game.me.chooseButton(dialog,true).closeDialog=false;
|
game.me.chooseButton(dialog,true).closeDialog=false;
|
||||||
event.xdialog=dialog;
|
event.xdialog=dialog;
|
||||||
dialog.static=true;
|
dialog.static=true;
|
||||||
|
@ -903,9 +891,6 @@ mode.versus={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"step 3"
|
"step 3"
|
||||||
if(event.groupControl){
|
|
||||||
event.groupControl.close();
|
|
||||||
}
|
|
||||||
if(event.xdialog){
|
if(event.xdialog){
|
||||||
event.xdialog.close();
|
event.xdialog.close();
|
||||||
}
|
}
|
||||||
|
@ -1483,7 +1468,6 @@ mode.versus={
|
||||||
var func=function(filter,id,selected,map){
|
var func=function(filter,id,selected,map){
|
||||||
var dialog=ui.create.characterDialog(filter,'expandall').open();
|
var dialog=ui.create.characterDialog(filter,'expandall').open();
|
||||||
dialog.videoId=id;
|
dialog.videoId=id;
|
||||||
dialog.groupControl=ui.create.groupControl(dialog);
|
|
||||||
for(var i in map){
|
for(var i in map){
|
||||||
var player=lib.playerOL[i];
|
var player=lib.playerOL[i];
|
||||||
if(player){
|
if(player){
|
||||||
|
@ -1580,7 +1564,6 @@ mode.versus={
|
||||||
var dialog=get.idDialog(id);
|
var dialog=get.idDialog(id);
|
||||||
if(dialog){
|
if(dialog){
|
||||||
dialog.close();
|
dialog.close();
|
||||||
dialog.groupControl.close();
|
|
||||||
}
|
}
|
||||||
},event.videoId);
|
},event.videoId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue