mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
some debug pipinus
This commit is contained in:
parent
bdac3bb955
commit
63b729fa5b
2 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue