des
This commit is contained in:
parent
b95efd0f0f
commit
a0beb0d011
22
game/game.js
22
game/game.js
|
@ -26306,6 +26306,11 @@
|
||||||
options.childNodes[i].lastChild.checked=false;
|
options.childNodes[i].lastChild.checked=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for(var i=0;i<info[4].length;i++){
|
||||||
|
if(info[4][i].indexOf('des:')==0){
|
||||||
|
newCharacter.querySelector('.new_des').value=info[4][i].slice(4);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var skills=info[3];
|
var skills=info[3];
|
||||||
|
@ -26493,8 +26498,9 @@
|
||||||
|
|
||||||
ui.create.div('.select_avatar','选择头像',fakeme);
|
ui.create.div('.select_avatar','选择头像',fakeme);
|
||||||
|
|
||||||
ui.create.div('.indent','姓名:<input class="new_name" type="text">',newCharacter).style.paddingTop='10px';
|
ui.create.div('.indent','姓名:<input class="new_name" type="text">',newCharacter).style.paddingTop='8px';
|
||||||
ui.create.div('.indent','体力:<input class="new_hp" type="text">',newCharacter).style.paddingTop='10px';
|
ui.create.div('.indent','介绍:<input class="new_des" type="text">',newCharacter).style.paddingTop='8px';
|
||||||
|
ui.create.div('.indent','体力:<input class="new_hp" type="text">',newCharacter).style.paddingTop='8px';
|
||||||
newCharacter.querySelector('input.new_name').onblur=updateButton;
|
newCharacter.querySelector('input.new_name').onblur=updateButton;
|
||||||
var sexes=ui.create.selectlist([
|
var sexes=ui.create.selectlist([
|
||||||
['male','男'],
|
['male','男'],
|
||||||
|
@ -26664,6 +26670,10 @@
|
||||||
if(tags.contains('boss')){
|
if(tags.contains('boss')){
|
||||||
tags.add('bossallowed');
|
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.translate[name]=translate;
|
||||||
page.content.pack.character[name]=[sexes.value,groups.value,hp,skills,tags];
|
page.content.pack.character[name]=[sexes.value,groups.value,hp,skills,tags];
|
||||||
|
@ -34739,6 +34749,14 @@
|
||||||
},
|
},
|
||||||
characterIntro:function(name){
|
characterIntro:function(name){
|
||||||
if(lib.characterIntro[name]) return lib.characterIntro[name];
|
if(lib.characterIntro[name]) return lib.characterIntro[name];
|
||||||
|
var tags=lib.character[name][4];
|
||||||
|
if(tags){
|
||||||
|
for(var i=0;i<tags.length;i++){
|
||||||
|
if(tags[i].indexOf('des:')==0){
|
||||||
|
return tags[i].slice(4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if(name.indexOf('_')!=-1){
|
if(name.indexOf('_')!=-1){
|
||||||
name=name.slice(name.indexOf('_')+1);
|
name=name.slice(name.indexOf('_')+1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -597,7 +597,7 @@
|
||||||
left:12px;
|
left:12px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 120px;
|
height: 130px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.menu-buttons>.new_character>.card{
|
.menu-buttons>.new_character>.card{
|
||||||
|
@ -640,7 +640,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
top:50px;
|
top:55px;
|
||||||
left:0;
|
left:0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -669,13 +669,13 @@
|
||||||
.menu-buttons>.new_character>.add_skill{
|
.menu-buttons>.new_character>.add_skill{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 12px;
|
left: 12px;
|
||||||
top:170px;
|
top:180px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.menu-buttons>.new_character>.add_skill.options{
|
.menu-buttons>.new_character>.add_skill.options{
|
||||||
top:145px;
|
top:155px;
|
||||||
}
|
}
|
||||||
.menu-buttons>.new_character>.add_skill.options>span{
|
.menu-buttons>.new_character>.add_skill.options>span{
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@ -1023,7 +1023,7 @@
|
||||||
transform: translateX(200px);
|
transform: translateX(200px);
|
||||||
}
|
}
|
||||||
#create-extension>.menu-buttons>.new_character>.skill_list{
|
#create-extension>.menu-buttons>.new_character>.skill_list{
|
||||||
top: 210px;
|
top: 220px;
|
||||||
}
|
}
|
||||||
#create-extension>.menu-buttons>.new_character>.skill_list>div:first-child{
|
#create-extension>.menu-buttons>.new_character>.skill_list>div:first-child{
|
||||||
transition: all 0s;
|
transition: all 0s;
|
||||||
|
|
Loading…
Reference in New Issue