Defining Item Categories¶
When you create a new locator item type, you will want to categorize your item so it shows up in a useful place in the “Add Item” popup.
The item list uses the “itemtype:locator” category, so you can add your items with its own category in your resource file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <atom type="Categories">
<hash type="Category" key="itemtype:locator">
<hash type="C" key="item.name.as.defined.in.plugin">short_name</hash>
</hash>
</atom>
</syntaxhighlight >
This internal name is given a real name through the "itemtype:locator:category" message table:
<syntaxhighlight lang="xml" >
<atom type="Messages">
<hash type="Table" key="itemtype:locator:category.en_US">
<hash type="T" key="short_name">Long name of new category</hash>
</hash>
</atom>
</syntaxhighlight >
== See Also ==
* [[Message (lx-message.hpp)#Categories|Categories]]
[[Category:Configs]]
[[Category:Usage]]
|