diff --git a/game/game.js b/game/game.js index 158d34bb9..50be434cc 100644 --- a/game/game.js +++ b/game/game.js @@ -10584,7 +10584,7 @@ var directh=true; for(var i=0;i.card>.info>span, position: relative; margin: 8px; } +.content>.caption + .buttons{ + margin: 0 +} .content>.config { height: 20px; line-height: 20px; diff --git a/mode/guozhan.js b/mode/guozhan.js index 8187602dc..320330aaf 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -2411,7 +2411,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ ui.arena.classList.remove('selecting'); }; var createCharacterDialog=function(){ - event.dialogxx=ui.create.characterDialog(function(i){ + event.dialogxx=ui.create.characterDialog('heightset',function(i){ if(i.indexOf('gz_shibing')==0) return true; if(get.config('onlyguozhan')){ if(!lib.characterPack.mode_guozhan[i]) return true; diff --git a/mode/identity.js b/mode/identity.js index cc26dc36d..a15178203 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -1030,7 +1030,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }; if(lib.onfree){ lib.onfree.push(function(){ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); if(ui.cheat2){ ui.cheat2.animate('controlpressdownx',500); ui.cheat2.classList.remove('disabled'); @@ -1038,7 +1038,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }); } else{ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); } ui.create.cheat2=function(){ diff --git a/mode/stone.js b/mode/stone.js index 3aae684f0..dc7b97f26 100644 --- a/mode/stone.js +++ b/mode/stone.js @@ -1493,15 +1493,17 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }; if(lib.onfree){ lib.onfree.push(function(){ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); if(ui.cheat2){ ui.cheat2.animate('controlpressdownx',500); ui.cheat2.classList.remove('disabled'); } + event.dialogxx.style.height=(game.layout=='newlayout'?350:410)+'px'; + event.dialogxx._scrollset=true; }); } else{ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); } ui.create.cheat2=function(){ ui.cheat2=ui.create.control('自由选将',function(){ diff --git a/mode/versus.js b/mode/versus.js index 8af8c68ce..2b02a8918 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -634,7 +634,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ delete _status.createControl; } var createCharacterDialog=function(){ - event.dialogxx=ui.create.characterDialog(function(name){ + event.dialogxx=ui.create.characterDialog('heightset',function(name){ if(lib.character[name][4]){ if(lib.character[name][4].contains('jiangeboss')) return true; if(lib.character[name][4].contains('jiangemech')) return true; @@ -887,7 +887,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ delete _status.createControl; } var createCharacterDialog=function(){ - event.dialogxx=ui.create.characterDialog(function(name){ + event.dialogxx=ui.create.characterDialog('heightset',function(name){ if(name==event.friendChoice) return true; if(lib.character[name][1]!=game.me.identity) return true; }); @@ -1213,7 +1213,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }; if(lib.onfree){ lib.onfree.push(function(){ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); if(ui.cheat2){ ui.cheat2.animate('controlpressdownx',500); ui.cheat2.classList.remove('disabled'); @@ -1221,7 +1221,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }); } else{ - event.dialogxx=ui.create.characterDialog(); + event.dialogxx=ui.create.characterDialog('heightset'); } ui.create.cheat2=function(){ ui.cheat2=ui.create.control('自由选将',function(){ @@ -1432,10 +1432,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ var dialog=event.xdialog; if(!dialog){ if(get.config('expand_dialog')){ - dialog=event.xdialog||ui.create.characterDialog(event.filterChoice,'expandall'); + dialog=event.xdialog||ui.create.characterDialog('heightset',event.filterChoice,'expandall'); } else{ - dialog=event.xdialog||ui.create.characterDialog(event.filterChoice); + dialog=event.xdialog||ui.create.characterDialog('heightset',event.filterChoice); } } var names=[]; @@ -2235,7 +2235,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ event.videoId=lib.status.videoId++; var func=function(filter,id,selected,map,choiceFour){ lib.choiceFour=choiceFour; - var dialog=ui.create.characterDialog(filter,'expandall').open(); + var dialog=ui.create.characterDialog('heightset',filter,'expandall').open(); dialog.videoId=id; for(var i in map){ var player=lib.playerOL[i];