Update lunajspatch.js

This commit is contained in:
恍兮惚兮 2024-03-25 16:13:58 +08:00
parent d84feaa383
commit a37f7c833b

View File

@ -45,6 +45,8 @@ function clipboardsender(s,lpsplit){
function rpgmakerhook(){ function rpgmakerhook(){
if(Window_Message.prototype.originstartMessage)return; 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; Window_Message.prototype.originstartMessage=Window_Message.prototype.startMessage;
Bitmap.prototype.origin_makeFontNameText=Bitmap.prototype._makeFontNameText; Bitmap.prototype.origin_makeFontNameText=Bitmap.prototype._makeFontNameText;
Bitmap.prototype._makeFontNameText=function(){ Bitmap.prototype._makeFontNameText=function(){
@ -59,6 +61,14 @@ function rpgmakerhook(){
$gameMessage._texts=[resp] $gameMessage._texts=[resp]
this.originstartMessage(); 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() { function tyranohook() {