Views 1029 Votes 1 Comment 3
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
#===============================================================
# ● [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
No. Category Subject Author Date Views Votes
288 RPGXP Script 새로운 게임 시작/로드 시 미묘한 연출 추가. 창조도시 2007.12.01 2539 1
287 RPGXP Script 대화 글씨 폰트를 원하는 폰트로 바꾸기 창조도시 2007.12.01 1664 2
286 RPGXP Script 대각선 방향 이동추가로 8방향 이동 만들기. 1 창조도시 2008.08.14 2448 1
285 RPGXP Script 맵 이름을 화면 상단에 띄우기. 1 1 file 창조도시 2008.10.12 2399 1
284 RPGXP Script 최초 시작화면에 제작자 정보를 띄워보자. 6 창조도시 2008.04.04 2198 5
283 RPGXP Script 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1657 2
282 RPGXP Script 아이템창을 아이템 분류별로 나누어 지게 개조. 3 file 창조도시 2007.12.02 1867 1
281 RPGXP Script c[n] 명령어 줄때의 색상 결정. 창조도시 2008.02.14 1329 1
280 RPGXP Script 대화창에 얼굴 띄우기& 대화창 명령어 모음. 1 file 창조도시 2008.12.31 2350 1
279 RPGXP Script 게임도중에 글씨체를 바꿔보자. 창조도시 2008.12.31 1529 1
278 RPGXP Script 대화창에 이름&얼굴 띄우기 새로운방식. file 창조도시 2007.11.06 3878 3
277 RPGXP Script 그림자문자 사용하기.. 바탕색이 무슨색이건 상관없이 글자가 잘보인다!!! 창조도시 2007.11.06 1696 1
276 RPGXP Script 기차 파티 스크립트 2 창조도시 2008.07.24 1701 2
275 RPGXP Script 한글이름입력기 v1.76 1 1 창조도시 2008.07.24 2923 2
274 RPGXP Script 창고 시스템 2 창조도시 2008.01.18 2005 3
273 RPGXP Script 물가에가면 캐릭터를 반사시켜주는 스크립트 4 file 창조도시 2007.12.02 4776 6
272 RPGXP Script 파티 선두 캐릭터 id 변수에 넣기 Evangelista 2008.01.08 1655 1
271 RPGVX Script vx 한글이름입력 2 file 가가상 2010.05.21 3335 1
270 RPGVX Script [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기 Evangelista 2008.11.28 1950 1
269 RPGVX Script [VX] 조건분기로 키입력의 처리 실행 1 Evangelista 2008.11.28 1987 1
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)