This commit is contained in:
parent
c4f611094d
commit
f86b26c198
71
game/game.js
71
game/game.js
|
@ -1704,7 +1704,7 @@
|
||||||
else{
|
else{
|
||||||
ui.arena.classList.remove('uslim_player');
|
ui.arena.classList.remove('uslim_player');
|
||||||
}
|
}
|
||||||
if(item=='normal'&&(game.layout=='long'||game.layout=='long2')){
|
if(item=='normal'&&lib.config.mode!='brawl'&&(game.layout=='long'||game.layout=='long2')){
|
||||||
ui.arena.classList.add('lslim_player');
|
ui.arena.classList.add('lslim_player');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -4909,7 +4909,7 @@
|
||||||
'<div style="margin:10px">角色操作</div><ul style="margin-top:0"><li>受到伤害<br>player.damage(source,<br>num)'+
|
'<div style="margin:10px">角色操作</div><ul style="margin-top:0"><li>受到伤害<br>player.damage(source,<br>num)'+
|
||||||
'<li>回复体力<br>player.recover(num)<li>摸牌<br>player.draw(num)<li>获得牌<br>player.gain(cards)<li>弃牌<br>player.discard(cards)'+
|
'<li>回复体力<br>player.recover(num)<li>摸牌<br>player.draw(num)<li>获得牌<br>player.gain(cards)<li>弃牌<br>player.discard(cards)'+
|
||||||
'<li>使用卡牌<br>player.useCard(card,<br>targets)<li>死亡<br>player.die()<li>复活<br>player.revive(hp)</ul>'+
|
'<li>使用卡牌<br>player.useCard(card,<br>targets)<li>死亡<br>player.die()<li>复活<br>player.revive(hp)</ul>'+
|
||||||
'<div style="margin:10px">游戏操作</div><ul style="margin-top:0"><li>在命令框中输出结果<br>game.print(str)<li>清除命令框中的内容<br>cls<li>游戏结束<br>game.over(bool)'+
|
'<div style="margin:10px">游戏操作</div><ul style="margin-top:0"><li>在命令框中输出结果<br>game.print(str)<li>清除命令框中的内容<br>cls<li>上一条/下一条输入的内容<br>up/down<li>游戏结束<br>game.over(bool)'+
|
||||||
'<li>角色资料<br>lib.character<li>卡牌资料<br>lib.card</ul>',
|
'<li>角色资料<br>lib.character<li>卡牌资料<br>lib.card</ul>',
|
||||||
},
|
},
|
||||||
setIntro:function(node,func){
|
setIntro:function(node,func){
|
||||||
|
@ -7095,7 +7095,7 @@
|
||||||
else{
|
else{
|
||||||
ui.arena.classList.remove('slim_player');
|
ui.arena.classList.remove('slim_player');
|
||||||
}
|
}
|
||||||
if(lib.config.player_border=='normal'&&(game.layout=='long'||game.layout=='long2')){
|
if(lib.config.player_border=='normal'&&lib.config.mode!='brawl'&&(game.layout=='long'||game.layout=='long2')){
|
||||||
ui.arena.classList.add('lslim_player');
|
ui.arena.classList.add('lslim_player');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -23526,9 +23526,16 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
switchMode:function(name,configx){
|
switchMode:function(name,configx){
|
||||||
if(lib.config.layout!=game.layout&&!lib.layoutfixed.contains(name)){
|
if(!lib.layoutfixed.contains(name)){
|
||||||
lib.init.layout(lib.config.layout);
|
if(lib.config.layout!=game.layout){
|
||||||
}
|
lib.init.layout(lib.config.layout);
|
||||||
|
}
|
||||||
|
else if(lib.config.mode=='brawl'){
|
||||||
|
if(lib.config.player_border=='normal'&&(game.layout=='long'||game.layout=='long2')){
|
||||||
|
ui.arena.classList.add('lslim_player');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
window.mode={};
|
window.mode={};
|
||||||
var script=lib.init.js(lib.assetURL+'mode',name,function(){
|
var script=lib.init.js(lib.assetURL+'mode',name,function(){
|
||||||
script.remove();
|
script.remove();
|
||||||
|
@ -31598,13 +31605,36 @@
|
||||||
var logindex=-1;
|
var logindex=-1;
|
||||||
var cheat=lib.cheat;
|
var cheat=lib.cheat;
|
||||||
var runCommand=function(e){
|
var runCommand=function(e){
|
||||||
if(text2.value){
|
if(text2.value&&!['up','down'].contains(text2.value)){
|
||||||
logindex=-1;
|
logindex=-1;
|
||||||
logs.unshift(text2.value);
|
logs.unshift(text2.value);
|
||||||
}
|
}
|
||||||
if(text2.value=='cls'){
|
if(text2.value=='cls'){
|
||||||
text.innerHTML='';
|
text.innerHTML='';
|
||||||
|
text2.value='';
|
||||||
}
|
}
|
||||||
|
else if(text2.value=='up'){
|
||||||
|
if(logindex+1<logs.length){
|
||||||
|
text2.value=logs[++logindex];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
text2.value='';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(text2.value=='down'){
|
||||||
|
if(logindex>=0){
|
||||||
|
logindex--;
|
||||||
|
if(logindex<0){
|
||||||
|
text2.value='';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
text2.value=logs[logindex];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
text2.value='';
|
||||||
|
}
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
try{
|
try{
|
||||||
var result=eval(text2.value);
|
var result=eval(text2.value);
|
||||||
|
@ -31613,8 +31643,8 @@
|
||||||
catch(e){
|
catch(e){
|
||||||
game.print(e);
|
game.print(e);
|
||||||
}
|
}
|
||||||
|
text2.value='';
|
||||||
}
|
}
|
||||||
text2.value='';
|
|
||||||
}
|
}
|
||||||
text2.addEventListener('keydown',function(e){
|
text2.addEventListener('keydown',function(e){
|
||||||
if(e.keyCode==13){
|
if(e.keyCode==13){
|
||||||
|
@ -33095,7 +33125,7 @@
|
||||||
if(lib.config.player_border=='slim'){
|
if(lib.config.player_border=='slim'){
|
||||||
ui.arena.classList.add('uslim_player');
|
ui.arena.classList.add('uslim_player');
|
||||||
}
|
}
|
||||||
if(lib.config.player_border=='normal'&&(game.layout=='long'||game.layout=='long2')){
|
if(lib.config.player_border=='normal'&&lib.config.mode!='brawl'&&(game.layout=='long'||game.layout=='long2')){
|
||||||
ui.arena.classList.add('lslim_player');
|
ui.arena.classList.add('lslim_player');
|
||||||
}
|
}
|
||||||
if(lib.config.compatiblemode){
|
if(lib.config.compatiblemode){
|
||||||
|
@ -33589,6 +33619,19 @@
|
||||||
if(item.nature){
|
if(item.nature){
|
||||||
node.classList.add(item.nature);
|
node.classList.add(item.nature);
|
||||||
}
|
}
|
||||||
|
if(!noclick){
|
||||||
|
if(lib.config.touchscreen){
|
||||||
|
lib.setLongPress(node,ui.click.intro);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(lib.config.hover_all){
|
||||||
|
lib.setHover(node,ui.click.hoverplayer);
|
||||||
|
}
|
||||||
|
if(lib.config.right_info){
|
||||||
|
node.oncontextmenu=ui.click.rightplayer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'vcard':
|
case 'vcard':
|
||||||
|
@ -39245,6 +39288,9 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var name=node.name;
|
var name=node.name;
|
||||||
|
if(node.link&&node.link.name&&lib.card[node.link.name]){
|
||||||
|
name=node.link.name;
|
||||||
|
}
|
||||||
if(get.position(node)=='j'&&node.viewAs&&node.viewAs!=name){
|
if(get.position(node)=='j'&&node.viewAs&&node.viewAs!=name){
|
||||||
uiintro.add(get.translation(node.viewAs)+'<br><div class="text center" style="padding-top:5px;">('+get.translation(node)+')</div>');
|
uiintro.add(get.translation(node.viewAs)+'<br><div class="text center" style="padding-top:5px;">('+get.translation(node)+')</div>');
|
||||||
name=node.viewAs;
|
name=node.viewAs;
|
||||||
|
@ -39371,7 +39417,12 @@
|
||||||
uiintro.add('<div class="text center">特殊装备</div>').style.marginTop='-5px';
|
uiintro.add('<div class="text center">特殊装备</div>').style.marginTop='-5px';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uiintro._place_text=uiintro.add('<div class="text" style="display:inline">'+lib.translate[name+'_info']+'</div>');
|
if(lib.translate[name+'_info']){
|
||||||
|
var placetext=uiintro.add('<div class="text" style="display:inline">'+lib.translate[name+'_info']+'</div>');
|
||||||
|
if(lib.translate[name+'_info'].indexOf('<div class="skill"')!=0){
|
||||||
|
uiintro._place_text=placetext;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
uiintro.add(ui.create.div('.placeholder.slim'));
|
uiintro.add(ui.create.div('.placeholder.slim'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ window.noname_update={
|
||||||
// 'game/package.js',
|
// 'game/package.js',
|
||||||
// 'game/config.js',
|
// 'game/config.js',
|
||||||
// 'game/source.js',
|
// 'game/source.js',
|
||||||
'game/asset.js',
|
// 'game/asset.js',
|
||||||
// 'card/*',
|
// 'card/*',
|
||||||
// 'card/guozhan.js',
|
// 'card/guozhan.js',
|
||||||
// 'character/*',
|
// 'character/*',
|
||||||
|
@ -18,19 +18,19 @@ window.noname_update={
|
||||||
// 'mode/versus.js',
|
// 'mode/versus.js',
|
||||||
// 'mode/guozhan.js',
|
// 'mode/guozhan.js',
|
||||||
// 'mode/identity.js',
|
// 'mode/identity.js',
|
||||||
'mode/chess.js',
|
// 'mode/chess.js',
|
||||||
'mode/tafang.js',
|
// 'mode/tafang.js',
|
||||||
// 'mode/stone.js',
|
'mode/stone.js',
|
||||||
// 'theme/woodden/style.css',
|
// 'theme/woodden/style.css',
|
||||||
'layout/default/layout.css',
|
// 'layout/default/layout.css',
|
||||||
// 'layout/default/phone.css',
|
// 'layout/default/phone.css',
|
||||||
// 'layout/default/menu.css',
|
// 'layout/default/menu.css',
|
||||||
// 'theme/style/cardback/*',
|
// 'theme/style/cardback/*',
|
||||||
// 'layout/long/layout.css',
|
// 'layout/long/layout.css',
|
||||||
// 'layout/long2/layout.css',
|
// 'layout/long2/layout.css',
|
||||||
'layout/mobile/layout.css',
|
// 'layout/mobile/layout.css',
|
||||||
// 'layout/newlayout/global.css',
|
// 'layout/newlayout/global.css',
|
||||||
'layout/mode/chess.css',
|
// 'layout/mode/chess.css',
|
||||||
// 'extension/boss/extension.js',
|
// 'extension/boss/extension.js',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 95 KiB |
Loading…
Reference in New Issue