RPGXP 스크립트
2013.09.26 01:21

모든 글자에 외곽선을 넣어주는 스크립트

조회 수 808 추천 수 1 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
#===============================================================
# ● [XP/VX Snippet] ◦ Outline Text ◦ □
# ~ Auto outlined all the text in game ~
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 26/07/2008
# ◦ Version: 1.0
#--------------------------------------------------------------

if defined? Graphics.wait # Check if it is running in VX
  Font.default_shadow = false # [VX Only] Enable Text Shadow? (true / false) #
end

class Bitmap
  alias wora_outlinetxt_bmp_draw_text draw_text unless $@
  def draw_text(*args)
    case args.size
    when (2..3) # rect, str, [align]
      x, y, w, h, str, align =
      args[0].x, args[0].y, args[0].width, args[0].height, args[1],
      args[2].nil? ? 0 : args[2]
    else # x, y, w, h, str, [align]
      x, y, w, h, str, align =
      args[0], args[1], args[2], args[3], args[4],
      args[5].nil? ? 0 : args[5]
    end
    ori_color = self.font.color.clone
    self.font.color = Color.new(0, 0, 0) # Outline Color #
    wora_outlinetxt_bmp_draw_text(x-1, y, w, h, str, align)
    wora_outlinetxt_bmp_draw_text(x+1, y, w, h, str, align)
    wora_outlinetxt_bmp_draw_text(x, y-1, w, h, str, align)
    wora_outlinetxt_bmp_draw_text(x, y+1, w, h, str, align)
    self.font.color = ori_color
    wora_outlinetxt_bmp_draw_text(x, y, w, h, str, align)
  end
end

 

붉게 칠한 부분에서 Color.new(0, 0, 0) 안의 숫자를 수정하시면 외곽선 색 변경이 가능합니다.

순서대로 R,G,B입니다.

 

ex) Color.new(255, 0, 0) 은 붉은색, Color.new(0, 255, 0) 은 초록색, Color.new(0, 0, 255) 은 파란색

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수 추천 수
148 RPGXP 스크립트 레벨업시 능력치 표시 4 2013.10.01 1081 0
147 RPGXP 스크립트 현재 시간 확인 2 2013.10.01 899 0
146 RPGXP 스크립트 화면의 쉐이크를 더 어지럽게 바꿔보자! 2013.10.01 986 0
145 RPGXP 스크립트 현재위치&임무 표시 2 2013.10.01 968 0
144 RPGXP 스크립트 윈도우 링 메뉴 1 2013.10.01 840 0
143 RPGXP 스크립트 장비 레벨 제한 2 2013.10.01 903 1
142 RPGXP 스크립트 텔레포트 스크립트 1 2013.10.01 894 0
141 RPGXP 스크립트 밤낮 설정 3 2013.10.01 994 0
140 RPGXP 스크립트 전메뉴 반투명화 2 2013.10.01 768 0
139 RPGXP 스크립트 Initial Switches and Variables 2013.10.01 602 0
138 RPGXP 스크립트 Switchless Common Events 2013.10.01 588 0
137 RPGXP 스크립트 Universal Message System 1.8.0 by ccoa 2013.10.01 581 0
136 RPGXP 스크립트 아이템 조합 스크립트 2013.10.01 890 0
135 RPGXP 스크립트 가상 키보드 입력 스크립트 2013.10.01 1660 0
134 RPGXP 스크립트 RPG 만들기 XP의 숨겨진 모듈/클래스 재정의 스크립트 모음 2013.10.01 1240 0
133 RPGXP 스크립트 빠른 길찾기 2 휴리드 2013.09.30 1336 0
132 RPGVX Ace 스크립트 텍스트 파일생성 1 휴리드 2013.09.30 654 0
131 RPGVX Ace 스크립트 파일 존재의 유무 체크 4 휴리드 2013.09.30 639 0
130 RPGXP 스크립트 네코에서 되는 마우스 스크립트 13 휴리드 2013.09.30 1675 0
129 RPGVX 스크립트 3D 그래픽 파티클 스크립트 1 청담 2013.09.29 1272 0
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 15 Next
/ 15






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

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