template/packages-user/client-modules/src/fallback/ui.ts
2026-02-28 20:23:34 +08:00

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);
});
}