RPGXP 스크립트
2013.09.20 06:40

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

조회 수 1189 추천 수 0 댓글 0
?

단축키

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

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수 추천 수
120 RPGXP 스크립트 반칸이동 1 1 file A.M.S 2010.07.18 2185 0
119 RPGXP 스크립트 미니맵 스크립트 2 2013.10.01 2180 0
118 RPGXP 스크립트 창고 시스템 2 창조도시 2008.01.18 2169 3
117 RPGXP 스크립트 8방향이동 1 1 file A.M.S 2010.10.14 2157 0
116 RPGXP 스크립트 아이템창을 아이템 분류별로 나누어 지게 개조. 3 file 창조도시 2007.12.02 2152 1
115 RPGXP 스크립트 스텟포인트투자 1 file A.M.S 2010.10.24 2149 2
114 RPGXP 스크립트 직업명 표시 file A.M.S 2010.10.24 2103 0
113 RPGXP 스크립트 대화창에 얼굴 띄우기& 대화창 명령어 모음. 1 file 창조도시 2008.12.31 2091 1
112 RPGXP 스크립트 맵 이름을 화면 상단에 띄우기. 1 1 file 창조도시 2008.10.12 2084 1
111 RPGXP 스크립트 모션 스크립트 3  운 2013.12.06 2062 0
110 RPGXP 스크립트 상점에서 상세정보보여주기 file A.M.S 2010.10.24 2060 0
109 RPGXP 스크립트 대각선 방향 이동추가로 8방향 이동 만들기. 창조도시 2008.08.14 2051 1
108 RPGXP 스크립트 부드러운화면이동 file A.M.S 2010.10.24 2047 0
107 RPGXP 스크립트 파이널 판타지 7 스타일 메뉴 6 2013.10.01 2034 0
106 RPGXP 스크립트 AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta 3  운 2014.01.21 1982 1
105 RPGXP 스크립트 메뉴에 퀘스트 있는거 2  운 2013.10.12 1965 2
104 RPGXP 스크립트 최초 시작화면에 제작자 정보를 띄워보자. 6 창조도시 2008.04.04 1964 5
103 RPGXP 스크립트 아이템소지 한계돌파 file A.M.S 2010.10.24 1964 0
102 RPGXP 스크립트 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1959 2
101 RPGXP 스크립트 요청하신 게이지바 스크립트 입니다. 8 소년영남 2013.10.04 1924 1
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






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

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