UNPKG

@tomiaa/live2d

Version:
27 lines (26 loc) 824 B
/** * UI 元素创建器 */ export declare class UICreator { /** * 创建 Loading 图标 */ static createLoading(container: HTMLElement): HTMLElement; /** * 创建控制栏 */ static createControls(container: HTMLElement, onSwitchPerson: () => void, onSwitchClothing: () => void, onCollapse: () => void): { elControl: HTMLElement; elSwitchPerson: HTMLElement; elSwitchClothing: HTMLElement; elCollapse: HTMLElement; }; /** * 创建展开按钮(收起后显示的图标,创建在 body 上) */ static createExpandButton(onExpand: () => void): HTMLElement; /** * 更新切换服装按钮显示状态 */ static updateSwitchClothingVisibility(elSwitchClothing: HTMLElement, hasMultipleClothing: boolean): void; }