From a37f7c833b22531d1df9a5c3a1b064727eb60d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:13:58 +0800 Subject: [PATCH] Update lunajspatch.js --- LunaHook/resource/lunajspatch.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LunaHook/resource/lunajspatch.js b/LunaHook/resource/lunajspatch.js index 5c588d8..6c10036 100644 --- a/LunaHook/resource/lunajspatch.js +++ b/LunaHook/resource/lunajspatch.js @@ -45,6 +45,8 @@ function clipboardsender(s,lpsplit){ function rpgmakerhook(){ if(Window_Message.prototype.originstartMessage)return; + Window_Base.prototype.drawTextEx_origin=Window_Base.prototype.drawTextEx;//selections + Window_Base.prototype.drawText_origin=Window_Base.prototype.drawText;//startup menu Window_Message.prototype.originstartMessage=Window_Message.prototype.startMessage; Bitmap.prototype.origin_makeFontNameText=Bitmap.prototype._makeFontNameText; Bitmap.prototype._makeFontNameText=function(){ @@ -59,6 +61,14 @@ function rpgmakerhook(){ $gameMessage._texts=[resp] this.originstartMessage(); }; + Window_Base.prototype.drawText=function(text, x, y, maxWidth, align){ + text=clipboardsender(text,1) + return this.drawText_origin(text,x,y,maxWidth,align) + } + Window_Base.prototype.drawTextEx=function(text, x, y){ + text=clipboardsender(text,1) + return this.drawTextEx_origin(text, x, y) + } } function tyranohook() {