In the menu screen, when you enter options like "Backpack" or "Abilities," you usually see an option called "Override Button Content." Suppose you are currently operating the "Backpack" and have already overridden the content of the "Use Submenu Button" to "Devour." Could you add a feature that modifies the button text content based on the item type? For example, change the use button text for material items to "A1" and for potion items to "A2." This way, different types of items would have their unique button text instead of being uniformly the same content.
Not exactly the same as checking item types, but you can create a system using item variables to have different buttons in sub-menus based on that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!