【文件属性】:
文件名称:VTTColorSettings:在Foundry VTT中将颜色选择器添加为设置选项
文件大小:75KB
文件格式:ZIP
更新时间:2021-04-29 03:35:06
JavaScript
VTTColorSettings
在Foundry VTT中将颜色选择器添加为设置选项和表单选项,以用作模块开发人员的库。
预习
用法
安装lib - Color Settings (此)模块。
可选:将测试仪添加到模块中,以检查是否安装了颜色设置,如果没有,则通知用户:
Hooks . once ( 'ready' , ( ) => {
try { window . Ardittristan . ColorSetting . tester } catch {
ui . notifications . notify ( 'Please make sure you have the "lib - ColorSettings" module installed and enabled.' , "error" ) ;
}
} ) ;
使用颜色设置作为集成库
【文件预览】:
VTTColorSettings-master
----css()
--------colorpicker.css(154B)
----.gitignore(13B)
----colorSetting.js(24KB)
----README.md(6KB)
----CHANGELOG.md(3KB)
----.github()
--------workflows()
----LICENSE(1KB)
----.gitattributes(24B)
----module.json(895B)
----colorSettingStub.js(2KB)
----lib()
--------vanilla-picker.min.mjs(24KB)
--------html2canvas.esm.min.js(227KB)
----lang()
--------en.json(870B)
--------pt-BR.json(952B)
--------es.json(1KB)