block name
This commit is contained in:
parent
2080b7a885
commit
9f96a841fb
@ -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]只绘制怪物动画而不显示标题"
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user