네코 RPGXP 플레이어 버그제보입니다

by A.미스릴 posted Sep 30, 2014
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

ESC閉じる

Larger Font Smaller Font 上へ 下へ Go comment 印刷 修正 削除
원래 RPGXP의 드로우 텍스트는 세로가 중앙기준입니다
하지만 안드로이드에서는 중앙기준이 아니라 위쪽부터 출력하는식입니다
그래서 height값이 높은 텍스트에 대한 오출력이 발생합니다

밑의걸 원버전과 안드로이드 실행기로 각각 실행해보면 뭔소린지 이해갈겁니다


#==============================================================================
# ■ Window_Townname
#------------------------------------------------------------------------------
class Window_Townname < Window_Base  # Window_Townname은 Window_Base에게서 모든걸 물려받습니다...
  def initialize # Window_base에 있는 함수 initialize
    super(480, 380, 160, 100) # 슈퍼클레스의 함수에 대입
    self.contents = Bitmap.new(width - 32, height - 32) # 비트맵
  end
  def refresh
    self.opacity = 200
    #기존에 있던 그림 삭제
    self.contents.clear
    #마을 이름 표시
    self.contents.font.color = normal_color
    self.contents.draw_text(16, 0, 150, 32, "마을 이름")
    #힘 표시
    if $game_variables[9] == 1
      self.contents.font.color = crisis_color
      self.contents.draw_text(16, 0, 150, 96, "빛의 마을")
    elsif $game_variables[9] == 2
      self.contents.font.color = system_color
      self.contents.draw_text(6, 0, 150, 96, "바람의 마을")
    elsif $game_variables[9] == 3
      self.contents.font.color = green_color
      self.contents.draw_text(16, 0, 150, 96, "숲의 마을")
    elsif $game_variables[9] == 4
      self.contents.font.color = normal_color
      self.contents.draw_text(16, 0, 150, 96, "왕국 수도")
    elsif $game_variables[9] == 5
      self.contents.font.color = blue_color
      self.contents.draw_text(16, 0, 150, 96, "물의 마을")
    elsif $game_variables[9] == 6
      self.contents.font.color = knockout_color
      self.contents.draw_text(16, 0, 150, 96, "불의 마을")
    elsif $game_variables[9] == 7
      self.contents.font.color = purple_color
      self.contents.draw_text(6, 0, 150, 96, "어둠의 마을")
    end
  end
end


Articles

1 2 3 4 5 6 7 8 9 10