mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +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
|
# Choose the appropriate light sprite
|
||||||
@light_sprite.viewport = ($game_screen.tone.blank?) ? @viewport : @light_viewport
|
@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
|
@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.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
|
@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
|
@text_sprite.bitmap.clear
|
||||||
@last_char_name = "мямямя :3"
|
@last_char_name = "мямямя :3"
|
||||||
end
|
end
|
||||||
|
|
@ -100,7 +103,7 @@ class Sprite_Character
|
||||||
if @tile_id == 0
|
if @tile_id == 0
|
||||||
# Set rectangular transfer
|
# Set rectangular transfer
|
||||||
sx = @character.pattern * @cw
|
sx = @character.pattern * @cw
|
||||||
sy = (@character.direction - 2) / 2 * @ch
|
sy = dir * @ch
|
||||||
@sprite.src_rect.set(sx, sy, @cw, @ch)
|
@sprite.src_rect.set(sx, sy, @cw, @ch)
|
||||||
@light_sprite.src_rect.set(sx, sy, @cw, @ch)
|
@light_sprite.src_rect.set(sx, sy, @cw, @ch)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -235,13 +235,13 @@ class Window_Message < Window_Selectable
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
# \.
|
# \.
|
||||||
if c == "\001"
|
if c == "\001" && !(Input.press?(Input::DEBUGACTION) && Settings[:debug])
|
||||||
# Pause
|
# Pause
|
||||||
@text_pause = autoMash ? 0 : 10
|
@text_pause = autoMash ? 0 : 10
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
# \|
|
# \|
|
||||||
if c == "\002"
|
if c == "\002" && !(Input.press?(Input::DEBUGACTION) && Settings[:debug])
|
||||||
# Pause
|
# Pause
|
||||||
@text_pause = autoMash ? 0 : 10*4
|
@text_pause = autoMash ? 0 : 10*4
|
||||||
return
|
return
|
||||||
|
|
@ -407,7 +407,7 @@ class Window_Message < Window_Selectable
|
||||||
end
|
end
|
||||||
tick
|
tick
|
||||||
end
|
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
|
@skip_text = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
@ -443,7 +443,7 @@ class Window_Message < Window_Selectable
|
||||||
self.pause = true
|
self.pause = true
|
||||||
|
|
||||||
# Advance/Close message
|
# 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
|
if @text.length <= 0
|
||||||
terminate_message
|
terminate_message
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue