RPGXP 스크립트

c[n] 명령어 줄때의 색상 결정.

by 창조도시 posted Feb 14, 2008
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Window_base 클래스에
아래 부분이 그 색들을 결정하는 스크립트입니다.
아마 기본적으로 37줄 부터 시작될겁니다.
괄호안에 숫자는 RGB 칼라와 투명도를 의미합니다.
(빨강,녹색,파랑,투명도)
0~255 사이의 색을 결정할 수 있고 투명도는 255일경우 불투명 0일경우 완전투명.
이 색을 쉽게 알려면 캐릭터 레이더 같은 프로그램을 사용해 보세요. RGB로 색을 결정하는 프로그램 들이니까.
===============================================================================================
  #--------------------------------------------------------------------------
  # ● 문자색취득
  #     n : 문자색번호 (0~7)
  #--------------------------------------------------------------------------
  def text_color(n)
    case n
    when 0
      return Color.new(255, 255, 255, 255)
    when 1
      return Color.new(128, 128, 255, 255)
    when 2
      return Color.new(255, 128, 128, 255)
    when 3
      return Color.new(128, 255, 128, 255)
    when 4
      return Color.new(128, 255, 255, 255)
    when 5
      return Color.new(255, 128, 255, 255)
    when 6
      return Color.new(255, 255, 128, 255)
    when 7
      return Color.new(192, 192, 192, 255)  <-이 부분의 숫자를 변경하면 원하는 색으로 변경가능.
    else
      normal_color
    end
  end

Articles

1 2 3 4 5 6 7 8 9 10