mirror of
https://github.com/motajs/template.git
synced 2026-05-25 13:41:11 +08:00
12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
import { Patch, PatchClass } from '@motajs/legacy-common';
|
|
import { TipStore } from '../render/components/tip';
|
|
|
|
export function patchUI() {
|
|
const patch = new Patch(PatchClass.UI);
|
|
|
|
patch.add('drawTip', function (text, id) {
|
|
const tip = TipStore.get('main-tip');
|
|
tip?.drawTip(text, id);
|
|
});
|
|
}
|