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
번호 분류 제목 글쓴이 날짜 조회 수 추천 수
168 RPGMV 플러그인 HUD (HP, MP, EXP, LEVEL 표시) 화면에 표시해주는 플러그인! 4 file willmv 2015.11.07 1367 2
167 RPGXP 스크립트 파티 선두 캐릭터 id 변수에 넣기 Evangelista 2008.01.08 1380 1
166 RPGMV 플러그인 Refresh Manager file 러닝은빛 2016.05.24 1382 1
165 RPGXP 스크립트 메뉴 스크립트 Zer0 CMS 3 2013.10.01 1384 0
164 RPGXP 스크립트 대화 글씨 폰트를 원하는 폰트로 바꾸기 창조도시 2007.12.01 1391 2
163 RPGMV 플러그인 Mog_Battle_hud(MZ버전도 있습니다) 스트레이보우 2021.03.05 1394 0
162 RPGMV 플러그인 Advanced Game Time (게임에 시간개념을 적용해주는 플러그인) 2 plam 2016.01.06 1398 0
161 RPGMV 플러그인 맵타일 크기 변경 플러그인! 1 파란별빛 2015.10.26 1401 0
160 RPGMV 플러그인 RMMV 옵션 창에 메시지 속도 및 글자 크기 변경 기능 추가 file 러닝은빛 2018.07.15 1403 0
159 RPGMV 플러그인 [RPG MV] 퀘스트 마커 지속 표시 플러그인 file lklslel 2017.04.09 1411 0
158 RPGXP 스크립트 대화 글씨가 한글자씩 나오는 스크립트 1 청담 2013.09.24 1415 0
157 RPGXP 스크립트 공포게임에 장비착용메뉴 3  운 2014.08.24 1420 0
156 RPGXP 스크립트 몬스터 도감 1 청담 2013.09.24 1421 0
155 RPGMV 플러그인 텍스트 입력창(Keyboard Input Dialog) 1 file 러닝은빛 2016.08.09 1422 1
154 RPGXP 스크립트 c[n] 명령어 줄때의 색상 결정. 창조도시 2008.02.14 1438 1
153 RPGXP 스크립트 맵 이름 표시 스크립트 5 청담 2013.09.20 1438 0
152 RPGXP 스크립트 액알 스크립트 4 커비♥ 2014.11.23 1440 1
151 RPGXP 스크립트 Font Setup file 운님 2016.07.22 1447 0
150 RPGXP 스크립트 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1449 2
149 RPGXP 스크립트 기차 파티 스크립트 2 창조도시 2008.07.24 1465 2
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 15 Next
/ 15






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

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