




描述
这个mod是我在开发mod时使用的脚本的集合。
我在其他模组中需要它们时,将会立即显示更多脚本。
SkyUI脚本扩展
yeolde_mcm_configbase和yeolde_mcm_page
这些脚本允许修改者将MCM菜单脚本拆分为多个较小的脚本(每个MCM菜单页面1个脚本)。
您的每个mcm_page脚本都必须扩展yeolde_mcm_page,并且可以使用SkyUI中的“ MCM状态选项”照常实现MCM菜单。
您将像往常一样使用OnPageInit和OnPageReset事件对选项进行编码。
您的MCM主菜单必须扩展yeolde_mcm_configbase并使用AddPage函数添加每个菜单页面。
您的MCM菜单主脚本将如下所示(来自YeOlde-Cheats mod来源的示例):
在Creation Kit中,您将像这样添加脚本(同样,来自YeOlde-Cheats mod来源的示例):
有关完整示例:您可以下载YeOlde-Cheats并检查源代码。
学分
iEquip团队提供了“ SkyUI页面拆分”功能背后的主要思想。
我所有的模组
YeOlde-作弊
YeOlde-工艺包
YeOlde-混合战利品
YeOlde-MCM设置
YeOlde-油画
YeOlde-油画扩展版
YeOlde-纸莎草纸
YeOlde-重生
——————————————————————————
Description
This mod is a collection of scripts I use when developing mods.
More scripts will appear as soon as I'll need them in my other mods.
SkyUI scripts extension
yeolde_mcm_configbase and yeolde_mcm_page
These scripts allow modders to split MCM menu scripts in multiple smaller scripts (1 script per MCM menu page).
Each of your mcm_page script must extend yeolde_mcm_page and can implement MCM menus as usual, using MCM State Options from SkyUI.
You'll code your options as usual, using
OnPageInit
and
OnPageReset
events.
Your main MCM menu must extend yeolde_mcm_configbase and add each menu page using the AddPage function.
Your MCM menu main script will look like this (example from YeOlde - Cheats mod sources):
And in the Creation Kit, you'll add your scripts like this (again, example from YeOlde - Cheats mod sources):
For a complete example: you can download YeOlde - Cheats and check the source code.
Credits
The iEquip team for the main idea behind my "SkyUI pages split" feature.
All my mods
YeOlde - Cheats
YeOlde - Crafting Bag
YeOlde - Hybrid Loot
YeOlde - MCM Settings
YeOlde - Oil Painted
YeOlde - Oil Painted Extended
YeOlde - Papyrus
YeOlde - Respawn
如果您在使用MOD站的时候遇到任何问题,可发送邮件到 mod@3dmgame.com
关于3DMGAME|招聘信息|网站地图|联系我们|媒体信息|家长监护申请引导|家长监护|汉化翻译CopyRight©2009-2021 MOD.3DMGAME.COM All Right Reserved 京ICP备14006952号-1 京网文(2016)1650-207号