Help in Creating a Window Displaying a Certain Item Category

OK, so I'm trying to make a farming game, and I just recently started trying to learn how to script (I have no idea what I'm doing but I'm trying to get there so I have more control over things). Anyway, something I wanted to do was create a quick-select window that opens when you press a certain button (thought for now I just have it as a command in the menu). The idea is that this window is a modified version of the normal item menu that displays a custom item category, farming tools, so that you can quickly select which one to equip. However, I have no idea how to create a new item category or how to display that in the window.

What I have currently is that I tried to have it inherit from Scene_Item, and I managed to make it so it doesn't display the normal categories, but I'm still not sure how to make it display my own one, so I was wondering if someone could help me out here? I really have no idea what I'm doing, but hopefully I'll learn in the process.

Here are images of the code, and what the window looks like:
Spoiler: Images
cmdwdcode.PNG
cmdwdresult.PNG
You can try to follow the same thing from Window_ItemCategory and Window_ItemList, and override the necessary methods only
These are untested, but should goes like
Code:
class YourCategoryWindow < Window_ItemCategory
  def make_command_list
    add_command("Category A",   :cat_a)
    add_command("Category B",   :cat_b)
  end
end
Then override the selection of the category
Code:
class YourItemList < Window_ItemList
  def include?(item)
    case @category
    when :cat_a
      <write your condition here>
    when :cat_b
      <write your condition here>
    else
      false
    end
  end
end
Condition is basically anything, could be based on "hardcode" id like
Code:
item.is_a?(RPG::Item) && [1,2,3,4,5,6,7].include?(item.id)
Or based on notetag like
Code:
item.is_a?(RPG::Item) && item.note[/<category_a>/i]
Hello, thank you for your help, I tried the note-tag method and I feel like I'm getting closer but the item still doesn't show up in the menu for some reason even though I have the item in my inventory. The script and note-tag looks like this:
Spoiler
cmdwdcode2.PNG

farmtoolnotetage.PNG

Is there something else I need to set up?
Is there something else I need to set up?
Maybe, you actually need to overwrite the create_item_window too 😛
Spoiler
awyissss.PNG
You, sir... are my saviour.

EDIT: Okey dokey, now I have another question if anyone could help; so, now that I have the window itself, I've been trying to get it so that it pops up with a button press, but instead it just brings up the normal menu so you have to access it through there which doesn't really save time... So, I'm wondering, how do you make it so that it accesses a section within the menu instead of the menu itself?

Original thread: https://forums.rpgmakerweb.com/threads/help-in-creating-a-window-displaying-a-certain-item-category.89196/