From 8970eeb62ebf057f2d52267e5dd2642cb2d984f7 Mon Sep 17 00:00:00 2001 From: ZakatTeamI2P Date: Mon, 27 Apr 2026 11:52:48 +0400 Subject: [PATCH] Custom texture for EN messegeboxes! --- binding-mri/filesystem-binding.cpp | 1 - scripts/Window_Base.rb | 1 + scripts/Window_Message.rb | 10 +++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index dd328a8..15faa25 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -124,7 +124,6 @@ static VALUE load_protect(VALUE marsh_and_port) { VALUE kernelLoadDataInt(const char *filename, bool rubyExc){ VALUE port = fileIntForPath(filename, rubyExc); VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); - VALUE args[2] = { marsh, port }; int state = 0; VALUE result = rb_protect(load_protect, (VALUE)args, &state); diff --git a/scripts/Window_Base.rb b/scripts/Window_Base.rb index c24f66d..7fc8321 100644 --- a/scripts/Window_Base.rb +++ b/scripts/Window_Base.rb @@ -16,6 +16,7 @@ class Window_Base < Window super() @windowskin_name = $game_system.windowskin_name self.windowskin = RPG::Cache.windowskin(@windowskin_name) + #self.windowskin_en = RPG::Cache.windowskin("en_normal") self.x = x self.y = y self.width = width diff --git a/scripts/Window_Message.rb b/scripts/Window_Message.rb index 4aad968..ce71501 100644 --- a/scripts/Window_Message.rb +++ b/scripts/Window_Message.rb @@ -78,6 +78,7 @@ class Window_Message < Window_Selectable @choice_start = -1 @number_start = -1 @skip_message_proc = false + $game_system.windowskin_name = "normal" self.active = false self.pause = false self.index = -1 @@ -177,7 +178,14 @@ class Window_Message < Window_Selectable face = RPG::Cache.face($game_temp.message_face) self.contents.blt(self.contents.width - 96, 0, face, Rect.new(0, 0, 96, 96)) end - + if $game_temp.message_face != nil + if $game_temp.message_face.start_with?("en") + $game_system.windowskin_name = "en_normal" + else + $game_system.windowskin_name = "normal" + end + end + if $game_temp.choices != nil # Prepare choices, if they fit if lines + $game_temp.choices.size <= 4