MV [Solved] Blank iten tabs

How to make the "material" show in the tab instead of a blank tab? (and how to tag itens to material tab?)
1675018960985.png

1675019021142.png
Edit: I forgot to explain what had happened with your code.

You simply called a string in TextManager that never existed, thus it'd never show up on screen.

JavaScript:
//==================================
// * KItemTypeMaterialMV.js
//==================================
/*:
 * @plugindesc This plugin will let you add a Material tab to your menu.
 * @author Kyonides Arkanthes
 * @help Date: 2023-01-29
 * # * Free as in Beer * #
 *
 * Just add the following note tag to any item:
 * <material>
*/

TextManager.material = "Material";
TextManager.materialKeyWord = "material";

Window_ItemCategory.prototype.makeCommandList = function() {
  this.addCommand(TextManager.item,    'item');
  this.addCommand(TextManager.weapon,  'weapon');
  this.addCommand(TextManager.armor,   'armor');
  this.addCommand(TextManager.material, TextManager.materialKeyWord);
  this.addCommand(TextManager.keyItem, 'keyItem');
};

Window_ItemList.prototype.someItem = function(item) {
  return DataManager.isItem(item);
};

Window_ItemList.prototype.isMaterial = function(note) {
  let rgx = /<material>/i;
  return rgx.exec(note);
};

Window_ItemList.prototype.includes = function(item) {
  switch (this._category) {
  case 'item':
    return this.someItem(item) && item.itypeId === 1 && !this.isMaterial(item.note);
  case 'weapon':
    return DataManager.isWeapon(item);
  case 'armor':
    return DataManager.isArmor(item);
  case 'material':
    return DataManager.isItem(item) && this.isMaterial(item.note);
  case 'keyItem':
    return this.someItem(item) && item.itypeId === 2 && !this.isMaterial(item.note);
  default:
    return false;
  }
};
pure overwrite, as textManager could also be as simple as "Material"
without making the TextManager, but a nice way to add things to the
list 🙂
Edit: I forgot to explain what had happened with your code.

You simply called a string in TextManager that never existed, thus it'd never show up on screen.

JavaScript:
//==================================
// * KItemTypeMaterialMV.js
//==================================
/*:
 * @plugindesc This plugin will let you add a Material tab to your menu.
 * @author Kyonides Arkanthes
 * @help Date: 2023-01-29
 * # * Free as in Beer * #
 *
 * Just add the following note tag to any item:
 * <material>
*/

TextManager.material = "Material";
TextManager.materialKeyWord = "material";

Window_ItemCategory.prototype.makeCommandList = function() {
  this.addCommand(TextManager.item,    'item');
  this.addCommand(TextManager.weapon,  'weapon');
  this.addCommand(TextManager.armor,   'armor');
  this.addCommand(TextManager.material, TextManager.materialKeyWord);
  this.addCommand(TextManager.keyItem, 'keyItem');
};

Window_ItemList.prototype.someItem = function(item) {
  return DataManager.isItem(item);
};

Window_ItemList.prototype.isMaterial = function(note) {
  let rgx = /<material>/i;
  return rgx.exec(note);
};

Window_ItemList.prototype.includes = function(item) {
  switch (this._category) {
  case 'item':
    return this.someItem(item) && item.itypeId === 1 && !this.isMaterial(item.note);
  case 'weapon':
    return DataManager.isWeapon(item);
  case 'armor':
    return DataManager.isArmor(item);
  case 'material':
    return DataManager.isItem(item) && this.isMaterial(item.note);
  case 'keyItem':
    return this.someItem(item) && item.itypeId === 2 && !this.isMaterial(item.note);
  default:
    return false;
  }
};
Thanks

But i have another question. I willing to add a second page (which I'll call "Misc"), as I would to prevent the "misc" item from appearing on both the item and misc pages
1675094103244.png

1675094354326.png


1675094381622.png
The point was to show him how material had never been added to Text manager and how he could do it easily. It's easy to find where to add and edit stuff to Text manager this way.

Add the regex, and people are done adding new categories at will.

@alreadytaken12 you can't define the return value like that. To the existing conditions add your misc condition twice with a ! preceding it and once without it right where misc conditions are defined.
The point was to show him how material had never been added to Text manager and how he could do it easily. It's easy to find where to add and edit stuff to Text manager this way.

Add the regex, and people are done adding new categories at will.

@alreadytaken12 you can't define the return value like that. To the existing conditions add your misc condition twice with a ! preceding it and once without it right where misc conditions are defined.
Thanks

Original thread: https://forums.rpgmakerweb.com/threads/solved-blank-iten-tabs.154506/