RPGXP 스크립트
2008.02.14 08:28

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

조회 수 1438 추천 수 1 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
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
?

  1. 2D 마인크래프트 프로젝트

    Date2013.09.26 CategoryRPGXP 스크립트 By Views3048 Votes2
    Read More
  2. 3D스크립트!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Date2014.01.18 CategoryRPGXP 스크립트 By공박사 Views2807 Votes2
    Read More
  3. 8방향 이동스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views1725 Votes6
    Read More
  4. 8방향이동

    Date2010.10.14 CategoryRPGXP 스크립트 ByA.M.S Views2151 Votes0
    Read More
  5. 8방향이동

    Date2010.10.14 CategoryRPGXP 스크립트 ByA.M.S Views2330 Votes0
    Read More
  6. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP 스크립트 By 운 Views1974 Votes1
    Read More
  7. c[n] 명령어 줄때의 색상 결정.

    Date2008.02.14 CategoryRPGXP 스크립트 By창조도시 Views1015 Votes1
    Read More
  8. c[n] 명령어 줄때의 색상 결정.

    Date2008.02.14 CategoryRPGXP 스크립트 By창조도시 Views1438 Votes1
    Read More
  9. Font Setup

    Date2016.07.22 CategoryRPGXP 스크립트 By운님 Views1450 Votes0
    Read More
  10. FPS 표시 스크립트

    Date2013.09.27 CategoryRPGXP 스크립트 By 운 Views1166 Votes0
    Read More
  11. game testplay 테스트중 게임속도 상승 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By부초 Views787 Votes0
    Read More
  12. HBGames.ORG::Motion Blur

    Date2013.09.27 CategoryRPGXP 스크립트 By죽은노예 Views772 Votes0
    Read More
  13. Initial Switches and Variables

    Date2013.10.01 CategoryRPGXP 스크립트 By Views602 Votes0
    Read More
  14. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP 스크립트 By심심치 Views941 Votes0
    Read More
  15. RPG 만들기 XP의 숨겨진 모듈/클래스 재정의 스크립트 모음

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1241 Votes0
    Read More
  16. RPGXP ATB전투 시스템 예제(스크립트는 예제 안에 포함)

    Date2015.11.17 CategoryRPGXP 스크립트 ByMagNesium Views779 Votes0
    Read More
  17. Switchless Common Events

    Date2013.10.01 CategoryRPGXP 스크립트 By Views588 Votes0
    Read More
  18. Universal Message System 1.8.0 by ccoa

    Date2013.10.01 CategoryRPGXP 스크립트 By Views581 Votes0
    Read More
  19. UNR (아시려나... ) - 상태 이상

    Date2013.01.20 CategoryRPGXP 스크립트 By동동주 Views936 Votes0
    Read More
  20. UNR (아시려나... ) - 상태 이상

    Date2013.01.20 CategoryRPGXP 스크립트 By동동주 Views1085 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)