block name

This commit is contained in:
oc 2019-06-08 20:39:46 +08:00
parent 2080b7a885
commit 9f96a841fb
2 changed files with 8 additions and 2 deletions

View File

@ -192,6 +192,8 @@
从V2.6开始所有图块都允许只写ID对于非怪物则仅当图块属性中设置了name才有标题否则不显示标题
另外注意的是名字可以用null从而只显示动画而不显示标题。
``` js
[
"一段普通文字",
@ -204,7 +206,8 @@
"\t[1.png]绘制1.png这个头像图",
"\t[标题,1.png]同时绘制标题和1.png这个头像图",
"\t[sword1]获得铁剑,没有标题",
"\t[man]没有标题的npc动画"
"\t[man]没有标题的npc动画",
"\t[null,greenSlime]只绘制怪物动画而不显示标题"
]
```

View File

@ -544,7 +544,10 @@ ui.prototype._getTitleAndIcon = function (content) {
else title = s4;
}
}
if (s3) title = s3;
if (s3 != null) {
title = s3;
if (title == 'null') title = null;
}
return "";
});
return {