This commit is contained in:
libccy 2017-03-27 13:15:33 +08:00
parent bfc8cd98b0
commit fa09433e09
2 changed files with 32 additions and 5 deletions

View File

@ -3710,10 +3710,21 @@ mode.chess={
ui.cheat=ui.create.control('更换',event.changeDialog);
delete _status.createControl;
};
event.dialogxx=ui.create.characterDialog();
event.dialogxx.classList.add('fullwidth');
event.dialogxx.classList.add('fullheight');
event.dialogxx.classList.add('fixed');
var createCharacterDialog=function(){
event.dialogxx=ui.create.characterDialog();
event.dialogxx.classList.add('fullwidth');
event.dialogxx.classList.add('fullheight');
event.dialogxx.classList.add('fixed');
if(ui.cheat2){
ui.cheat2.classList.remove('disabled');
}
};
if(lib.onfree){
lib.onfree.push(createCharacterDialog);
}
else{
createCharacterDialog();
}
ui.create.cheat2=function(){
ui.cheat2=ui.create.control('自由选将',function(){
if(this.dialog==_status.event.dialog){
@ -3746,6 +3757,9 @@ mode.chess={
}
}
});
if(lib.onfree){
ui.cheat2.classList.add('disabled');
}
}
if(!ui.cheat&&get.config('change_choice'))
ui.create.cheat();

View File

@ -1495,7 +1495,17 @@ mode.stone={
ui.cheat=ui.create.control('更换',event.changeDialog);
delete _status.createControl;
};
event.dialogxx=ui.create.characterDialog();
if(lib.onfree){
lib.onfree.push(function(){
event.dialogxx=ui.create.characterDialog();
if(ui.cheat2){
ui.cheat2.classList.remove('disabled');
}
});
}
else{
event.dialogxx=ui.create.characterDialog();
}
ui.create.cheat2=function(){
ui.cheat2=ui.create.control('自由选将',function(){
if(this.dialog==_status.event.dialog){
@ -1528,6 +1538,9 @@ mode.stone={
}
}
});
if(lib.onfree){
ui.cheat2.classList.add('disabled');
}
}
if(!ui.cheat&&get.config('change_choice'))
ui.create.cheat();