lib/bioshogi/screen_image/soldier_methods.rb in bioshogi-0.0.14 vs lib/bioshogi/screen_image/soldier_methods.rb in bioshogi-0.0.15
- old
+ new
@@ -123,10 +123,10 @@
end
# フォントの位置を微調整
def piece_char_adjust(location)
@piece_char_adjust ||= {}
- @piece_char_adjust[location.key] ||= V[*params[:piece_char_adjust][location.key]] * location.value_sign
+ @piece_char_adjust[location.key] ||= V[*params[:piece_char_adjust][location.key]] * location.sign_dir
end
def soldier_font_scale(piece)
params[:soldier_font_scale] * piece.scale
end