From a0beb0d011d13ad533370702f56c898b3ca68760 Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 20 Feb 2017 20:47:48 +0800 Subject: [PATCH] des --- game/game.js | 22 ++++++++++++++++++++-- layout/default/menu.css | 10 +++++----- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/game/game.js b/game/game.js index a126347e8..763c9444d 100644 --- a/game/game.js +++ b/game/game.js @@ -26306,6 +26306,11 @@ options.childNodes[i].lastChild.checked=false; } } + for(var i=0;i',newCharacter).style.paddingTop='10px'; - ui.create.div('.indent','体力:',newCharacter).style.paddingTop='10px'; + ui.create.div('.indent','姓名:',newCharacter).style.paddingTop='8px'; + ui.create.div('.indent','介绍:',newCharacter).style.paddingTop='8px'; + ui.create.div('.indent','体力:',newCharacter).style.paddingTop='8px'; newCharacter.querySelector('input.new_name').onblur=updateButton; var sexes=ui.create.selectlist([ ['male','男'], @@ -26664,6 +26670,10 @@ if(tags.contains('boss')){ tags.add('bossallowed'); } + var des=page.querySelector('input.new_des').value; + if(des){ + tags.add('des:'+des); + } page.content.pack.translate[name]=translate; page.content.pack.character[name]=[sexes.value,groups.value,hp,skills,tags]; @@ -34739,6 +34749,14 @@ }, characterIntro:function(name){ if(lib.characterIntro[name]) return lib.characterIntro[name]; + var tags=lib.character[name][4]; + if(tags){ + for(var i=0;i.new_character>.card{ @@ -640,7 +640,7 @@ width: 100%; height: 20px; line-height: 20px; - top:50px; + top:55px; left:0; text-align: center; } @@ -669,13 +669,13 @@ .menu-buttons>.new_character>.add_skill{ position: absolute; left: 12px; - top:170px; + top:180px; text-align: left; line-height: 20px; white-space: nowrap; } .menu-buttons>.new_character>.add_skill.options{ - top:145px; + top:155px; } .menu-buttons>.new_character>.add_skill.options>span{ margin-right: 10px; @@ -1023,7 +1023,7 @@ transform: translateX(200px); } #create-extension>.menu-buttons>.new_character>.skill_list{ - top: 210px; + top: 220px; } #create-extension>.menu-buttons>.new_character>.skill_list>div:first-child{ transition: all 0s;