mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
twm footprint
This commit is contained in:
parent
ac42a6f5a9
commit
fe6f34f2da
5 changed files with 20 additions and 18 deletions
|
|
@ -49,20 +49,20 @@ module RPG
|
|||
self.load_bitmap("Graphics/Battlers/", filename, hue)
|
||||
end
|
||||
def self.character(filename, hue)
|
||||
filename = filename.downcase
|
||||
if $game_switches[160] && filename.start_with?("niko")
|
||||
filename.gsub!(/niko/, "en")
|
||||
end
|
||||
self.load_bitmap("Graphics/Characters/", filename, hue)
|
||||
filename = filename.downcase
|
||||
if $game_switches[160] && filename.start_with?("niko")
|
||||
filename.gsub!(/niko/, "en")
|
||||
end
|
||||
self.load_bitmap("Graphics/Characters/", filename, hue)
|
||||
end
|
||||
def self.face(filename)
|
||||
filename = filename.downcase
|
||||
if (CTime.month == 4 && CTime.day == 1 && filename.start_with?("niko")) or Settings[:enforce_april_fools]
|
||||
filename = "af"
|
||||
end
|
||||
if $game_switches[160] && filename.start_with?("niko")
|
||||
filename.gsub!(/niko/, "en")
|
||||
end
|
||||
filename = filename.downcase
|
||||
if (CTime.month == 4 && CTime.day == 1 && filename.start_with?("niko")) or Settings[:enforce_april_fools]
|
||||
filename = "af"
|
||||
end
|
||||
if $game_switches[160] && filename.start_with?("niko")
|
||||
filename.gsub!(/niko/, "en")
|
||||
end
|
||||
self.load_bitmap("Graphics/Faces/", filename)
|
||||
end
|
||||
def self.menu(filename)
|
||||
|
|
|
|||
|
|
@ -494,7 +494,7 @@ class Game_Character
|
|||
#--------------------------------------------------------------------------
|
||||
def emit_footprint(direction)
|
||||
if $game_map.counter?(@x, @y) && !$game_switches[101] && !$game_switches[111]
|
||||
$scene.new_footprint(direction, @x, @y)
|
||||
$scene.new_footprint(direction, @x, @y, @character_name)
|
||||
end
|
||||
end
|
||||
def emit_footsplash(direction)
|
||||
|
|
|
|||
|
|
@ -423,9 +423,9 @@ class Scene_Map
|
|||
#--------------------------------------------------------------------------
|
||||
# * Misc operations
|
||||
#--------------------------------------------------------------------------
|
||||
def new_footprint(direction, x, y)
|
||||
def new_footprint(direction, x, y, character_name)
|
||||
if @spriteset != nil
|
||||
@spriteset.new_footprint(direction, x, y)
|
||||
@spriteset.new_footprint(direction, x, y, character_name)
|
||||
end
|
||||
end
|
||||
def new_footsplash(direction, x, y)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class Sprite_Footprint < Sprite
|
||||
def initialize(viewport, direction, x, y)
|
||||
def initialize(viewport, direction, x, y, character_name)
|
||||
super(viewport)
|
||||
@direction = direction
|
||||
@real_x = x * 4 * 32
|
||||
|
|
@ -11,6 +11,8 @@ class Sprite_Footprint < Sprite
|
|||
self.oy = 16
|
||||
self.bitmap = RPG::Cache.misc('footprints')
|
||||
self.src_rect.set(0, 16 * (direction / 2 - 1), 16, 16)
|
||||
|
||||
self.shader = character_name.start_with?("en") || (character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine : Shader::Sprite
|
||||
update
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -383,8 +383,8 @@ class Spriteset_Map
|
|||
#--------------------------------------------------------------------------
|
||||
# * Misc operations
|
||||
#--------------------------------------------------------------------------
|
||||
def new_footprint(direction, x, y)
|
||||
@footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y)
|
||||
def new_footprint(direction, x, y, character_name)
|
||||
@footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y, character_name)
|
||||
end
|
||||
def new_maptext(text, x, y)
|
||||
@footprint_sprites << Sprite_MapText.new(@viewport, text, x, y)
|
||||
|
|
|
|||
Loading…
Reference in a new issue