fixed WM message box blinking

This commit is contained in:
Issac332 2026-05-23 23:47:52 +03:00
parent c6524a77ca
commit d0703901e7
1 changed files with 10 additions and 12 deletions

View File

@ -82,7 +82,6 @@ class Window_Message < Window_Selectable
self.active = false self.active = false
self.pause = false self.pause = false
self.index = -1 self.index = -1
$game_system.windowskin_name = "normal"
end end
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# * Refresh: Load new message text and pre-process it # * Refresh: Load new message text and pre-process it
@ -166,7 +165,13 @@ class Window_Message < Window_Selectable
@text_y = @text_x = 0 @text_y = @text_x = 0
# Blit face graphic # Blit face graphic
$game_system.windowskin_name = "normal"
if $game_temp.message_face != nil 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
if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask" \ if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask" \
|| $game_player.character_name == "en_gasmask" || $game_player.character_name == "en_bulb_gasmask" || $game_player.character_name == "en_gasmask" || $game_player.character_name == "en_bulb_gasmask"
if $game_temp.message_face.start_with?("niko") if $game_temp.message_face.start_with?("niko")
@ -179,13 +184,6 @@ class Window_Message < Window_Selectable
face = RPG::Cache.face($game_temp.message_face) face = RPG::Cache.face($game_temp.message_face)
self.contents.blt(self.contents.width - 96, 0, face, Rect.new(0, 0, 96, 96)) self.contents.blt(self.contents.width - 96, 0, face, Rect.new(0, 0, 96, 96))
end 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 if $game_temp.choices != nil
# Prepare choices, if they fit # Prepare choices, if they fit