Status plugin
$ yarn add @aomao/plugin-status
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Status, {StatusComponent} from'@aomao/plugin-status';new Engine(...,{ plugins:[Status], cards:[StatusComponent]})
No shortcut keys by default
hotkey?:string;//Use configurationnew Engine(...,{config:{"status":{//Modify shortcut keyshotkey: "shortcut key"}}})
Can be modified or added to the default color list through StatusComponent.colors
new Engine(...,{config:{"status":{colors: Array<{background: string,color: string}>}}})
-background
background color -color
font color
//Default color list[{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');