aomao_plugin-status
TypeScript icon, indicating that this package has built-in type declarations

2.7.37 • Public • Published

aomao_plugin-status

状态插件

安装

$ yarn add aomao_plugin-status

添加到引擎

import Engine, { EngineInterface } from 'aomao_engine';
import Status , { StatusComponent } from 'aomao_plugin-status';

new Engine(...,{ plugins:[Status] , cards:[StatusComponent]})

可选项

快捷键

默认无快捷键

hotkey?:string;

//使用配置
new Engine(...,{
    config:{
        "status":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

自定义颜色

可以通过 StatusComponent.colors 修改或增加到默认颜色列表中

new Engine(...,{
    config:{
        "status":{
            colors: Array<{
								background: string,
								color: string
						}>
        }
    }
})
  • background 背景颜色
  • color 字体颜色
//默认颜色列表
[
	{
		background: '#FFE8E6',
		color: '#820014',
	},
	{
		background: '#FCFCCA',
		color: '#614700',
	},
	{
		background: '#E4F7D2',
		color: '#135200',
	},
	{
		background: '#E9E9E9',
		color: '#595959',
	},
	{
		background: '#D4EEFC',
		color: '#003A8C',
	},
	{
		background: '#DEE8FC',
		color: '#061178',
	},
];

命令

engine.command.execute('status');

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.7.370latest

Version History

VersionDownloads (Last 7 Days)Published
2.7.370
2.7.340
2.7.330

Package Sidebar

Install

npm i aomao_plugin-status

Weekly Downloads

0

Version

2.7.37

License

MIT

Unpacked Size

79.4 kB

Total Files

20

Last publish

Collaborators

  • eyea