diff --git a/noname/library/element/player.js b/noname/library/element/player.js index 346dbdced..5b6f97fab 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -10,10 +10,12 @@ export default class extends HTMLDivElement { * @param {HTMLDivElement} [position] * @param {true} [noclick] */ + // @ts-ignore constructor(position, noclick) { /** - * @type {Player} + * @type {this} */ + // @ts-ignore const player = ui.create.div('.player', position); Object.setPrototypeOf(player, lib.element.Player.prototype); player.build(noclick); diff --git a/noname/library/index.js b/noname/library/index.js index 73c445fc1..97162e6c8 100644 --- a/noname/library/index.js +++ b/noname/library/index.js @@ -20,9 +20,9 @@ import { GNC as gnc } from '../gnc/index.js'; import { LibInit } from "./init/index.js"; import { Announce } from "./announce/index.js"; -import Content from "./element/content.js"; -import Contents from "./element/contents.js"; -import Player from "./element/player.js"; +import LibElementContent from "./element/content.js"; +import LibElementContents from "./element/contents.js"; +import LibElementPlayer from "./element/player.js"; export class Library extends Uninstantable { static configprefix = 'noname_0.9_'; @@ -9225,9 +9225,9 @@ export class Library extends Uninstantable { _stratagem_add_buff: '强化' }; static element = { - content: Content, - contents: Contents, - Player: Player, + content: LibElementContent, + contents: LibElementContents, + Player: LibElementPlayer, Card: class extends HTMLDivElement { /** * @param {HTMLDivElement} [position]