From b9e74c7b43efe8bffa3af9466449c7a3c6876fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=B2=90=E5=91=80?= <163636894+zimuya4153@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:33:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDynamicFloatingText=E7=B1=BB?= =?UTF-8?q?=E7=9A=84=E6=9E=84=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/GMLIB_API-JS.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index 59dbd69..7ce3a05 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -539,9 +539,7 @@ class DynamicFloatingText extends StaticFloatingText { * @param {boolean} [papi=true] 是否使用PAPI变量 */ constructor(pos, text, updateRate = 1, papi = true) { - this.mPosition = pos; - this.mText = text; - this.mPlaceholderAPI = papi; + super(pos, text, papi); this.mRuntimeId = GMLIB_API.createFloatingText(this.mPosition, this.mText, this.mPlaceholderAPI); this.mUpdateRate = updateRate; this.mTaskId = null;