From ea754c964259677036513310016383d266cad51c Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Wed, 27 Dec 2023 23:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=8Ejsdoc=E7=9A=84?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/player.js | 4 +++- noname/library/index.js | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) 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]