This plugin let's you customize how category windows are shown in the shop menu.
It is plug and play. By default it changes nothing.
It comes with three plugin parameters:
- Buy Categories Window: Contains a switch whether the buy window should be categorized, aswell as layout information for the category window utilizing javascript and layout adjustment information for the buy window.
- Sell Categories Window: Same but for the sell window
- Switch Category Name: To be used with BO_Shops: https://forums.rpgmakerweb.com/index.php?threads/burning-orca-shops.108895/ in case you use switches as shop goods.
With YEP_ShopMenuCore
If you use YEP_ShopMenuCore please open the first two plugin parameters, go to the text tab and change the parameters to the following:
Buy Categories Window:{"Use":"false","Layout":"{\"X\":\"this._commandWindow.x\",\"Y\":\"this._commandWindow.y\",\"Width\":\"this._commandWindow.width\",\"Height\":\"auto\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"Never\",\"X\":\"0\",\"Y\":\"0\",\"Width\":\"0\",\"Height\":\"0\"}"}
Sell Categories Window:{"Use":"true","Layout":"{\"X\":\"this._commandWindow.x\",\"Y\":\"this._commandWindow.y\",\"Width\":\"this._commandWindow.width\",\"Height\":\"auto\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"Never\",\"X\":\"0\",\"Y\":\"0\",\"Width\":\"0\",\"Height\":\"0\"}"}
With NPCDialogueShop
However if you also use NPCDialogueShop just change:
Sell Categories Window:{"Use":"true","Layout":"{\"X\":\"this._dummyWindow.x\",\"Y\":\"this._dummyWindow.y\",\"Width\":\"this._dummyWindow.width\",\"Height\":\"auto\",\"Rows\":\"1\",\"Columns\":\"4\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"When Categories Not Used\",\"X\":\"0\",\"Y\":\"-this._categoryWindow.height\",\"Width\":\"0\",\"Height\":\"this._categoryWindow.height\"}"}
Custom Layout
And this is one custom layout I've created (However The Sell Window Version only works correct with NPCDialogueShop is installed aswell):
Buy Categories Window:{"Use":"true","Layout":"{\"X\":\"this._dummyWindow.x\",\"Y\":\"this._dummyWindow.y\",\"Width\":\"200\",\"Height\":\"this._dummyWindow.height\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"When Categories Used\",\"X\":\"200\",\"Y\":\"0\",\"Width\":\"-200\",\"Height\":\"0\"}"}
Sell Categories Window:{"Use":"true","Layout":"{\"X\":\"this._dummyWindow.x\",\"Y\":\"this._dummyWindow.y\",\"Width\":\"200\",\"Height\":\"this._dummyWindow.height\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"When Categories Used\",\"X\":\"200\",\"Y\":\"-this._sellWindow.fittingHeight(1)\",\"Width\":\"-200\",\"Height\":\"this._sellWindow.fittingHeight(1)\"}"}
Buy Categories Window:{"Use":"true","Layout":"{\"X\":\"this._dummyWindow.x\",\"Y\":\"this._dummyWindow.y\",\"Width\":\"200\",\"Height\":\"this._dummyWindow.height\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"When Categories Used\",\"X\":\"200\",\"Y\":\"0\",\"Width\":\"-200\",\"Height\":\"0\"}"}
Sell Categories Window:{"Use":"true","Layout":"{\"X\":\"this._dummyWindow.x\",\"Y\":\"this._dummyWindow.y\",\"Width\":\"200\",\"Height\":\"this._dummyWindow.height\",\"Rows\":\"4\",\"Columns\":\"1\"}","AffectedWindowAdjustment":"{\"AdjustmentType\":\"When Categories Used\",\"X\":\"200\",\"Y\":\"-this._sellWindow.fittingHeight(1)\",\"Width\":\"-200\",\"Height\":\"this._sellWindow.fittingHeight(1)\"}"}
The plugin does not add new categories by itself, but relies on http://www.yanfly.moe/wiki/Item_Menu_Categories_(YEP) to do so, however the buy menu will show only the categories of items, that are actually sold by the shop.
Compatibility:
Should be compatible to:
YEP_ShopMenuCore
NPCDialogueShop: https://forums.rpgmakerweb.com/index.php?threads/npc-dialogue-shop.101108
BO_Shops
Plugin Order:
Place this below at above mentioned plugins, but I guess it's best put below all other shop plugins you use.
Terms of use:
Free for commercial and non-commercial use.
Credit not required, but appreciated.
You may not repost this plugins. Please only link back to this thread.
Edits Allowed.
MZ Port allowed, although I think this is not easy to do as this plugin relies on YEP_X_ItemCategories and also has special code for my other Shop Plugins, but that could be removed in an MZ Port.
Edit:
Fixed a bug, that made the regular item category not appearing when this plugin would have been used without YEP_X_ItemCategories.