fix:修复runtime.d.ts

This commit is contained in:
lizhuoyuan 2025-02-05 20:09:43 +08:00
parent a829efc1fe
commit 456c126708

11
runtime.d.ts vendored
View File

@ -2344,6 +2344,14 @@ interface ui {
*/ */
drawTip(text: string, id?: string, frame?: number): void drawTip(text: string, id?: string, frame?: number): void
/**
*
* @param text ${}
* @param id ID
* @param frame
*/
drawFailTip(text: string, id?: string, frame?: number): void
/** 地图中间绘制一段文字 */ /** 地图中间绘制一段文字 */
drawText(contents: string, callback?: () => any): void drawText(contents: string, callback?: () => any): void
@ -2960,6 +2968,7 @@ type CoreMixin = {
readonly icons: icons readonly icons: icons
readonly actions: actions readonly actions: actions
readonly plugin: Record<string, Function> readonly plugin: Record<string, Function>
readonly statusBar: Main['statusBar']
} & control & events & loader & enemys & items & maps & ui & utils & icons & actions } & control & events & loader & enemys & items & maps & ui & utils & icons & actions
@ -2973,7 +2982,7 @@ interface Main {
readonly mode: 'play' | 'editor' readonly mode: 'play' | 'editor'
readonly statusBar: { readonly statusBar: {
images: { [x: string]: HTMLElement } images: { [x: string]: HTMLElement }
icons: { [x: string]: number | null | undefined } icons: { [x: string]: string | HTMLImageElement }
[x: string]: HTMLElement | object [x: string]: HTMLElement | object
} }
readonly __VERSION__: string readonly __VERSION__: string