From 63b729fa5b3c19a92253f21f197e7912fc1aca76 Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Fri, 29 May 2026 23:02:51 +0300 Subject: [PATCH] some debug pipinus --- scripts/Sprite_Character.rb | 11 +++++++---- scripts/Window_Message.rb | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/scripts/Sprite_Character.rb b/scripts/Sprite_Character.rb index 4bac6cf..e635baa 100644 --- a/scripts/Sprite_Character.rb +++ b/scripts/Sprite_Character.rb @@ -36,11 +36,14 @@ class Sprite_Character # Choose the appropriate light sprite @light_sprite.viewport = ($game_screen.tone.blank?) ? @viewport : @light_viewport @light_sprite.shader = @sprite.shader = @character.character_name.start_with?("en") || (@character.character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine : Shader::Sprite - if @last_char_name != character.character_name && Settings[:debug] + + dir = (@character.direction - 2) / 2 + if Settings[:debug] && (@last_char_name != character.character_name || dir != @old_dir) @text_sprite.bitmap.clear - @text_sprite.bitmap.draw_text(0, 0, 256, 12, "#{@character.character_name}") + @text_sprite.bitmap.draw_text(0, 0, 256, 12, "#{dir == 0 ? "↓" : dir == 1 ? "←" : dir == 2 ? "→" : "↑"} #{@character.character_name}") @last_char_name = character.character_name - elsif @last_char_name != "мямямя :3" && !Settings[:debug] + @old_dir = dir + elsif !Settings[:debug] && @last_char_name != "мямямя :3" @text_sprite.bitmap.clear @last_char_name = "мямямя :3" end @@ -100,7 +103,7 @@ class Sprite_Character if @tile_id == 0 # Set rectangular transfer sx = @character.pattern * @cw - sy = (@character.direction - 2) / 2 * @ch + sy = dir * @ch @sprite.src_rect.set(sx, sy, @cw, @ch) @light_sprite.src_rect.set(sx, sy, @cw, @ch) end diff --git a/scripts/Window_Message.rb b/scripts/Window_Message.rb index 5ec3463..7a0384f 100644 --- a/scripts/Window_Message.rb +++ b/scripts/Window_Message.rb @@ -235,13 +235,13 @@ class Window_Message < Window_Selectable next end # \. - if c == "\001" + if c == "\001" && !(Input.press?(Input::DEBUGACTION) && Settings[:debug]) # Pause @text_pause = autoMash ? 0 : 10 return end # \| - if c == "\002" + if c == "\002" && !(Input.press?(Input::DEBUGACTION) && Settings[:debug]) # Pause @text_pause = autoMash ? 0 : 10*4 return @@ -407,7 +407,7 @@ class Window_Message < Window_Selectable end tick end - if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL) || (Input.press?(Input::R) && $game_switches[253]) + if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL) || (Input.press?(Input::R) && $game_switches[253]) || Input.press?(Input::DEBUGACTION) && Settings[:debug] @skip_text = true end else @@ -443,7 +443,7 @@ class Window_Message < Window_Selectable self.pause = true # Advance/Close message - if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL) || (Input.press?(Input::R) && $game_switches[253]) + if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL) || (Input.press?(Input::R) && $game_switches[253]) || Input.press?(Input::DEBUGACTION) && Settings[:debug] if @text.length <= 0 terminate_message else