设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 87|回复: 0

[转载发布] Shop Category Customization

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Plugin Purpose
    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.
    The default parameter are setup for the default shop scene. If you change Buy Categories Window Use to true it will look like this:
    Spoiler: Window Layout
    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:
    Spoiler: Text TabBuy 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\"}"}

    Spoiler: 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)\"}"}
    The plugin does not add new categories by itself, but relies on [url=http://www.yanfly.moe/wiki/Item_Menu_Categories_(YEP)]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.


    本贴来自国际rpgmaker官方论坛作者:BurningOrca处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/shop-category-customization.121309/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 04:44 , Processed in 0.102564 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表