◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:EnemyInfo/js”的版本间的差异
(更新) |
(更新) |
||
第543行: | 第543行: | ||
buildsignstr = buildsignstr.slice(thenum.length + 1, buildsignstr.length); | buildsignstr = buildsignstr.slice(thenum.length + 1, buildsignstr.length); | ||
} | } | ||
+ | |||
+ | thenum = ("0000000").slice(0, ("0000000").length - thenum.length) + thenum; | ||
var despos = Special_spot_config_txt.indexOf("special_spot_config-1" + thenum) + ("special_spot_config-1" + thenum).length + 1; | var despos = Special_spot_config_txt.indexOf("special_spot_config-1" + thenum) + ("special_spot_config-1" + thenum).length + 1; | ||
var newdes = Special_spot_config_txt.slice(despos, Special_spot_config_txt.indexOf("\n", despos)); | var newdes = Special_spot_config_txt.slice(despos, Special_spot_config_txt.indexOf("\n", despos)); | ||
第942行: | 第944行: | ||
if(setmessage.sspotsign == 1 && (dspot[i].id == $("#soptsign1").val() || dspot[i].id == $("#soptsign2").val() || dspot[i].id == $("#soptsign3").val() || dspot[i].id == $("#soptsign4").val())){ | if(setmessage.sspotsign == 1 && (dspot[i].id == $("#soptsign1").val() || dspot[i].id == $("#soptsign2").val() || dspot[i].id == $("#soptsign3").val() || dspot[i].id == $("#soptsign4").val())){ | ||
con.beginPath(); | con.beginPath(); | ||
− | con.rect(coorchange(1, Number(dspot[i].coordinator_x), x_min) - coorchange(3, | + | con.rect(coorchange(1, Number(dspot[i].coordinator_x), x_min) - coorchange(3, 140), coorchange(2, Number(dspot[i].coordinator_y), y_min) - coorchange(3, 15), coorchange(3, 280), coorchange(3, 30)); |
con.fill(); | con.fill(); | ||
con.stroke(); | con.stroke(); | ||
con.beginPath(); | con.beginPath(); | ||
− | con.rect(coorchange(1, Number(dspot[i].coordinator_x), x_min) - coorchange(3, 15), coorchange(2, Number(dspot[i].coordinator_y), y_min) - coorchange(3, | + | con.rect(coorchange(1, Number(dspot[i].coordinator_x), x_min) - coorchange(3, 15), coorchange(2, Number(dspot[i].coordinator_y), y_min) - coorchange(3, 140), coorchange(3, 30), coorchange(3, 280)); |
con.fill(); | con.fill(); | ||
con.stroke(); | con.stroke(); | ||
第1,033行: | 第1,035行: | ||
thisspotid = content_copy.slice(0, content_copy.length); | thisspotid = content_copy.slice(0, content_copy.length); | ||
content_copy = ""; | content_copy = ""; | ||
+ | if((thisspotid == theaicontent.slice(0, theaicontent.indexOf(",")))) break; | ||
} | } | ||
第1,071行: | 第1,074行: | ||
function enemyselectcreat(){ | function enemyselectcreat(){ | ||
− | var output = `<div style="display:inline-block; padding:6.5px; background:#E0E0E0; color:black; position:relative; top: | + | var output = `<div style="display:inline-block; padding:6.5px; background:#E0E0E0; color:black; position:relative; top:1px;">敌人编号</div> |
<div class="eselect"><select id="enemyselect" name="enemyselect">`; | <div class="eselect"><select id="enemyselect" name="enemyselect">`; | ||
for(var i = 0; i < Enemy_team.length; i++) output += "<option value=\"" + Enemy_team[i].id + "\">" + Enemy_team[i].id + "</option>"; | for(var i = 0; i < Enemy_team.length; i++) output += "<option value=\"" + Enemy_team[i].id + "\">" + Enemy_team[i].id + "</option>"; | ||
− | output += `</select></div> <input type="text" id="enemytext" name="enemytext" style="border:none; padding:10px | + | output += `</select></div> <input type="text" id="enemytext" name="enemytext" style="border:none; padding:10px; background-color:#e0e0e0;"/>`; |
/*-- 绘制画布 --*/ | /*-- 绘制画布 --*/ |