XP 스크립트

#==============================================================================
# ■ Bitmap
#------------------------------------------------------------------------------
#  Bitmap 클래스(class) 방법(method) 추가
#==============================================================================

class Bitmap
  #--------------------------------------------------------------------------
  # ● 테두리 두르기 문자 묘화
  #--------------------------------------------------------------------------
  def draw_frame_text(x, y, width, height, string, align = 0,
      frame_color = Color.new(0, 0, 0))
    # 원래의 색을 보존해 둔다
    origin_color = font.color.dup
    # 테두리 두르기
    font.color = frame_color
    draw_text(x - 1, y - 1, width, height, string, align)
    draw_text(x - 1, y + 1, width, height, string, align)
    draw_text(x + 1, y - 1, width, height, string, align)
    draw_text(x + 1, y + 1, width, height, string, align)
    # 원래의 색에 되돌리고 묘화
    font.color = origin_color
    draw_text(x, y, width, height, string, align)
  end
  #--------------------------------------------------------------------------
  # ● 영 문자 묘화
  #--------------------------------------------------------------------------
  def draw_shadow_text(x, y, width, height, string, align = 0,
      shadow_color = Color.new(0, 0, 0))
    # 원래의 색을 보존해 둔다
    origin_color = font.color.dup
    # 영 묘화
    font.color = shadow_color
    draw_text(x + 2, y + 2, width, height, string, align)
    # 원래의 색에 되돌리고 묘화
    font.color = origin_color
    draw_text(x, y, width, height, string, align)
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '7'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7293
48 메뉴 개별 메뉴 호출 단축키 스크립트 5 file 백호 2009.02.21 1973
47 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4333
46 메뉴 넷플레이 업그레이드됀 메뉴 스크립트 4 백호 2009.02.22 2055
45 메뉴 링 메뉴 16 Neowitch* 2008.04.18 3497
44 메뉴 링 메뉴 Edited by Hypershadow180@rmxp.net 1 file 백호 2009.02.22 1982
43 메뉴 링 메뉴 소지금,플레이시간 추가 버젼 17 Neowitch* 2008.04.20 3040
42 메뉴 링메뉴 New 9 sdjfl465 2008.09.27 2880
41 메뉴 링메뉴 스크립트 file 백호 2009.02.21 1402
40 메뉴 링메뉴 제대로된것..오류안나느것. 7 백호 2009.02.21 1896
39 메뉴 링메뉴+음악도입스크립트 백호 2009.02.21 1069
38 메뉴 링메뉴에 돈(G)표시하기 백호 2009.02.21 1427
37 메뉴 메뉴 단축키 스크립트 14 백호 2009.02.22 2971
36 메뉴 메뉴 변경 스크립트 2 file 백호 2009.02.21 2378
35 메뉴 메뉴 화면 개조 스크립트 1 백호 2009.02.21 1691
34 메뉴 메뉴 화면 변경 스크립트 file 백호 2009.02.21 2262
33 메뉴 메뉴....있길래올립니다. 9 벨☆ 2010.01.23 2021
32 메뉴 메뉴등에서 움직이는 엑터 9 file 백호 2009.02.22 3182
31 메뉴 메뉴를 바꾸는 스크립트 14 №1 2012.08.04 4286
30 메뉴 메뉴바꾸기 4 file ureazy 2012.07.23 2883
29 메뉴 메뉴에 그림넣기 4 file 백호 2009.02.22 4441
Board Pagination Prev 1 2 3 4 5 Next
/ 5